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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=1000,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=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00154/0.00154, allocations: 110.6 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001767/0.001767, allocations: 213.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.213/2.213, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002149/0.00215, allocations: 59.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4137/0.4158, allocations: 50.53 MB / 409.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.006865/0.4228, allocations: 2.544 MB / 412.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003405/0.4262, allocations: 1.131 MB / 413.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003469/0.4266, allocations: 7.938 kB / 413.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004655/0.4271, allocations: 67.42 kB / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009428/0.4281, allocations: 174.2 kB / 413.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007964/0.4289, allocations: 175.6 kB / 414 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001047/0.43, allocations: 0.5179 MB / 414.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003132/0.4303, allocations: 92.91 kB / 414.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006826/0.431, allocations: 243.3 kB / 414.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006579/0.4317, allocations: 271.1 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.4319, allocations: 44 kB / 415.2 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004638/0.4324, allocations: 135.9 kB / 415.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002251/0.4326, allocations: 119.7 kB / 415.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003822/0.433, allocations: 203.1 kB / 415.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.4342, allocations: 0.5424 MB / 416.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.4343, allocations: 0 / 416.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4343, allocations: 0 / 416.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.94e-05/0.4343, allocations: 0 / 416.1 MB, free: 11.36 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.002548/0.4369, allocations: 0.7017 MB / 416.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.608e-05/0.437, allocations: 12.03 kB / 416.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008254/0.4378, allocations: 68.44 kB / 416.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.4388, allocations: 315.6 kB / 417.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002424/0.4391, allocations: 96.59 kB / 417.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.4392, allocations: 28.38 kB / 417.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.4408, allocations: 425 kB / 417.8 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.642e-05/0.4409, allocations: 3.906 kB / 417.8 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.004e-05/0.441, allocations: 16 kB / 417.8 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.441, allocations: 4 kB / 417.8 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001749/0.4428, allocations: 474.2 kB / 418.3 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003112/0.4459, allocations: 0.989 MB / 419.2 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.4474, allocations: 403.1 kB / 419.6 MB, free: 7.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008548/0.4483, allocations: 226.2 kB / 419.9 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.929e-05/0.4484, allocations: 20.3 kB / 419.9 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.313e-05/0.4485, allocations: 39 kB / 419.9 MB, free: 7.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 7.003e-06/0.4485, allocations: 3.984 kB / 419.9 MB, free: 7.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.009657/0.4582, allocations: 2.148 MB / 422.1 MB, free: 5.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/0.4583, allocations: 81.67 kB / 422.1 MB, free: 5.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006287/0.4589, allocations: 269 kB / 422.4 MB, free: 4.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.868e-05/0.459, allocations: 37.7 kB / 422.4 MB, free: 4.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.4592, allocations: 145 kB / 422.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002763/0.4595, allocations: 173.5 kB / 422.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003078/0.4598, allocations: 98.12 kB / 422.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002213/0.4601, allocations: 342.8 kB / 423.2 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008003/0.4609, allocations: 189 kB / 423.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009125/0.4618, allocations: 244.6 kB / 423.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.4635, allocations: 388.3 kB / 424 MB, free: 3.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.4635, allocations: 0 / 424 MB, free: 3.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002489/0.466, allocations: 0.6134 MB / 424.6 MB, free: 2.523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.074e-05/0.4661, allocations: 7.938 kB / 424.6 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.4661, allocations: 4 kB / 424.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001458/0.4676, allocations: 298.6 kB / 424.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005851/0.4682, allocations: 71.88 kB / 425 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007394/0.4756, allocations: 2.941 MB / 427.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000591/0.4763, allocations: 27.97 kB / 427.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.4764, allocations: 23.98 kB / 428 MB, free: 15.01 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.0003776/0.4768, allocations: 153.7 kB / 428.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001809/0.477, allocations: 39.62 kB / 428.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000188/0.4772, allocations: 55.61 kB / 428.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.4772, allocations: 4 kB / 428.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.4773, allocations: 0 / 428.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.4773, allocations: 7.922 kB / 428.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004262/0.4815, allocations: 1.297 MB / 429.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.188e-06/0.4816, allocations: 0 / 429.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005935/0.4822, allocations: 67.89 kB / 429.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.4835, allocations: 292.6 kB / 429.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.782e-05/0.4836, allocations: 15.98 kB / 429.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00657/0.4902, allocations: 2.849 MB / 432.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.4902, allocations: 64 / 432.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0037/0.494, allocations: 0.9427 MB / 433.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004075/0.4944, allocations: 160.7 kB / 433.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/0.4946, allocations: 15.94 kB / 433.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005802/0.4952, allocations: 32.03 kB / 433.9 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003548/0.4956, allocations: 68.33 kB / 434 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.527e-05/0.4957, allocations: 23.98 kB / 434 MB, free: 8.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004863/0.4962, allocations: 208.3 kB / 434.2 MB, free: 8.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.4962, allocations: 4 kB / 434.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00129/0.4975, allocations: 156 kB / 434.3 MB, free: 8.402 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.001685/0.4992, allocations: 375.8 kB / 434.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002965/0.5022, allocations: 0.6993 MB / 435.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.5022, allocations: 4 kB / 435.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001722/0.504, allocations: 475.8 kB / 435.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008521/0.5049, allocations: 44.42 kB / 435.9 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002779/0.5077, allocations: 0.838 MB / 436.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006401/0.5084, allocations: 0.8006 MB / 437.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003052/0.5087, allocations: 43.41 kB / 437.6 MB, free: 5.16 MB / 350.1 MB Notification: Performance of SimCode: time 1.203e-06/0.5087, allocations: 0 / 437.6 MB, free: 5.16 MB / 350.1 MB Notification: Performance of Templates: time 0.01765/0.5264, allocations: 6.749 MB / 444.3 MB, free: 14.41 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches