Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 116.9 kB / 18.45 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 213.6 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.449/1.449, allocations: 207.6 MB / 231.8 MB, free: 4.039 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 52.44 kB / 342.3 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09216/0.0939, allocations: 49.14 MB / 391.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00374/0.09764, allocations: 2.341 MB / 393.8 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001852/0.09949, allocations: 0.9722 MB / 394.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001505/0.09964, allocations: 7.938 kB / 394.7 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002222/0.09986, allocations: 51.58 kB / 394.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005043/0.1004, allocations: 127.3 kB / 394.9 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003908/0.1008, allocations: 179.6 kB / 395.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000496/0.1013, allocations: 430.7 kB / 395.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.1014, allocations: 48.66 kB / 395.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.1017, allocations: 191.5 kB / 395.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003381/0.102, allocations: 219.3 kB / 395.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.407e-05/0.1021, allocations: 36 kB / 396 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002562/0.1023, allocations: 123.8 kB / 396.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.1025, allocations: 95.66 kB / 396.2 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.1026, allocations: 167.2 kB / 396.4 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005766/0.1032, allocations: 442.5 kB / 396.8 MB, free: 3.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.1032, allocations: 8 kB / 396.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1032, allocations: 0 / 396.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.1032, allocations: 0 / 396.8 MB, free: 3.289 MB / 318.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.001277/0.1045, allocations: 0.6466 MB / 397.4 MB, free: 2.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.1046, allocations: 8.031 kB / 397.5 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.905e-05/0.1046, allocations: 70.72 kB / 397.5 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003127/0.105, allocations: 48.73 kB / 397.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005317/0.1055, allocations: 303.9 kB / 397.9 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.1056, allocations: 92.45 kB / 398 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.866e-05/0.1057, allocations: 24.38 kB / 398 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007284/0.1064, allocations: 381.2 kB / 398.4 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.1064, allocations: 0 / 398.4 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.086e-05/0.1065, allocations: 16 kB / 398.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.1065, allocations: 8 kB / 398.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008671/0.1073, allocations: 417.9 kB / 398.8 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002134/0.1095, allocations: 1.238 MB / 400 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007363/0.1102, allocations: 330.5 kB / 400.3 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003856/0.1106, allocations: 168.8 kB / 400.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.66e-05/0.1106, allocations: 4.719 kB / 400.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/0.1107, allocations: 42.5 kB / 400.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.144e-06/0.1107, allocations: 0 / 400.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.005099/0.1158, allocations: 1.918 MB / 402.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.1158, allocations: 88.86 kB / 402.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003316/0.1162, allocations: 246.1 kB / 402.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.1162, allocations: 37.7 kB / 402.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.1163, allocations: 132.8 kB / 403 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.1165, allocations: 162.7 kB / 403.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.1166, allocations: 78.12 kB / 403.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1168, allocations: 334.8 kB / 403.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003827/0.1172, allocations: 168.8 kB / 403.7 MB, free: 12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004665/0.1176, allocations: 233.9 kB / 403.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007124/0.1183, allocations: 343.2 kB / 404.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1184, allocations: 4 kB / 404.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001188/0.1195, allocations: 0.5473 MB / 404.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.1196, allocations: 7.906 kB / 404.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.1196, allocations: 4.125 kB / 404.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007714/0.1203, allocations: 252.6 kB / 405.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002446/0.1206, allocations: 51.91 kB / 405.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004249/0.1248, allocations: 2.895 MB / 408 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003014/0.1251, allocations: 27.92 kB / 408 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/0.1252, allocations: 19.98 kB / 408.1 MB, free: 7.457 MB / 334.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.0002349/0.1254, allocations: 157.8 kB / 408.2 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.403e-05/0.1255, allocations: 23.86 kB / 408.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.1256, allocations: 46.98 kB / 408.3 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1256, allocations: 4 kB / 408.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.1256, allocations: 0 / 408.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.1256, allocations: 0 / 408.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001963/0.1276, allocations: 1.082 MB / 409.4 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1276, allocations: 4 kB / 409.4 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.1278, allocations: 43.91 kB / 409.4 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007071/0.1285, allocations: 232.9 kB / 409.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.151e-05/0.1286, allocations: 19.92 kB / 409.7 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004053/0.1326, allocations: 2.851 MB / 412.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.1326, allocations: 0 / 412.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.1342, allocations: 0.808 MB / 413.3 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001762/0.1344, allocations: 136.9 kB / 413.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.668e-05/0.1345, allocations: 15.94 kB / 413.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003142/0.1348, allocations: 19.97 kB / 413.5 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/0.135, allocations: 63.84 kB / 413.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.308e-05/0.135, allocations: 20.06 kB / 413.6 MB, free: 1.691 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000237/0.1352, allocations: 180.2 kB / 413.8 MB, free: 1.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1352, allocations: 0 / 413.8 MB, free: 1.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006626/0.1359, allocations: 139.9 kB / 413.9 MB, free: 1.379 MB / 334.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.002249/0.1381, allocations: 1.417 MB / 415.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.1395, allocations: 0.5979 MB / 415.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1395, allocations: 0 / 415.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007898/0.1403, allocations: 417.4 kB / 416.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.1407, allocations: 31.98 kB / 416.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005678/0.1464, allocations: 3.435 MB / 419.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/0.1469, allocations: 0.78 MB / 420.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.147, allocations: 54.95 kB / 420.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001556/0.1472, allocations: 79.41 kB / 420.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1472, allocations: 4 kB / 420.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04354/0.1907, allocations: 9.94 MB / 430.6 MB, free: 388 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.23, allocations: 19.92 kB / 430.7 MB, free: 368 kB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.654341558998567]