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.001585/0.001585, allocations: 118.4 kB / 18.41 MB, free: 4.633 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.001644/0.001644, allocations: 190.7 kB / 21.35 MB, free: 1.699 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.436/1.436, allocations: 222.9 MB / 247 MB, free: 4.207 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 47.91 kB / 358.6 MB, free: 8.328 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1148, allocations: 49.44 MB / 408.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003884/0.1187, allocations: 2.354 MB / 410.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.1205, allocations: 0.913 MB / 411.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.1206, allocations: 4 kB / 411.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002119/0.1208, allocations: 47.58 kB / 411.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004736/0.1213, allocations: 139.2 kB / 411.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003333/0.1217, allocations: 171.7 kB / 411.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004707/0.1222, allocations: 414.8 kB / 412.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.1224, allocations: 68.7 kB / 412.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.1226, allocations: 179.4 kB / 412.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002967/0.1229, allocations: 211.3 kB / 412.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.902e-05/0.123, allocations: 39.94 kB / 412.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000232/0.1232, allocations: 123.8 kB / 412.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.1234, allocations: 95.78 kB / 412.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.1235, allocations: 163.2 kB / 413 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005962/0.1241, allocations: 458.3 kB / 413.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.1242, allocations: 3.984 kB / 413.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1242, allocations: 0 / 413.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1242, allocations: 0 / 413.4 MB, free: 1.484 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0012/0.1254, allocations: 0.6389 MB / 414.1 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.1254, allocations: 8.031 kB / 414.1 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000307/0.1258, allocations: 48.73 kB / 414.1 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005333/0.1263, allocations: 316.3 kB / 414.4 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.1264, allocations: 88.52 kB / 414.5 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.439e-05/0.1265, allocations: 32.38 kB / 414.5 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007145/0.1272, allocations: 377.4 kB / 414.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.1273, allocations: 7.953 kB / 414.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.464e-05/0.1273, allocations: 15.88 kB / 414.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.1273, allocations: 8 kB / 414.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008796/0.1282, allocations: 417.9 kB / 415.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.1303, allocations: 1.23 MB / 416.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007455/0.1311, allocations: 358.5 kB / 416.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003981/0.1315, allocations: 188.8 kB / 417.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.109e-05/0.1316, allocations: 4 kB / 417.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.167e-05/0.1316, allocations: 38.56 kB / 417.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.874e-06/0.1316, allocations: 0 / 417.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004985/0.1366, allocations: 1.923 MB / 419.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/0.1367, allocations: 84.86 kB / 419.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003271/0.137, allocations: 242.2 kB / 419.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.323e-05/0.1371, allocations: 37.7 kB / 419.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.1372, allocations: 137 kB / 419.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.1373, allocations: 158.7 kB / 419.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.1375, allocations: 82.11 kB / 419.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1377, allocations: 338.8 kB / 420.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003712/0.138, allocations: 168.8 kB / 420.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004347/0.1385, allocations: 237.8 kB / 420.5 MB, free: 9.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007073/0.1392, allocations: 347.2 kB / 420.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.1392, allocations: 0 / 420.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001165/0.1404, allocations: 0.5591 MB / 421.4 MB, free: 9.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.1404, allocations: 8 kB / 421.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1404, allocations: 0 / 421.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007619/0.1412, allocations: 253.3 kB / 421.7 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002345/0.1415, allocations: 47.91 kB / 421.7 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004135/0.1456, allocations: 2.884 MB / 424.6 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002888/0.1459, allocations: 28.05 kB / 424.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.783e-05/0.146, allocations: 19.98 kB / 424.7 MB, free: 5.68 MB / 350.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.0002099/0.1462, allocations: 155 kB / 424.8 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.361e-05/0.1463, allocations: 23.86 kB / 424.8 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.257e-05/0.1464, allocations: 42.98 kB / 424.9 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1464, allocations: 4 kB / 424.9 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.1464, allocations: 0 / 424.9 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.1464, allocations: 3.984 kB / 424.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001941/0.1483, allocations: 1.094 MB / 426 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1484, allocations: 4 kB / 426 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002302/0.1486, allocations: 47.91 kB / 426 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006832/0.1493, allocations: 233.1 kB / 426.3 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.543e-05/0.1493, allocations: 15.98 kB / 426.3 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004047/0.1534, allocations: 2.844 MB / 429.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1534, allocations: 0 / 429.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.155, allocations: 0.8274 MB / 429.9 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/0.1552, allocations: 136.9 kB / 430.1 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.794e-05/0.1553, allocations: 15.94 kB / 430.1 MB, free: 0 / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1896/0.3449, allocations: 21.02 kB / 430.1 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/0.3451, allocations: 63.58 kB / 430.2 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.364e-05/0.3452, allocations: 14.28 kB / 430.2 MB, free: 22.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.3454, allocations: 176.5 kB / 430.4 MB, free: 22.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3454, allocations: 0 / 430.4 MB, free: 22.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007129/0.3461, allocations: 143.7 kB / 430.5 MB, free: 22.54 MB / 350.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.0002189/0.3463, allocations: 138.2 kB / 430.6 MB, free: 22.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.3475, allocations: 0.6301 MB / 431.3 MB, free: 22.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3475, allocations: 0 / 431.3 MB, free: 22.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006277/0.3481, allocations: 435.1 kB / 431.7 MB, free: 22.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003705/0.3485, allocations: 37.31 kB / 431.7 MB, free: 22.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.3496, allocations: 0.7318 MB / 432.5 MB, free: 21.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.3498, allocations: 0.7795 MB / 433.2 MB, free: 21.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.387e-05/0.3499, allocations: 30.05 kB / 433.3 MB, free: 21.19 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3499, allocations: 3.75 kB / 433.3 MB, free: 21.19 MB / 350.1 MB Notification: Performance of Templates: time 0.008897/0.3588, allocations: 5.242 MB / 438.5 MB, free: 20.85 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.844425327028148]