Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.0008518/0.0008518, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008784/0.0008784, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8404/0.8404, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.356e-06/3.356e-06, allocations: 0 / 318.4 MB, free: 6.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.126e-05/3.461e-05, allocations: 2.281 kB / 318.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002893/0.002928, allocations: 2.221 MB / 320.6 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.004362, allocations: 0.8895 MB / 321.5 MB, free: 3.113 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.00452, allocations: 7.938 kB / 321.5 MB, free: 3.105 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00019/0.00471, allocations: 47.52 kB / 321.6 MB, free: 3.059 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004524/0.005163, allocations: 147.1 kB / 321.7 MB, free: 2.914 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003263/0.005489, allocations: 179.6 kB / 321.9 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003742/0.005863, allocations: 422.6 kB / 322.3 MB, free: 2.324 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.006018, allocations: 48.88 kB / 322.4 MB, free: 2.273 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002797/0.006298, allocations: 251.5 kB / 322.6 MB, free: 2.027 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002184/0.006516, allocations: 187.5 kB / 322.8 MB, free: 1.844 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.068e-05/0.006557, allocations: 36 kB / 322.8 MB, free: 1.809 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001835/0.006741, allocations: 119.8 kB / 322.9 MB, free: 1.691 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.006841, allocations: 99.7 kB / 323 MB, free: 1.594 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.902e-05/0.00693, allocations: 119.7 kB / 323.2 MB, free: 1.477 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005186/0.007449, allocations: 486.6 kB / 323.6 MB, free: 1 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.007453, allocations: 0 / 323.6 MB, free: 1 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.007455, allocations: 0 / 323.6 MB, free: 1 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.007462, allocations: 0 / 323.6 MB, free: 1 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009661/0.008428, allocations: 0.5668 MB / 324.2 MB, free: 416 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.008484, allocations: 12.91 kB / 324.2 MB, free: 404 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.644e-05/0.008541, allocations: 62.73 kB / 324.3 MB, free: 332 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/0.008737, allocations: 52.72 kB / 324.3 MB, free: 280 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003936/0.009131, allocations: 237.3 kB / 324.6 MB, free: 16 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.009272, allocations: 140 kB / 324.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.727e-05/0.009329, allocations: 36.33 kB / 324.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000469/0.009798, allocations: 408.9 kB / 325.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.009812, allocations: 4.125 kB / 325.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.737e-05/0.009839, allocations: 15.94 kB / 325.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.009846, allocations: 4 kB / 325.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005449/0.01039, allocations: 414.2 kB / 325.6 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.01175, allocations: 1.107 MB / 326.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000448/0.0122, allocations: 333.5 kB / 327 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.01242, allocations: 168.8 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.01245, allocations: 4 kB / 327.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.01248, allocations: 35.28 kB / 327.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.675e-06/0.01248, allocations: 0 / 327.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002869/0.01535, allocations: 1.692 MB / 328.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.01541, allocations: 84.86 kB / 329 MB, free: 11.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/0.01564, allocations: 242.3 kB / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.01567, allocations: 37.64 kB / 329.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.178e-05/0.01576, allocations: 144.9 kB / 329.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.81e-05/0.01585, allocations: 158.8 kB / 329.5 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.01595, allocations: 90.06 kB / 329.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.01605, allocations: 334.8 kB / 329.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/0.01629, allocations: 168.9 kB / 330.1 MB, free: 10.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.01656, allocations: 256.2 kB / 330.4 MB, free: 9.938 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004304/0.01699, allocations: 352.2 kB / 330.7 MB, free: 9.582 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.01699, allocations: 0 / 330.7 MB, free: 9.582 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000728/0.01772, allocations: 0.545 MB / 331.3 MB, free: 9.023 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.01773, allocations: 4 kB / 331.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.01774, allocations: 0 / 331.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004943/0.01824, allocations: 245.5 kB / 331.5 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.01838, allocations: 51.91 kB / 331.5 MB, free: 8.727 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002713/0.0211, allocations: 2.747 MB / 334.3 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.02125, allocations: 24 kB / 334.3 MB, free: 5.844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.02127, allocations: 20.06 kB / 334.3 MB, free: 5.824 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001502/0.02142, allocations: 153.8 kB / 334.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.607e-05/0.02147, allocations: 31.8 kB / 334.5 MB, free: 5.633 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.155e-05/0.02152, allocations: 39 kB / 334.6 MB, free: 5.594 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.02153, allocations: 8 kB / 334.6 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.02153, allocations: 0 / 334.6 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.02153, allocations: 3.984 kB / 334.6 MB, free: 5.582 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.02273, allocations: 0.9997 MB / 335.6 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.02274, allocations: 4 kB / 335.6 MB, free: 4.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/0.02287, allocations: 43.91 kB / 335.6 MB, free: 4.484 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004218/0.02329, allocations: 237 kB / 335.8 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.883e-05/0.02332, allocations: 15.98 kB / 335.9 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002448/0.02577, allocations: 2.692 MB / 338.6 MB, free: 1.422 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.02577, allocations: 12.03 kB / 338.6 MB, free: 1.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009952/0.02676, allocations: 0.8003 MB / 339.4 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.02689, allocations: 71.77 kB / 339.4 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.367e-05/0.02692, allocations: 12 kB / 339.4 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.02704, allocations: 19.98 kB / 339.5 MB, free: 500 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.0272, allocations: 63.81 kB / 339.5 MB, free: 436 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.02722, allocations: 19.98 kB / 339.5 MB, free: 416 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001467/0.02737, allocations: 180.3 kB / 339.7 MB, free: 236 kB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02737, allocations: 0 / 339.7 MB, free: 236 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004778/0.02784, allocations: 143.9 kB / 339.9 MB, free: 92 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001442/0.02929, allocations: 1.409 MB / 341.3 MB, free: 14.65 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000969/0.03026, allocations: 0.5943 MB / 341.9 MB, free: 14.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.03026, allocations: 0 / 341.9 MB, free: 14.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005075/0.03077, allocations: 426.2 kB / 342.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.03114, allocations: 39.91 kB / 342.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003821/0.03496, allocations: 3.397 MB / 345.7 MB, free: 10.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001406/0.0351, allocations: 171.8 kB / 345.9 MB, free: 9.867 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.03523, allocations: 66.92 kB / 346 MB, free: 9.801 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.03533, allocations: 88.41 kB / 346 MB, free: 9.715 MB / 314.7 MB Notification: Performance of SimCode: time 1.313e-06/0.03533, allocations: 0 / 346 MB, free: 9.715 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02682/0.06216, allocations: 9.916 MB / 356 MB, free: 15.98 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.986/8.048, allocations: 0 / 356 MB, free: 15.98 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable gear.mode in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w [Calling sys.exit(0), Time elapsed: 9.760845573619008]