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.001745/0.001745, allocations: 70.11 kB / 21.24 MB, free: 0.5547 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.002107/0.002107, allocations: 149.7 kB / 24.49 MB, free: 3.855 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.427/1.427, allocations: 173.4 MB / 201.1 MB, free: 12.69 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.001552/0.001552, allocations: 47.06 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08632/0.08787, allocations: 52.17 MB / 371.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003624/0.09149, allocations: 2.226 MB / 373.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.09309, allocations: 0.882 MB / 374.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.09321, allocations: 7.938 kB / 374.7 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.09341, allocations: 43.58 kB / 374.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004589/0.09387, allocations: 131.3 kB / 374.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003451/0.09421, allocations: 179.7 kB / 375 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004453/0.09466, allocations: 418.7 kB / 375.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.0948, allocations: 48.86 kB / 375.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.09503, allocations: 187.5 kB / 375.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003153/0.09534, allocations: 211.2 kB / 375.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.457e-05/0.09541, allocations: 32 kB / 375.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002198/0.09563, allocations: 115.9 kB / 376 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.09576, allocations: 91.78 kB / 376.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.09592, allocations: 147.3 kB / 376.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005254/0.09645, allocations: 454.4 kB / 376.7 MB, free: 2.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.09645, allocations: 0 / 376.7 MB, free: 2.211 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.09645, allocations: 4 kB / 376.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.09646, allocations: 0 / 376.7 MB, free: 2.207 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.001144/0.0976, allocations: 0.5674 MB / 377.3 MB, free: 1.609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.09764, allocations: 12.92 kB / 377.3 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003104/0.09795, allocations: 48.72 kB / 377.3 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004546/0.0984, allocations: 242 kB / 377.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.09857, allocations: 140 kB / 377.7 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.763e-05/0.09863, allocations: 28.36 kB / 377.7 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007478/0.09937, allocations: 412.5 kB / 378.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.09939, allocations: 7.953 kB / 378.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.09943, allocations: 12 kB / 378.1 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.09944, allocations: 4 kB / 378.1 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008643/0.1003, allocations: 410.3 kB / 378.5 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.1023, allocations: 1.061 MB / 379.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007074/0.103, allocations: 334.5 kB / 379.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003894/0.1034, allocations: 172.8 kB / 380.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.12e-05/0.1034, allocations: 7.938 kB / 380.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.1035, allocations: 34.56 kB / 380.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.693e-06/0.1035, allocations: 4 kB / 380.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004859/0.1083, allocations: 1.696 MB / 381.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.1084, allocations: 88.86 kB / 381.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.1087, allocations: 238.2 kB / 382.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.765e-05/0.1087, allocations: 33.7 kB / 382.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.1088, allocations: 140.8 kB / 382.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.109, allocations: 154.7 kB / 382.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.1091, allocations: 90.12 kB / 382.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1093, allocations: 338.8 kB / 382.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003882/0.1097, allocations: 164.9 kB / 383.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004516/0.1101, allocations: 260.2 kB / 383.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007452/0.1109, allocations: 348.1 kB / 383.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1109, allocations: 4.031 kB / 383.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001152/0.112, allocations: 0.545 MB / 384.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.112, allocations: 4 kB / 384.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.112, allocations: 0 / 384.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007486/0.1128, allocations: 248.8 kB / 384.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002468/0.113, allocations: 55.89 kB / 384.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004058/0.1171, allocations: 2.712 MB / 387.2 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002582/0.1174, allocations: 27.97 kB / 387.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.512e-05/0.1174, allocations: 16 kB / 387.3 MB, free: 7.195 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.0001873/0.1176, allocations: 165.3 kB / 387.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.1177, allocations: 27.81 kB / 387.5 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.624e-05/0.1178, allocations: 46.98 kB / 387.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1178, allocations: 4 kB / 387.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.1178, allocations: 0 / 387.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.944e-06/0.1178, allocations: 3.984 kB / 387.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001853/0.1196, allocations: 0.957 MB / 388.5 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.1196, allocations: 4 kB / 388.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.1199, allocations: 47.91 kB / 388.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000677/0.1205, allocations: 236.9 kB / 388.7 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.1206, allocations: 11.98 kB / 388.8 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003856/0.1244, allocations: 2.67 MB / 391.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1244, allocations: 0 / 391.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.126, allocations: 0.8121 MB / 392.2 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001495/0.1261, allocations: 59.78 kB / 392.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.373e-05/0.1262, allocations: 15.98 kB / 392.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.1265, allocations: 23.98 kB / 392.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.1266, allocations: 59.88 kB / 392.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.639e-05/0.1267, allocations: 19.92 kB / 392.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002205/0.1269, allocations: 176.3 kB / 392.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1269, allocations: 4.062 kB / 392.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006005/0.1275, allocations: 147.9 kB / 392.7 MB, free: 1.551 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.1277, allocations: 141.9 kB / 392.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.129, allocations: 0.6062 MB / 393.5 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.129, allocations: 0 / 393.5 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007287/0.1297, allocations: 409.8 kB / 393.9 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.1301, allocations: 31.98 kB / 393.9 MB, free: 352 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00135/0.1315, allocations: 0.7025 MB / 394.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001904/0.1316, allocations: 175.8 kB / 394.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001682/0.1318, allocations: 58.94 kB / 394.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.063e-05/0.1319, allocations: 28.48 kB / 394.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1319, allocations: 0 / 394.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of Templates: time 0.01255/0.1445, allocations: 6.51 MB / 401.4 MB, free: 8.883 MB / 366.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 -s ida -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 4.654501074925065]