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.001698/0.001698, allocations: 180 kB / 17.01 MB, free: 5.125 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.538/1.538, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008669/0.0008671, allocations: 104 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002522/0.0002523, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2576, allocations: 47.57 MB / 375.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09758/0.3552, allocations: 80.18 MB / 456 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003542/0.3556, allocations: 67.97 kB / 456.1 MB, free: 436 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02658/0.3822, allocations: 9.422 MB / 465.5 MB, free: 6.984 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3823, allocations: 0 / 465.5 MB, free: 6.984 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.656e-05/0.3823, allocations: 11.98 kB / 465.5 MB, free: 6.973 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.001036/0.3834, allocations: 0.5846 MB / 466.1 MB, free: 6.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.3834, allocations: 8.031 kB / 466.1 MB, free: 6.332 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002973/0.3837, allocations: 47.61 kB / 466.1 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.3841, allocations: 270.6 kB / 466.4 MB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.3842, allocations: 95.91 kB / 466.5 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.51e-05/0.3843, allocations: 28 kB / 466.5 MB, free: 5.848 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006425/0.3849, allocations: 369.2 kB / 466.9 MB, free: 5.469 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.385, allocations: 4 kB / 466.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.321e-05/0.385, allocations: 8 kB / 466.9 MB, free: 5.457 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.385, allocations: 12 kB / 466.9 MB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007852/0.3858, allocations: 417.9 kB / 467.3 MB, free: 5.039 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.3875, allocations: 1.172 MB / 468.5 MB, free: 3.793 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006017/0.3881, allocations: 333.5 kB / 468.8 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.3881, allocations: 4 kB / 468.8 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.3882, allocations: 38.56 kB / 468.8 MB, free: 3.406 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.833e-06/0.3882, allocations: 0 / 468.8 MB, free: 3.406 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.00461/0.3928, allocations: 1.887 MB / 470.7 MB, free: 1.406 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.3929, allocations: 84.86 kB / 470.8 MB, free: 1.305 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.3931, allocations: 195.8 kB / 471 MB, free: 1.109 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.236e-05/0.3932, allocations: 37.7 kB / 471 MB, free: 1.066 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.738e-05/0.3933, allocations: 136.6 kB / 471.2 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.3935, allocations: 146 kB / 471.3 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.3935, allocations: 12 kB / 471.3 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3936, allocations: 334.8 kB / 471.7 MB, free: 444 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003534/0.394, allocations: 164.8 kB / 471.8 MB, free: 280 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003899/0.3944, allocations: 225.9 kB / 472 MB, free: 36 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004089/0.3948, allocations: 160.9 kB / 472.2 MB, free: 15.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3948, allocations: 0 / 472.2 MB, free: 15.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001108/0.396, allocations: 0.5434 MB / 472.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.396, allocations: 12.06 kB / 472.7 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.396, allocations: 3.953 kB / 472.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007372/0.3968, allocations: 238.2 kB / 473 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.397, allocations: 55.89 kB / 473 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003647/0.4007, allocations: 2.704 MB / 475.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002887/0.401, allocations: 32.03 kB / 475.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-05/0.4011, allocations: 23.94 kB / 475.8 MB, free: 12.13 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.0002135/0.4013, allocations: 157.8 kB / 476 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.874e-05/0.4014, allocations: 23.72 kB / 476 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.01e-05/0.4015, allocations: 39 kB / 476 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.4015, allocations: 8 kB / 476 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.4015, allocations: 4 kB / 476 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.4015, allocations: 3.984 kB / 476 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.4033, allocations: 1.081 MB / 477.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.4033, allocations: 0 / 477.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002241/0.4035, allocations: 39.97 kB / 477.1 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006093/0.4041, allocations: 228.9 kB / 477.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/0.4042, allocations: 11.98 kB / 477.4 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003593/0.4078, allocations: 2.651 MB / 480 MB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.4078, allocations: 0 / 480 MB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.4093, allocations: 0.8018 MB / 480.8 MB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/0.4096, allocations: 148.8 kB / 481 MB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.201e-05/0.4096, allocations: 12 kB / 481 MB, free: 6.691 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.4099, allocations: 23.98 kB / 481 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.4101, allocations: 71.86 kB / 481.1 MB, free: 6.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.583e-05/0.4101, allocations: 15.98 kB / 481.1 MB, free: 6.582 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001967/0.4103, allocations: 156.3 kB / 481.3 MB, free: 6.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4103, allocations: 0 / 481.3 MB, free: 6.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006655/0.411, allocations: 151.9 kB / 481.4 MB, free: 6.281 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.0002534/0.4113, allocations: 139.2 kB / 481.5 MB, free: 6.133 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.4125, allocations: 0.6095 MB / 482.1 MB, free: 5.508 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4126, allocations: 4 kB / 482.2 MB, free: 5.504 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006709/0.4132, allocations: 425.4 kB / 482.6 MB, free: 5.074 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.4136, allocations: 35.88 kB / 482.6 MB, free: 5.039 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.4148, allocations: 0.8154 MB / 483.4 MB, free: 4.199 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.4152, allocations: 0.7878 MB / 484.2 MB, free: 3.387 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002029/0.4154, allocations: 58.95 kB / 484.3 MB, free: 3.324 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.861e-05/0.4155, allocations: 27.42 kB / 484.3 MB, free: 3.301 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4155, allocations: 4 kB / 484.3 MB, free: 3.297 MB / 362.7 MB Notification: Performance of Templates: time 0.01139/0.4269, allocations: 6.253 MB / 490.5 MB, free: 13.06 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/jenkins/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