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.001495/0.001495, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009214/0.0009214, allocations: 82.7 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.335e-05/1.335e-05, allocations: 0 / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1191, allocations: 47.58 MB / 363.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3921/0.5112, allocations: 79.68 MB / 442.7 MB, free: 20 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.5116, allocations: 65.03 kB / 442.8 MB, free: 15.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02658/0.5382, allocations: 9.351 MB / 452.2 MB, free: 8.223 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5382, allocations: 4.688 kB / 452.2 MB, free: 8.219 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.5382, allocations: 8 kB / 452.2 MB, free: 8.211 MB / 330.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.00102/0.5393, allocations: 0.5533 MB / 452.7 MB, free: 7.633 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.5393, allocations: 8.031 kB / 452.7 MB, free: 7.625 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003218/0.5397, allocations: 55.03 kB / 452.8 MB, free: 7.574 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003943/0.5401, allocations: 269.6 kB / 453 MB, free: 7.293 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.5402, allocations: 75.95 kB / 453.1 MB, free: 7.207 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.361e-05/0.5402, allocations: 23.86 kB / 453.1 MB, free: 7.184 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005976/0.5409, allocations: 366.7 kB / 453.5 MB, free: 6.922 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004999/0.5414, allocations: 318.7 kB / 453.8 MB, free: 6.664 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.5414, allocations: 0 / 453.8 MB, free: 6.664 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.5414, allocations: 0 / 453.8 MB, free: 6.664 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.5414, allocations: 8 kB / 453.8 MB, free: 6.656 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.5432, allocations: 1.101 MB / 454.9 MB, free: 5.707 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000456/0.5436, allocations: 296.6 kB / 455.2 MB, free: 5.496 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.5439, allocations: 152.3 kB / 455.4 MB, free: 5.402 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.322e-05/0.5439, allocations: 4 kB / 455.4 MB, free: 5.398 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.5439, allocations: 37.25 kB / 455.4 MB, free: 5.355 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 1.753e-06/0.544, allocations: 0 / 455.4 MB, free: 5.355 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.00234/0.5463, allocations: 1.239 MB / 456.6 MB, free: 4.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.427e-05/0.5464, allocations: 88.81 kB / 456.7 MB, free: 4.145 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.5466, allocations: 178.1 kB / 456.9 MB, free: 3.988 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.647e-05/0.5466, allocations: 37.58 kB / 456.9 MB, free: 3.949 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.591e-05/0.5467, allocations: 135.4 kB / 457.1 MB, free: 3.828 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.835e-05/0.5468, allocations: 136.1 kB / 457.2 MB, free: 3.711 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.32e-05/0.5468, allocations: 0 / 457.2 MB, free: 3.711 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.547, allocations: 337.1 kB / 457.5 MB, free: 3.383 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.5472, allocations: 140.2 kB / 457.7 MB, free: 3.301 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002544/0.5475, allocations: 191.9 kB / 457.9 MB, free: 3.152 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/0.5477, allocations: 144.6 kB / 458 MB, free: 3.055 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.5477, allocations: 0 / 458 MB, free: 3.055 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008025/0.5486, allocations: 486.3 kB / 458.5 MB, free: 2.691 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.5486, allocations: 8.156 kB / 458.5 MB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.5486, allocations: 4 kB / 458.5 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006412/0.5492, allocations: 224.2 kB / 458.7 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002471/0.5495, allocations: 59.84 kB / 458.8 MB, free: 2.453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003266/0.5528, allocations: 2.555 MB / 461.3 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.5531, allocations: 32.06 kB / 461.3 MB, free: 284 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.483e-05/0.5531, allocations: 18.56 kB / 461.4 MB, free: 268 kB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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 () * 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.0002211/0.5534, allocations: 120.1 kB / 461.5 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.535e-05/0.5534, allocations: 27.67 kB / 461.5 MB, free: 116 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.257e-05/0.5535, allocations: 34.78 kB / 461.5 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.5536, allocations: 12 kB / 461.6 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.5536, allocations: 0 / 461.6 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.5536, allocations: 3.984 kB / 461.6 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.5551, allocations: 0.9494 MB / 462.5 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.5551, allocations: 4 kB / 462.5 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002463/0.5554, allocations: 43.91 kB / 462.6 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005705/0.5559, allocations: 228.5 kB / 462.8 MB, free: 15.1 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.556, allocations: 11.8 kB / 462.8 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00308/0.5591, allocations: 2.491 MB / 465.3 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.5591, allocations: 3.953 kB / 465.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.5602, allocations: 0.7073 MB / 466 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.5603, allocations: 142.8 kB / 466.1 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.469e-05/0.5604, allocations: 4 kB / 466.1 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002583/0.5606, allocations: 19.97 kB / 466.2 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.5608, allocations: 70.06 kB / 466.2 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.826e-05/0.5609, allocations: 19.38 kB / 466.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001315/0.561, allocations: 146.1 kB / 466.4 MB, free: 12.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.561, allocations: 4.062 kB / 466.4 MB, free: 12.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006434/0.5616, allocations: 128 kB / 466.5 MB, free: 11.98 MB / 346.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) * 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.0002493/0.5619, allocations: 142.3 kB / 466.7 MB, free: 11.83 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008929/0.5628, allocations: 0.5293 MB / 467.2 MB, free: 11.43 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5628, allocations: 0 / 467.2 MB, free: 11.43 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000503/0.5633, allocations: 373.4 kB / 467.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.5636, allocations: 15.23 kB / 467.6 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009878/0.5646, allocations: 0.505 MB / 468.1 MB, free: 10.67 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004219/0.5651, allocations: 0.787 MB / 468.9 MB, free: 9.852 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002171/0.5653, allocations: 63.25 kB / 468.9 MB, free: 9.789 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.5654, allocations: 27.36 kB / 468.9 MB, free: 9.762 MB / 346.7 MB Notification: Performance of SimCode: time 6.71e-07/0.5654, allocations: 0 / 468.9 MB, free: 9.762 MB / 346.7 MB Notification: Performance of Templates: time 0.01131/0.5767, allocations: 6.054 MB / 475 MB, free: 3.719 MB / 346.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