Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009835/0.0009835, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001263, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9552/0.9552, allocations: 177 MB / 204.8 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 3.938 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.352e-05/2.485e-05, allocations: 5.266 kB / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003154/0.003179, allocations: 2.559 MB / 275.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.004776, allocations: 1.107 MB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.004908, allocations: 7.938 kB / 276.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002131/0.005121, allocations: 67.42 kB / 276.6 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003739/0.005495, allocations: 195.7 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.005808, allocations: 183.6 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004181/0.006226, allocations: 0.5334 MB / 277.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.006334, allocations: 61.12 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000325/0.006659, allocations: 315.4 kB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.006905, allocations: 235.4 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.741e-05/0.006952, allocations: 44 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.00713, allocations: 135.8 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.285e-05/0.007213, allocations: 119.7 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.799e-05/0.007311, allocations: 147.6 kB / 278.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004491/0.00776, allocations: 446.5 kB / 279 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.007762, allocations: 7.938 kB / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.007763, allocations: 0 / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.007768, allocations: 0 / 279 MB, free: 11.3 MB / 266.7 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.000797/0.008565, allocations: 0.7218 MB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.008602, allocations: 19.98 kB / 279.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002751/0.008877, allocations: 88.67 kB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003357/0.009213, allocations: 272.7 kB / 280.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.009315, allocations: 144 kB / 280.3 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.639e-05/0.009362, allocations: 32.33 kB / 280.3 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004758/0.009837, allocations: 356.9 kB / 280.6 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.009852, allocations: 4.188 kB / 280.6 MB, free: 9.574 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.916e-05/0.009881, allocations: 24.11 kB / 280.7 MB, free: 9.551 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.009892, allocations: 8 kB / 280.7 MB, free: 9.543 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003722/0.01026, allocations: 263.6 kB / 280.9 MB, free: 9.285 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.01129, allocations: 0.7643 MB / 281.7 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004272/0.01171, allocations: 260.8 kB / 281.9 MB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.01189, allocations: 133.1 kB / 282.1 MB, free: 8.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.01192, allocations: 8.5 kB / 282.1 MB, free: 8.078 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.01195, allocations: 41.89 kB / 282.1 MB, free: 8.027 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.393e-06/0.01195, allocations: 0 / 282.1 MB, free: 8.027 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002775/0.01472, allocations: 1.496 MB / 283.6 MB, free: 6.473 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.01476, allocations: 81.61 kB / 283.7 MB, free: 6.375 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.01494, allocations: 278.6 kB / 284 MB, free: 6.082 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.01497, allocations: 37.7 kB / 284 MB, free: 6.039 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.535e-05/0.01505, allocations: 188 kB / 284.2 MB, free: 5.852 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.01516, allocations: 190.3 kB / 284.4 MB, free: 5.664 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.01527, allocations: 99.81 kB / 284.5 MB, free: 5.559 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.01539, allocations: 0.5079 MB / 285 MB, free: 5.039 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.01557, allocations: 100.9 kB / 285.1 MB, free: 4.938 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.01577, allocations: 194.2 kB / 285.3 MB, free: 4.734 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.01608, allocations: 237.2 kB / 285.5 MB, free: 4.496 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.01608, allocations: 0 / 285.5 MB, free: 4.496 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005751/0.01666, allocations: 437.7 kB / 285.9 MB, free: 4.055 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.01667, allocations: 4 kB / 285.9 MB, free: 4.051 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.01668, allocations: 4 kB / 285.9 MB, free: 4.047 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004413/0.01712, allocations: 233.4 kB / 286.2 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.01728, allocations: 67.89 kB / 286.2 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002308/0.01959, allocations: 2.904 MB / 289.1 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.01972, allocations: 19.98 kB / 289.2 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.269e-05/0.01975, allocations: 24.02 kB / 289.2 MB, free: 0.6797 MB / 266.7 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.0001177/0.01987, allocations: 180.5 kB / 289.4 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.011e-05/0.01994, allocations: 47.81 kB / 289.4 MB, free: 456 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.621e-05/0.01999, allocations: 51.3 kB / 289.5 MB, free: 404 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.01999, allocations: 4 kB / 289.5 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.01999, allocations: 3.938 kB / 289.5 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.02, allocations: 0 / 289.5 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.02156, allocations: 0.987 MB / 290.5 MB, free: 15.35 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.02157, allocations: 4 kB / 290.5 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.02176, allocations: 67.88 kB / 290.5 MB, free: 15.28 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003969/0.02216, allocations: 223.4 kB / 290.7 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/0.02219, allocations: 15.98 kB / 290.8 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00222/0.02441, allocations: 2.865 MB / 293.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.02441, allocations: 0 / 293.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007862/0.0252, allocations: 0.6971 MB / 294.3 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.02531, allocations: 79.72 kB / 294.4 MB, free: 11.25 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/0.02535, allocations: 12 kB / 294.4 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.02548, allocations: 24.05 kB / 294.4 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.02561, allocations: 72.3 kB / 294.5 MB, free: 11.15 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.02563, allocations: 19.98 kB / 294.5 MB, free: 11.13 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001093/0.02574, allocations: 201.4 kB / 294.7 MB, free: 10.93 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02574, allocations: 0 / 294.7 MB, free: 10.93 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004016/0.02614, allocations: 151.9 kB / 294.9 MB, free: 10.79 MB / 282.7 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.000821/0.02696, allocations: 364.7 kB / 295.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007161/0.02768, allocations: 0.5893 MB / 295.8 MB, free: 9.906 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.02768, allocations: 4 kB / 295.8 MB, free: 9.902 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004148/0.0281, allocations: 472.1 kB / 296.3 MB, free: 9.418 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.02838, allocations: 67.95 kB / 296.3 MB, free: 9.352 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.02971, allocations: 0.7098 MB / 297.1 MB, free: 8.605 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.255e-05/0.02979, allocations: 118.3 kB / 297.2 MB, free: 8.469 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001438/0.02993, allocations: 74.89 kB / 297.2 MB, free: 8.395 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.825e-05/0.03002, allocations: 40.48 kB / 297.3 MB, free: 8.355 MB / 282.7 MB Notification: Performance of SimCode: time 1.002e-06/0.03002, allocations: 0 / 297.3 MB, free: 8.355 MB / 282.7 MB Notification: Performance of Templates: time 0.01006/0.04008, allocations: 8.241 MB / 305.5 MB, free: 168 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8701592218130827]