Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001333/0.001333, allocations: 120.8 kB / 18.46 MB, free: 4.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.001383/0.001383, allocations: 190.9 kB / 21.4 MB, free: 1.52 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.529/1.529, allocations: 225.6 MB / 249.8 MB, free: 3.602 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: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 48.06 kB / 366.8 MB, free: 356 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1097, allocations: 52.15 MB / 418.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003863/0.1135, allocations: 2.44 MB / 421.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.1154, allocations: 0.9714 MB / 422.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.1156, allocations: 7.938 kB / 422.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002269/0.1158, allocations: 43.58 kB / 422.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005409/0.1164, allocations: 167 kB / 422.6 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004061/0.1168, allocations: 179.7 kB / 422.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005118/0.1173, allocations: 478.4 kB / 423.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.1175, allocations: 64.94 kB / 423.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002952/0.1177, allocations: 211.4 kB / 423.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003453/0.1181, allocations: 255.1 kB / 423.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.409e-05/0.1182, allocations: 36 kB / 423.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002389/0.1184, allocations: 123.9 kB / 423.9 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001678/0.1186, allocations: 115.6 kB / 424 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.1188, allocations: 187.1 kB / 424.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006088/0.1194, allocations: 494.1 kB / 424.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.1194, allocations: 8 kB / 424.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1194, allocations: 0 / 424.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.1194, allocations: 0 / 424.7 MB, free: 6.344 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.00141/0.1208, allocations: 0.6879 MB / 425.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.1208, allocations: 12.03 kB / 425.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003243/0.1212, allocations: 56.69 kB / 425.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005706/0.1217, allocations: 315.6 kB / 425.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.1219, allocations: 88.61 kB / 425.8 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.215e-05/0.1219, allocations: 36.31 kB / 425.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008521/0.1228, allocations: 417.1 kB / 426.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.1228, allocations: 3.953 kB / 426.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.386e-05/0.1229, allocations: 12 kB / 426.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.1229, allocations: 8 kB / 426.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.1239, allocations: 474.2 kB / 426.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.1258, allocations: 0.9621 MB / 427.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008758/0.1266, allocations: 389.1 kB / 428.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004954/0.1271, allocations: 202.1 kB / 428.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.1272, allocations: 8.438 kB / 428.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.1272, allocations: 39 kB / 428.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.023e-06/0.1272, allocations: 0 / 428.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005643/0.1329, allocations: 2.16 MB / 430.5 MB, free: 232 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/0.1329, allocations: 89.61 kB / 430.6 MB, free: 124 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003688/0.1333, allocations: 267.1 kB / 430.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.747e-05/0.1333, allocations: 37.7 kB / 430.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1334, allocations: 129.3 kB / 431 MB, free: 15.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.1336, allocations: 198.3 kB / 431.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.1338, allocations: 90.23 kB / 431.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1339, allocations: 334.8 kB / 431.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004822/0.1344, allocations: 197 kB / 431.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005206/0.1349, allocations: 252.6 kB / 432.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008973/0.1358, allocations: 388.3 kB / 432.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1358, allocations: 0 / 432.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00138/0.1372, allocations: 0.6135 MB / 433.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.1372, allocations: 7.938 kB / 433.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1373, allocations: 0 / 433.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008097/0.1381, allocations: 254.5 kB / 433.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003187/0.1384, allocations: 67.89 kB / 433.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004401/0.1428, allocations: 2.941 MB / 436.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003708/0.1432, allocations: 32.03 kB / 436.3 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-05/0.1432, allocations: 19.94 kB / 436.4 MB, free: 10.13 MB / 366.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.0002906/0.1435, allocations: 165.6 kB / 436.5 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.1436, allocations: 35.75 kB / 436.6 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.1437, allocations: 43.31 kB / 436.6 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.1437, allocations: 8 kB / 436.6 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1437, allocations: 4 kB / 436.6 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.1438, allocations: 3.984 kB / 436.6 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002517/0.1463, allocations: 1.25 MB / 437.9 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1463, allocations: 0 / 437.9 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003295/0.1466, allocations: 63.98 kB / 437.9 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000724/0.1473, allocations: 253.2 kB / 438.2 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.668e-05/0.1474, allocations: 11.98 kB / 438.2 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004175/0.1515, allocations: 2.846 MB / 441 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1515, allocations: 0 / 441 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/0.1536, allocations: 0.9623 MB / 442 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.1538, allocations: 148.9 kB / 442.1 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.499e-05/0.1539, allocations: 19.92 kB / 442.2 MB, free: 4.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003081/0.1542, allocations: 23.98 kB / 442.2 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.1544, allocations: 68.39 kB / 442.3 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/0.1544, allocations: 23.98 kB / 442.3 MB, free: 3.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002744/0.1547, allocations: 196.6 kB / 442.5 MB, free: 3.789 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1547, allocations: 0 / 442.5 MB, free: 3.789 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007044/0.1554, allocations: 151.9 kB / 442.6 MB, free: 3.641 MB / 366.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.0002843/0.1557, allocations: 151.6 kB / 442.8 MB, free: 3.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.1573, allocations: 0.6643 MB / 443.4 MB, free: 2.793 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1573, allocations: 0 / 443.4 MB, free: 2.793 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000868/0.1581, allocations: 463.7 kB / 443.9 MB, free: 2.332 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004319/0.1586, allocations: 36.42 kB / 443.9 MB, free: 2.293 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/0.1602, allocations: 0.8405 MB / 444.8 MB, free: 1.418 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004639/0.1607, allocations: 0.785 MB / 445.5 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.1609, allocations: 47.41 kB / 445.6 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1609, allocations: 0 / 445.6 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of Templates: time 0.245/0.4059, allocations: 6.032 MB / 451.6 MB, free: 29.26 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.717222125036642]