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.001819/0.001819, allocations: 116.9 kB / 18.41 MB, free: 4.613 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.00239/0.002391, allocations: 190.9 kB / 21.35 MB, free: 1.684 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.486/1.486, allocations: 222.9 MB / 247.1 MB, free: 4.082 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.002109/0.002109, allocations: 47.92 kB / 358.6 MB, free: 8.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1136, allocations: 49.44 MB / 408.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004133/0.1177, allocations: 2.432 MB / 410.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.1198, allocations: 0.9597 MB / 411.5 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002361/0.1201, allocations: 8 kB / 411.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002598/0.1203, allocations: 51.52 kB / 411.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007207/0.1211, allocations: 158.8 kB / 411.7 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005155/0.1216, allocations: 187.7 kB / 411.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006592/0.1223, allocations: 470.5 kB / 412.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.1225, allocations: 84.94 kB / 412.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004129/0.1229, allocations: 215.3 kB / 412.6 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004106/0.1234, allocations: 243.2 kB / 412.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.575e-05/0.1235, allocations: 36 kB / 412.9 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002844/0.1238, allocations: 127.8 kB / 413 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001663/0.1239, allocations: 107.7 kB / 413.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002367/0.1242, allocations: 187 kB / 413.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007293/0.1249, allocations: 0.4904 MB / 413.8 MB, free: 1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1249, allocations: 4 kB / 413.8 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1249, allocations: 0 / 413.8 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.125, allocations: 4 kB / 413.8 MB, free: 0.9922 MB / 334.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.001477/0.1264, allocations: 0.6778 MB / 414.5 MB, free: 272 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.1265, allocations: 8.031 kB / 414.5 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003674/0.1269, allocations: 60.67 kB / 414.6 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006041/0.1275, allocations: 323.6 kB / 414.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/0.1277, allocations: 88.61 kB / 415 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.234e-05/0.1277, allocations: 32.38 kB / 415 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008828/0.1286, allocations: 421 kB / 415.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.1287, allocations: 7.953 kB / 415.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.1287, allocations: 8 kB / 415.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.1287, allocations: 8 kB / 415.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.1298, allocations: 474.3 kB / 415.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.1317, allocations: 0.9737 MB / 416.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009156/0.1326, allocations: 413.2 kB / 417.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005127/0.1332, allocations: 230.1 kB / 417.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.459e-05/0.1332, allocations: 8.422 kB / 417.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.1333, allocations: 39 kB / 417.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.204e-06/0.1333, allocations: 0 / 417.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005751/0.139, allocations: 2.168 MB / 419.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.845e-05/0.1391, allocations: 85.67 kB / 419.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003845/0.1395, allocations: 263.1 kB / 420 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.1396, allocations: 37.7 kB / 420.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.1397, allocations: 133.3 kB / 420.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001873/0.1399, allocations: 194.3 kB / 420.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.1401, allocations: 90.23 kB / 420.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.1403, allocations: 338.8 kB / 420.8 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000492/0.1408, allocations: 193 kB / 421 MB, free: 9.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005223/0.1413, allocations: 252.6 kB / 421.3 MB, free: 9.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000931/0.1422, allocations: 392.3 kB / 421.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1423, allocations: 0 / 421.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001373/0.1436, allocations: 0.6135 MB / 422.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.1437, allocations: 11.97 kB / 422.3 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1437, allocations: 7.984 kB / 422.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008205/0.1445, allocations: 255.5 kB / 422.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003118/0.1449, allocations: 63.89 kB / 422.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004405/0.1493, allocations: 2.933 MB / 425.5 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/0.1496, allocations: 32.03 kB / 425.5 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.353e-05/0.1497, allocations: 19.98 kB / 425.6 MB, free: 4.715 MB / 350.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.0002318/0.15, allocations: 153.8 kB / 425.7 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.091e-05/0.1501, allocations: 35.75 kB / 425.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001264/0.1502, allocations: 55.3 kB / 425.8 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1502, allocations: 7.938 kB / 425.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.1502, allocations: 0 / 425.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.1502, allocations: 7.984 kB / 425.8 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00236/0.1526, allocations: 1.266 MB / 427.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.1526, allocations: 0 / 427.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003298/0.1529, allocations: 63.89 kB / 427.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007208/0.1537, allocations: 245.3 kB / 427.4 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.6e-05/0.1537, allocations: 15.98 kB / 427.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1956/0.3493, allocations: 2.843 MB / 430.2 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3494, allocations: 1.906 kB / 430.3 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.3511, allocations: 0.9597 MB / 431.2 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.3512, allocations: 150.3 kB / 431.4 MB, free: 21.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.308e-05/0.3513, allocations: 18.08 kB / 431.4 MB, free: 21.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002919/0.3516, allocations: 31.5 kB / 431.4 MB, free: 21.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.3518, allocations: 68.31 kB / 431.5 MB, free: 21.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.469e-05/0.3518, allocations: 17.17 kB / 431.5 MB, free: 21.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001939/0.352, allocations: 193.8 kB / 431.7 MB, free: 21.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3521, allocations: 2.844 kB / 431.7 MB, free: 21.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005831/0.3526, allocations: 155.9 kB / 431.8 MB, free: 21.73 MB / 350.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.0002257/0.3529, allocations: 142.1 kB / 432 MB, free: 21.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001363/0.3542, allocations: 0.7043 MB / 432.7 MB, free: 21.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3543, allocations: 4.969 kB / 432.7 MB, free: 21.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007222/0.355, allocations: 475.9 kB / 433.1 MB, free: 21.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.3554, allocations: 45.23 kB / 433.2 MB, free: 21.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.3568, allocations: 0.838 MB / 434 MB, free: 21.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.357, allocations: 0.7935 MB / 434.8 MB, free: 20.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.3571, allocations: 46.88 kB / 434.9 MB, free: 20.34 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3572, allocations: 1.094 kB / 434.9 MB, free: 20.34 MB / 350.1 MB Notification: Performance of Templates: time 0.01067/0.3678, allocations: 6.007 MB / 440.9 MB, free: 19.92 MB / 350.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.792647760012187]