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.001033/0.001033, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 59.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2493, allocations: 50.55 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003668/0.253, allocations: 2.531 MB / 411.8 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.2548, allocations: 1.131 MB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.255, allocations: 7.938 kB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002695/0.2552, allocations: 63.48 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004064/0.2557, allocations: 189.2 kB / 413.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003759/0.256, allocations: 183.6 kB / 413.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004556/0.2565, allocations: 0.5141 MB / 413.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.2567, allocations: 88.91 kB / 413.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003127/0.257, allocations: 247.3 kB / 414.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002914/0.2573, allocations: 271.1 kB / 414.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.137e-05/0.2574, allocations: 44 kB / 414.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002172/0.2576, allocations: 131.9 kB / 414.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.2577, allocations: 119.7 kB / 414.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.2579, allocations: 203.1 kB / 414.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005373/0.2585, allocations: 0.5385 MB / 415.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2585, allocations: 0 / 415.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2585, allocations: 0 / 415.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.2585, allocations: 0 / 415.5 MB, free: 11.35 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.001233/0.2597, allocations: 0.7095 MB / 416.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.2598, allocations: 12.03 kB / 416.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003803/0.2602, allocations: 64.44 kB / 416.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004836/0.2607, allocations: 319.6 kB / 416.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.2608, allocations: 88.61 kB / 416.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.886e-05/0.2609, allocations: 32.38 kB / 416.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000774/0.2616, allocations: 425 kB / 417.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.2617, allocations: 15.83 kB / 417.1 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.865e-05/0.2617, allocations: 12 kB / 417.1 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.2617, allocations: 8 kB / 417.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009541/0.2627, allocations: 466.3 kB / 417.6 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.2643, allocations: 0.989 MB / 418.6 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008497/0.2652, allocations: 404.4 kB / 419 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004628/0.2657, allocations: 226.1 kB / 419.2 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.431e-05/0.2657, allocations: 12.61 kB / 419.2 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.2657, allocations: 38.94 kB / 419.2 MB, free: 7.387 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.723e-06/0.2658, allocations: 0 / 419.2 MB, free: 7.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005128/0.2709, allocations: 2.148 MB / 421.4 MB, free: 5.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.2709, allocations: 81.67 kB / 421.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/0.2713, allocations: 273 kB / 421.7 MB, free: 4.754 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.177e-05/0.2713, allocations: 41.69 kB / 421.8 MB, free: 4.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/0.2714, allocations: 141 kB / 421.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.2716, allocations: 177.4 kB / 422.1 MB, free: 4.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.2717, allocations: 98.14 kB / 422.2 MB, free: 4.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.2718, allocations: 334.8 kB / 422.5 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004373/0.2723, allocations: 201 kB / 422.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000455/0.2727, allocations: 240.6 kB / 422.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008147/0.2736, allocations: 384.3 kB / 423.3 MB, free: 3.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2736, allocations: 0 / 423.3 MB, free: 3.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0012/0.2748, allocations: 0.6134 MB / 423.9 MB, free: 2.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.2748, allocations: 18.94 kB / 423.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2748, allocations: 0 / 423.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007733/0.2756, allocations: 294.5 kB / 424.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003064/0.2759, allocations: 71.89 kB / 424.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003989/0.2799, allocations: 2.942 MB / 427.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002928/0.2802, allocations: 32.03 kB / 427.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-05/0.2803, allocations: 23.98 kB / 427.3 MB, free: 15 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.0002072/0.2805, allocations: 161.8 kB / 427.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.672e-05/0.2806, allocations: 39.55 kB / 427.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.2807, allocations: 51.62 kB / 427.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.2807, allocations: 7.984 kB / 427.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2807, allocations: 0 / 427.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.2807, allocations: 7.938 kB / 427.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/0.2829, allocations: 1.293 MB / 428.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.283, allocations: 0 / 428.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000321/0.2833, allocations: 71.88 kB / 428.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006973/0.284, allocations: 288.6 kB / 429.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.184e-05/0.284, allocations: 15.98 kB / 429.2 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003552/0.2876, allocations: 2.85 MB / 432.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2876, allocations: 0 / 432.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001849/0.2895, allocations: 0.9427 MB / 433 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001919/0.2897, allocations: 160.7 kB / 433.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.788e-05/0.2897, allocations: 15.94 kB / 433.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002828/0.29, allocations: 27.97 kB / 433.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.2902, allocations: 72.27 kB / 433.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.2903, allocations: 19.98 kB / 433.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002422/0.2905, allocations: 212.5 kB / 433.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2905, allocations: 3.938 kB / 433.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006341/0.2912, allocations: 148 kB / 433.7 MB, free: 8.383 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.0009277/0.2921, allocations: 363.7 kB / 434 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.2936, allocations: 0.6993 MB / 434.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.2936, allocations: 4 kB / 434.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007907/0.2944, allocations: 475.7 kB / 435.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.2948, allocations: 49.66 kB / 435.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.2963, allocations: 0.8129 MB / 436 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.2967, allocations: 0.7968 MB / 436.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002406/0.2969, allocations: 86.83 kB / 436.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.2971, allocations: 43.41 kB / 437 MB, free: 5.094 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2971, allocations: 3.938 kB / 437 MB, free: 5.09 MB / 350.1 MB Notification: Performance of Templates: time 0.0134/0.3105, allocations: 8.318 MB / 445.3 MB, free: 12.79 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches