Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 51.91 kB / 370.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3051, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.008355/0.3134, allocations: 4.007 MB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003604/0.317, allocations: 1.449 MB / 428.1 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000368/0.3174, allocations: 11.94 kB / 428.1 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.3185, allocations: 254.8 kB / 428.4 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009/0.3194, allocations: 262.3 kB / 428.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001075/0.3204, allocations: 290.5 kB / 428.9 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001181/0.3216, allocations: 0.7047 MB / 429.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003681/0.322, allocations: 126.2 kB / 429.7 MB, free: 7.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005231/0.3225, allocations: 287 kB / 430 MB, free: 7.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005439/0.3231, allocations: 306.7 kB / 430.3 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.3232, allocations: 52 kB / 430.3 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003401/0.3235, allocations: 104 kB / 430.5 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000228/0.3237, allocations: 151.4 kB / 430.6 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004159/0.3242, allocations: 294.5 kB / 430.9 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001271/0.3254, allocations: 0.7113 MB / 431.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3254, allocations: 0 / 431.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3254, allocations: 0 / 431.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.952e-05/0.3255, allocations: 3.938 kB / 431.6 MB, free: 5.605 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002455/0.3279, allocations: 0.8849 MB / 432.5 MB, free: 4.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.328, allocations: 8.031 kB / 432.5 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001276/0.3281, allocations: 82.7 kB / 432.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001858/0.3283, allocations: 68.52 kB / 432.6 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008261/0.3291, allocations: 345.3 kB / 433 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.817e-05/0.3292, allocations: 29.38 kB / 433 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.179e-05/0.3292, allocations: 47.94 kB / 433.1 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.3304, allocations: 437.5 kB / 433.5 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.3304, allocations: 3.984 kB / 433.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.073e-05/0.3305, allocations: 16 kB / 433.5 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.355e-05/0.3305, allocations: 12 kB / 433.5 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.3315, allocations: 315.8 kB / 433.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003691/0.3352, allocations: 1.664 MB / 435.5 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.3363, allocations: 330.8 kB / 435.8 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000397/0.3367, allocations: 160.3 kB / 436 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.702e-05/0.3367, allocations: 7.984 kB / 436 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004833/0.3372, allocations: 258.5 kB / 436.2 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.043e-06/0.3372, allocations: 3.938 kB / 436.2 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002095/0.3393, allocations: 0.7081 MB / 436.9 MB, free: 16 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/0.3394, allocations: 195.8 kB / 437.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006444/0.3401, allocations: 0.4979 MB / 437.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.922e-05/0.3401, allocations: 29.7 kB / 437.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/0.3403, allocations: 248.8 kB / 437.9 MB, free: 15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.3404, allocations: 134.9 kB / 438 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.3406, allocations: 78.14 kB / 438.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.3408, allocations: 358.8 kB / 438.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.341, allocations: 124.8 kB / 438.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003399/0.3414, allocations: 209.3 kB / 438.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004859/0.3418, allocations: 265.3 kB / 439 MB, free: 13.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3419, allocations: 0 / 439 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008416/0.3427, allocations: 489 kB / 439.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.3427, allocations: 4 kB / 439.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.3427, allocations: 0 / 439.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005216/0.3432, allocations: 163.3 kB / 439.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.3435, allocations: 47.84 kB / 439.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005514/0.349, allocations: 6.242 MB / 446 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003922/0.3494, allocations: 55.81 kB / 446 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.278e-05/0.3494, allocations: 16 kB / 446 MB, free: 6.309 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002763/0.3497, allocations: 179.8 kB / 446.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.18e-05/0.3498, allocations: 59.61 kB / 446.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.3508, allocations: 0.5026 MB / 446.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3508, allocations: 4 kB / 446.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.3508, allocations: 0 / 446.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.3508, allocations: 3.984 kB / 446.8 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005626/0.3514, allocations: 468.1 kB / 447.2 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3514, allocations: 4 kB / 447.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/0.3515, allocations: 28.11 kB / 447.3 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004889/0.352, allocations: 159.3 kB / 447.4 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.352, allocations: 8 kB / 447.4 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005397/0.3574, allocations: 5.946 MB / 453.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3574, allocations: 4 kB / 453.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.3585, allocations: 0.4959 MB / 453.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001946/0.3587, allocations: 83.55 kB / 454 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.454e-05/0.3588, allocations: 8 kB / 454 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000274/0.359, allocations: 31.97 kB / 454 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.3592, allocations: 55.84 kB / 454.1 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-05/0.3592, allocations: 15.98 kB / 454.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005326/0.3598, allocations: 363.1 kB / 454.4 MB, free: 13.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3598, allocations: 0 / 454.4 MB, free: 13.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007935/0.3605, allocations: 171.7 kB / 454.6 MB, free: 13.18 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002725/0.3633, allocations: 1.377 MB / 456 MB, free: 11.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.3646, allocations: 0.7796 MB / 456.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3646, allocations: 0 / 456.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008168/0.3654, allocations: 0.6431 MB / 457.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006025/0.366, allocations: 113.6 kB / 457.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006788/0.3728, allocations: 4.242 MB / 461.7 MB, free: 5.918 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/0.3733, allocations: 0.8594 MB / 462.6 MB, free: 5.035 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002123/0.3735, allocations: 48.17 kB / 462.7 MB, free: 4.988 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002486/0.3738, allocations: 171.4 kB / 462.8 MB, free: 4.82 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3738, allocations: 3.938 kB / 462.8 MB, free: 4.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08526/0.459, allocations: 14.85 MB / 477.7 MB, free: 6.133 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.59, allocations: 10.98 kB / 477.7 MB, free: 6.125 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00118765 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable IdealThyristor1.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable IdealThyristor1.off from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! Error: Could not read variable IdealThyristor2.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable IdealThyristor2.off from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! Error: Could not read variable booleanStep1.y in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable booleanStep1.y from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.388770418001513]