Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001345/0.001345, allocations: 112.9 kB / 18.45 MB, free: 4.625 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.00146/0.00146, allocations: 208.3 kB / 21.41 MB, free: 1.672 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.43/1.43, allocations: 207.6 MB / 231.8 MB, free: 4.09 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.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.002529/0.002529, allocations: 59.91 kB / 342.3 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1318, allocations: 49.13 MB / 391.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003964/0.1358, allocations: 2.435 MB / 393.8 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.138, allocations: 1.015 MB / 394.9 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.1382, allocations: 7.938 kB / 394.9 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002419/0.1384, allocations: 51.5 kB / 394.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000592/0.139, allocations: 163 kB / 395.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000382/0.1394, allocations: 179.7 kB / 395.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005382/0.1399, allocations: 470.5 kB / 395.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001845/0.1401, allocations: 76.75 kB / 395.8 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003145/0.1404, allocations: 211.3 kB / 396 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003371/0.1408, allocations: 255.2 kB / 396.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.295e-05/0.1408, allocations: 40 kB / 396.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002423/0.1411, allocations: 123.9 kB / 396.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.1412, allocations: 103.7 kB / 396.5 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.1414, allocations: 183.2 kB / 396.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007552/0.1422, allocations: 0.4982 MB / 397.2 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1422, allocations: 0 / 397.2 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1422, allocations: 0 / 397.2 MB, free: 2.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.1422, allocations: 0 / 397.2 MB, free: 2.914 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001481/0.1437, allocations: 0.6778 MB / 397.9 MB, free: 2.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.1437, allocations: 12.03 kB / 397.9 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.016e-05/0.1438, allocations: 66.72 kB / 397.9 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003178/0.1441, allocations: 60.69 kB / 398 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005714/0.1447, allocations: 323.5 kB / 398.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.1448, allocations: 92.61 kB / 398.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.847e-05/0.1449, allocations: 32.38 kB / 398.4 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008392/0.1457, allocations: 416.8 kB / 398.8 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.1458, allocations: 7.938 kB / 398.8 MB, free: 1.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.135e-05/0.1458, allocations: 12 kB / 398.9 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.1458, allocations: 4 kB / 398.9 MB, free: 1.109 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.1469, allocations: 474.2 kB / 399.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001865/0.1488, allocations: 0.9815 MB / 400.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008721/0.1496, allocations: 376.6 kB / 400.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004844/0.1501, allocations: 218 kB / 400.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.547e-05/0.1502, allocations: 12.41 kB / 400.9 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.1502, allocations: 39 kB / 400.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.435e-06/0.1502, allocations: 0 / 400.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005662/0.1559, allocations: 2.149 MB / 403.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.995e-05/0.1559, allocations: 89.66 kB / 403.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003962/0.1563, allocations: 263.1 kB / 403.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.744e-05/0.1564, allocations: 37.69 kB / 403.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.1565, allocations: 137.2 kB / 403.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001831/0.1567, allocations: 194.4 kB / 403.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/0.1568, allocations: 82.25 kB / 403.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.157, allocations: 346.8 kB / 404.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004587/0.1575, allocations: 189 kB / 404.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005057/0.158, allocations: 256.6 kB / 404.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008769/0.1589, allocations: 388.4 kB / 405 MB, free: 10.69 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1589, allocations: 3.938 kB / 405 MB, free: 10.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001339/0.1602, allocations: 0.6018 MB / 405.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.1602, allocations: 11.94 kB / 405.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.1602, allocations: 4.031 kB / 405.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008154/0.1611, allocations: 261.9 kB / 405.9 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.1614, allocations: 67.88 kB / 406 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004373/0.1657, allocations: 2.932 MB / 408.9 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003464/0.1661, allocations: 32 kB / 408.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.652e-05/0.1661, allocations: 20 kB / 408.9 MB, free: 6.609 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002481/0.1664, allocations: 165.8 kB / 409.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.221e-05/0.1665, allocations: 27.81 kB / 409.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001241/0.1666, allocations: 55.3 kB / 409.2 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1666, allocations: 4 kB / 409.2 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1666, allocations: 0 / 409.2 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.1666, allocations: 3.984 kB / 409.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00236/0.169, allocations: 1.258 MB / 410.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.169, allocations: 3.984 kB / 410.5 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003269/0.1693, allocations: 63.89 kB / 410.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007561/0.1701, allocations: 244.7 kB / 410.8 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.956e-05/0.1701, allocations: 15.98 kB / 410.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004091/0.1742, allocations: 2.846 MB / 413.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.1742, allocations: 4 kB / 413.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/0.1762, allocations: 0.9468 MB / 414.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002057/0.1764, allocations: 156.8 kB / 414.7 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.257e-05/0.1764, allocations: 15.94 kB / 414.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003064/0.1767, allocations: 27.97 kB / 414.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.1769, allocations: 72.27 kB / 414.8 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.553e-05/0.177, allocations: 12 kB / 414.9 MB, free: 460 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002676/0.1772, allocations: 196.6 kB / 415 MB, free: 264 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1772, allocations: 4.062 kB / 415 MB, free: 260 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006487/0.1779, allocations: 155.9 kB / 415.2 MB, free: 104 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * 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: 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.002572/0.1804, allocations: 1.541 MB / 416.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001568/0.182, allocations: 0.6682 MB / 417.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.182, allocations: 4 kB / 417.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008978/0.1829, allocations: 459.6 kB / 417.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004758/0.1834, allocations: 52.31 kB / 417.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006506/0.1899, allocations: 3.824 MB / 421.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005002/0.1904, allocations: 0.7927 MB / 422.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002205/0.1906, allocations: 66.92 kB / 422.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.1908, allocations: 103.4 kB / 422.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of SimCode: time 1.163e-06/0.1908, allocations: 0 / 422.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04485/0.2357, allocations: 11.01 MB / 433.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.69, allocations: 11.89 kB / 433.7 MB, free: 13.33 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_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: 15.120369687996572]