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.001338/0.001338, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001006/0.001006, allocations: 167.4 kB / 25.61 MB, free: 8.578 MB / 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.9121/0.9121, allocations: 177 MB / 205.9 MB, free: 4.453 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.212e-06/1.212e-06, allocations: 0 / 274.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.771e-05/1.893e-05, allocations: 3.094 kB / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.006211/0.00623, allocations: 2.546 MB / 276.6 MB, free: 1.746 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004565/0.01079, allocations: 1.103 MB / 277.7 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.01092, allocations: 7.938 kB / 277.8 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002556/0.01118, allocations: 60.31 kB / 277.8 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004162/0.01159, allocations: 193.2 kB / 278 MB, free: 400 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.0119, allocations: 187.6 kB / 278.2 MB, free: 212 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004555/0.01235, allocations: 0.5217 MB / 278.7 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.0125, allocations: 61.12 kB / 278.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003715/0.01287, allocations: 323.3 kB / 279.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002689/0.01314, allocations: 235.5 kB / 279.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.634e-05/0.01319, allocations: 40 kB / 279.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003213/0.0164, allocations: 139.8 kB / 279.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.01652, allocations: 119.6 kB / 279.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.01665, allocations: 151.6 kB / 279.8 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004791/0.01713, allocations: 442.5 kB / 280.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.01713, allocations: 3.984 kB / 280.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.01713, allocations: 0 / 280.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.01714, allocations: 0 / 280.2 MB, free: 14.19 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.0009297/0.01807, allocations: 0.7373 MB / 280.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.0181, allocations: 8.031 kB / 280.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003281/0.01843, allocations: 92.67 kB / 281 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000355/0.01878, allocations: 264.7 kB / 281.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.01889, allocations: 144 kB / 281.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.494e-05/0.01895, allocations: 32.33 kB / 281.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003487/0.02244, allocations: 332.8 kB / 281.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.02245, allocations: 192 / 281.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.623e-05/0.02249, allocations: 24.11 kB / 281.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.0225, allocations: 8 kB / 281.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003633/0.02286, allocations: 212.3 kB / 282 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/0.02399, allocations: 0.7413 MB / 282.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003991/0.02439, allocations: 229.6 kB / 283 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.02455, allocations: 105.1 kB / 283.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.02458, allocations: 8.5 kB / 283.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.02461, allocations: 41.89 kB / 283.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.783e-06/0.02461, allocations: 4 kB / 283.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.005697/0.03031, allocations: 1.336 MB / 284.5 MB, free: 9.684 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.03035, allocations: 81.61 kB / 284.6 MB, free: 9.586 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.03054, allocations: 270.6 kB / 284.8 MB, free: 9.301 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.61e-05/0.03057, allocations: 37.7 kB / 284.9 MB, free: 9.258 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.444e-05/0.03066, allocations: 187.9 kB / 285 MB, free: 9.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.03078, allocations: 194.3 kB / 285.2 MB, free: 8.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.03092, allocations: 99.78 kB / 285.3 MB, free: 8.773 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.03105, allocations: 0.5195 MB / 285.8 MB, free: 8.242 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003153/0.03421, allocations: 72.94 kB / 285.9 MB, free: 8.172 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.0344, allocations: 162.1 kB / 286.1 MB, free: 7.996 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.0347, allocations: 205.2 kB / 286.3 MB, free: 7.789 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.0347, allocations: 0 / 286.3 MB, free: 7.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005979/0.0353, allocations: 385.7 kB / 286.7 MB, free: 7.402 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.03531, allocations: 4 kB / 286.7 MB, free: 7.398 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.03532, allocations: 4.031 kB / 286.7 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004877/0.03581, allocations: 230.6 kB / 286.9 MB, free: 7.168 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.03601, allocations: 59.95 kB / 286.9 MB, free: 7.109 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005529/0.04154, allocations: 2.822 MB / 289.8 MB, free: 4.168 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.0417, allocations: 27.92 kB / 289.8 MB, free: 4.141 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.005e-05/0.04173, allocations: 15.98 kB / 289.8 MB, free: 4.125 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.000125/0.04185, allocations: 180.5 kB / 290 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.323e-05/0.04192, allocations: 47.77 kB / 290 MB, free: 3.891 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.962e-05/0.04197, allocations: 51.3 kB / 290.1 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.04198, allocations: 8 kB / 290.1 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.04198, allocations: 0 / 290.1 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.04198, allocations: 4.031 kB / 290.1 MB, free: 3.828 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003121/0.04511, allocations: 0.8899 MB / 291 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.04511, allocations: 4 kB / 291 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.0454, allocations: 63.89 kB / 291.1 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005534/0.04596, allocations: 227.4 kB / 291.3 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-05/0.046, allocations: 15.98 kB / 291.3 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002923/0.04892, allocations: 2.786 MB / 294.1 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.04893, allocations: 0 / 294.1 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.04998, allocations: 0.619 MB / 294.7 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001663/0.05014, allocations: 83.66 kB / 294.8 MB, free: 14.97 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.512e-05/0.05021, allocations: 15.94 kB / 294.8 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.05046, allocations: 23.98 kB / 294.8 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.05063, allocations: 68.36 kB / 294.9 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.006e-05/0.05067, allocations: 15.98 kB / 294.9 MB, free: 14.85 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001484/0.05081, allocations: 197.3 kB / 295.1 MB, free: 14.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.05081, allocations: 0 / 295.1 MB, free: 14.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006729/0.05149, allocations: 147.9 kB / 295.2 MB, free: 14.51 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.001056/0.05254, allocations: 363 kB / 295.6 MB, free: 14.26 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009008/0.05344, allocations: 0.5385 MB / 296.1 MB, free: 13.7 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.05345, allocations: 4 kB / 296.1 MB, free: 13.69 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000602/0.05405, allocations: 448 kB / 296.6 MB, free: 13.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004673/0.05452, allocations: 75.06 kB / 296.6 MB, free: 13.16 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.05603, allocations: 0.702 MB / 297.3 MB, free: 12.42 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001066/0.05613, allocations: 114.3 kB / 297.5 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002082/0.05634, allocations: 58.94 kB / 297.5 MB, free: 12.23 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.05657, allocations: 126.2 kB / 297.6 MB, free: 12.11 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/0.05657, allocations: 0 / 297.6 MB, free: 12.11 MB / 282.7 MB Notification: Performance of Templates: time 0.01181/0.06838, allocations: 8.516 MB / 306.2 MB, free: 3.641 MB / 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.9809226761572063]