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.001302/0.001302, allocations: 123 kB / 17.79 MB, free: 5.266 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.001372/0.001372, allocations: 189.2 kB / 20.73 MB, free: 2.328 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.439/1.439, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.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.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 0.001514/0.001514, allocations: 51.92 kB / 365.6 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1048, allocations: 52.15 MB / 417.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003901/0.1087, allocations: 2.358 MB / 420.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.1105, allocations: 0.9286 MB / 421 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000177/0.1107, allocations: 7.938 kB / 421.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002299/0.111, allocations: 47.58 kB / 421.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005184/0.1115, allocations: 131.3 kB / 421.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003942/0.1119, allocations: 183.6 kB / 421.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004859/0.1124, allocations: 418.7 kB / 421.8 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.1125, allocations: 44.72 kB / 421.9 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002555/0.1128, allocations: 187.5 kB / 422 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003294/0.1131, allocations: 231.2 kB / 422.3 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.825e-05/0.1131, allocations: 32 kB / 422.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002418/0.1134, allocations: 119.8 kB / 422.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.1135, allocations: 95.72 kB / 422.5 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001875/0.1137, allocations: 163.2 kB / 422.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006397/0.1144, allocations: 450.4 kB / 423.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1144, allocations: 4 kB / 423.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1144, allocations: 0 / 423.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1144, allocations: 0 / 423.1 MB, free: 7.285 MB / 350.1 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.001314/0.1157, allocations: 0.649 MB / 423.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.1157, allocations: 16.02 kB / 423.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.347e-05/0.1158, allocations: 62.73 kB / 423.8 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003114/0.1161, allocations: 52.72 kB / 423.9 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005641/0.1167, allocations: 300.4 kB / 424.2 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.1168, allocations: 92.45 kB / 424.3 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.317e-05/0.1169, allocations: 28.31 kB / 424.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007557/0.1176, allocations: 373.2 kB / 424.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.1177, allocations: 3.953 kB / 424.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/0.1177, allocations: 16 kB / 424.7 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.1177, allocations: 12 kB / 424.7 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009452/0.1187, allocations: 417.9 kB / 425.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002265/0.1209, allocations: 1.226 MB / 426.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007358/0.1217, allocations: 338.5 kB / 426.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/0.1221, allocations: 168.8 kB / 426.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.301e-05/0.1221, allocations: 12.14 kB / 426.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.1222, allocations: 38.5 kB / 426.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.245e-06/0.1222, allocations: 0 / 426.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005172/0.1273, allocations: 1.907 MB / 428.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.68e-05/0.1274, allocations: 88.86 kB / 428.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003305/0.1277, allocations: 238.2 kB / 429.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.014e-05/0.1278, allocations: 37.7 kB / 429.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.1279, allocations: 132.9 kB / 429.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.1281, allocations: 162.6 kB / 429.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.1282, allocations: 86.11 kB / 429.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1284, allocations: 334.8 kB / 429.8 MB, free: 180 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003967/0.1288, allocations: 164.8 kB / 430 MB, free: 16 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000465/0.1292, allocations: 229.9 kB / 430.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007676/0.13, allocations: 343.2 kB / 430.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.13, allocations: 0 / 430.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001218/0.1312, allocations: 0.5513 MB / 431.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.1312, allocations: 4 kB / 431.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.1313, allocations: 4 kB / 431.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008309/0.1321, allocations: 257.3 kB / 431.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002703/0.1324, allocations: 59.89 kB / 431.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00468/0.137, allocations: 2.883 MB / 434.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003212/0.1374, allocations: 27.97 kB / 434.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.329e-05/0.1374, allocations: 16 kB / 434.4 MB, free: 11.47 MB / 366.1 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.0002614/0.1377, allocations: 157.7 kB / 434.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.1378, allocations: 27.86 kB / 434.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.1379, allocations: 39 kB / 434.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.1379, allocations: 8.062 kB / 434.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1379, allocations: 0 / 434.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.1379, allocations: 3.984 kB / 434.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/0.14, allocations: 1.086 MB / 435.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.14, allocations: 0 / 435.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/0.1403, allocations: 39.97 kB / 435.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007503/0.141, allocations: 245 kB / 436 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.621e-05/0.1411, allocations: 19.92 kB / 436 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004471/0.1455, allocations: 2.843 MB / 438.8 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1456, allocations: 0 / 438.8 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001723/0.1473, allocations: 0.8081 MB / 439.6 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.1475, allocations: 137 kB / 439.8 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.05e-05/0.1475, allocations: 19.92 kB / 439.8 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000271/0.1478, allocations: 19.98 kB / 439.8 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.148, allocations: 63.84 kB / 439.9 MB, free: 5.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.784e-05/0.1481, allocations: 15.98 kB / 439.9 MB, free: 5.707 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002513/0.1483, allocations: 176.3 kB / 440 MB, free: 5.535 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1483, allocations: 0 / 440 MB, free: 5.535 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006724/0.149, allocations: 139.9 kB / 440.2 MB, free: 5.398 MB / 366.1 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.002372/0.1514, allocations: 1.43 MB / 441.6 MB, free: 3.938 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.1528, allocations: 0.5938 MB / 442.2 MB, free: 3.328 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.1528, allocations: 4 kB / 442.2 MB, free: 3.324 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008528/0.1537, allocations: 417.6 kB / 442.6 MB, free: 2.902 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000449/0.1541, allocations: 42.31 kB / 442.7 MB, free: 2.863 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1933/0.3474, allocations: 3.413 MB / 446.1 MB, free: 29.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.3478, allocations: 0.7795 MB / 446.9 MB, free: 28.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003464/0.3481, allocations: 59.67 kB / 446.9 MB, free: 28.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002205/0.3484, allocations: 83.38 kB / 447 MB, free: 28.58 MB / 366.1 MB Notification: Performance of SimCode: time 1.523e-06/0.3484, allocations: 0 / 447 MB, free: 28.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06179/0.4101, allocations: 9.954 MB / 456.9 MB, free: 27.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.98, allocations: 14.62 kB / 457 MB, free: 27.45 MB / 366.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 15.442344408947974]