Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001104/0.001104, allocations: 183.8 kB / 18.04 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.4 MB / 224.2 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008555/0.0008555, allocations: 89.05 kB / 272.5 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004307/0.0004308, allocations: 8 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.224, allocations: 47.58 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08593/0.31, allocations: 80.24 MB / 457.3 MB, free: 312 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.3102, allocations: 71.97 kB / 457.3 MB, free: 240 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02726/0.3375, allocations: 9.336 MB / 466.7 MB, free: 6.883 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3376, allocations: 4 kB / 466.7 MB, free: 6.879 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.3376, allocations: 4 kB / 466.7 MB, free: 6.875 MB / 346.7 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.001014/0.3386, allocations: 0.5809 MB / 467.3 MB, free: 6.242 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.3386, allocations: 8.031 kB / 467.3 MB, free: 6.234 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000286/0.3389, allocations: 52.55 kB / 467.3 MB, free: 6.184 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004425/0.3394, allocations: 275.8 kB / 467.6 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.3395, allocations: 88.52 kB / 467.7 MB, free: 5.777 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.989e-05/0.3396, allocations: 32.36 kB / 467.7 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006648/0.3403, allocations: 373.8 kB / 468.1 MB, free: 5.363 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.3403, allocations: 11.84 kB / 468.1 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.672e-05/0.3403, allocations: 12 kB / 468.1 MB, free: 5.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.3404, allocations: 4 kB / 468.1 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007912/0.3412, allocations: 413.9 kB / 468.5 MB, free: 4.934 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.3429, allocations: 1.172 MB / 469.7 MB, free: 3.688 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006413/0.3436, allocations: 335 kB / 470 MB, free: 3.352 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003576/0.3439, allocations: 176.8 kB / 470.2 MB, free: 3.176 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.344, allocations: 4 kB / 470.2 MB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.344, allocations: 38.56 kB / 470.2 MB, free: 3.125 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.984e-06/0.344, allocations: 4 kB / 470.2 MB, free: 3.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.004532/0.3485, allocations: 1.899 MB / 472.1 MB, free: 1.109 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.3486, allocations: 88.86 kB / 472.2 MB, free: 1.004 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002735/0.3489, allocations: 216.6 kB / 472.4 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.349, allocations: 37.7 kB / 472.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.527e-05/0.3491, allocations: 140.6 kB / 472.6 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.3492, allocations: 141.9 kB / 472.7 MB, free: 468 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.392e-05/0.3492, allocations: 12 kB / 472.7 MB, free: 456 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3493, allocations: 334.8 kB / 473.1 MB, free: 112 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004657/0.3498, allocations: 164.9 kB / 473.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003914/0.3502, allocations: 229.8 kB / 473.5 MB, free: 15.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00067/0.3509, allocations: 335.2 kB / 473.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3509, allocations: 0 / 473.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00123/0.3521, allocations: 0.5551 MB / 474.3 MB, free: 14.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3522, allocations: 11.28 kB / 474.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3522, allocations: 0 / 474.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006636/0.3529, allocations: 238.3 kB / 474.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/0.3531, allocations: 59.84 kB / 474.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003508/0.3566, allocations: 2.654 MB / 477.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002572/0.3569, allocations: 31.92 kB / 477.3 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.051e-05/0.357, allocations: 19.98 kB / 477.3 MB, free: 11.65 MB / 362.7 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001751/0.3571, allocations: 153.8 kB / 477.5 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.084e-05/0.3572, allocations: 31.56 kB / 477.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.635e-05/0.3573, allocations: 42.98 kB / 477.6 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.3573, allocations: 4 kB / 477.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.3573, allocations: 4 kB / 477.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.3573, allocations: 7.969 kB / 477.6 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.3591, allocations: 1.065 MB / 478.6 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3591, allocations: 3.984 kB / 478.6 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002405/0.3594, allocations: 51.91 kB / 478.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006005/0.36, allocations: 220.9 kB / 478.9 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.414e-05/0.3601, allocations: 16 kB / 478.9 MB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003425/0.3635, allocations: 2.597 MB / 481.5 MB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3635, allocations: 0 / 481.5 MB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.365, allocations: 0.7905 MB / 482.3 MB, free: 6.461 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.3651, allocations: 144.7 kB / 482.5 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.156e-05/0.3652, allocations: 12 kB / 482.5 MB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.3655, allocations: 35.89 kB / 482.5 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.3656, allocations: 67.94 kB / 482.6 MB, free: 6.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.592e-05/0.3657, allocations: 23.98 kB / 482.6 MB, free: 6.164 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001894/0.3659, allocations: 160.3 kB / 482.8 MB, free: 6.008 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3659, allocations: 0 / 482.8 MB, free: 6.008 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006092/0.3665, allocations: 143.9 kB / 482.9 MB, free: 5.867 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002298/0.3667, allocations: 143.2 kB / 483 MB, free: 5.719 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.3679, allocations: 0.6096 MB / 483.6 MB, free: 5.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3679, allocations: 4 kB / 483.6 MB, free: 5.086 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007055/0.3687, allocations: 425.5 kB / 484.1 MB, free: 4.656 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.3691, allocations: 35.92 kB / 484.1 MB, free: 4.621 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.3705, allocations: 0.8236 MB / 484.9 MB, free: 3.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003682/0.3708, allocations: 0.784 MB / 485.7 MB, free: 2.957 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002191/0.3711, allocations: 54.95 kB / 485.8 MB, free: 2.902 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.3712, allocations: 35.36 kB / 485.8 MB, free: 2.867 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3712, allocations: 4 kB / 485.8 MB, free: 2.863 MB / 362.7 MB Notification: Performance of Templates: time 0.01163/0.3828, allocations: 6.264 MB / 492.1 MB, free: 12.6 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches