Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001483/0.001483, allocations: 185.8 kB / 16.41 MB, free: 5.723 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.961/1.961, allocations: 205.4 MB / 222.5 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.001186/0.001185, allocations: 99.22 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008598/0.0008599, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3573, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1332/0.4906, allocations: 80.19 MB / 454.7 MB, free: 0.582 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/0.491, allocations: 75.97 kB / 454.8 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04419/0.5352, allocations: 9.402 MB / 464.2 MB, free: 7.086 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5352, allocations: 0 / 464.2 MB, free: 7.086 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.077e-05/0.5353, allocations: 8 kB / 464.2 MB, free: 7.078 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.001464/0.5367, allocations: 0.5847 MB / 464.8 MB, free: 6.445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.5368, allocations: 12.03 kB / 464.8 MB, free: 6.434 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004503/0.5373, allocations: 47.61 kB / 464.8 MB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006156/0.5379, allocations: 278.5 kB / 465.1 MB, free: 6.074 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.5381, allocations: 95.89 kB / 465.2 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.788e-05/0.5382, allocations: 24 kB / 465.2 MB, free: 5.945 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.5394, allocations: 373.2 kB / 465.6 MB, free: 5.562 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.5394, allocations: 3.984 kB / 465.6 MB, free: 5.559 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.969e-05/0.5395, allocations: 12 kB / 465.6 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.5395, allocations: 4 kB / 465.6 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.5411, allocations: 413.9 kB / 466 MB, free: 5.141 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003036/0.5441, allocations: 1.172 MB / 467.2 MB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.5454, allocations: 334 kB / 467.5 MB, free: 3.559 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.269e-05/0.5455, allocations: 4 kB / 467.5 MB, free: 3.555 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/0.5456, allocations: 34.56 kB / 467.6 MB, free: 3.512 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 3.827e-06/0.5456, allocations: 4 kB / 467.6 MB, free: 3.508 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.00822/0.5538, allocations: 1.887 MB / 469.4 MB, free: 1.508 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.5539, allocations: 84.86 kB / 469.5 MB, free: 1.406 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003853/0.5543, allocations: 191.8 kB / 469.7 MB, free: 1.215 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.325e-05/0.5544, allocations: 41.69 kB / 469.8 MB, free: 1.168 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.5545, allocations: 199.2 kB / 470 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001749/0.5547, allocations: 145.9 kB / 470.1 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-05/0.5548, allocations: 15.94 kB / 470.1 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.5549, allocations: 326.8 kB / 470.4 MB, free: 492 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006502/0.5556, allocations: 164.8 kB / 470.6 MB, free: 328 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006998/0.5563, allocations: 221.9 kB / 470.8 MB, free: 88 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000639/0.5569, allocations: 156.8 kB / 471 MB, free: 15.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.557, allocations: 0 / 471 MB, free: 15.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001897/0.5589, allocations: 0.5435 MB / 471.5 MB, free: 15.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.5589, allocations: 8.875 kB / 471.5 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.5589, allocations: 7.953 kB / 471.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.5601, allocations: 238.3 kB / 471.8 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000433/0.5606, allocations: 55.89 kB / 471.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006027/0.5666, allocations: 2.701 MB / 474.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005038/0.5672, allocations: 23.98 kB / 474.5 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.006e-05/0.5673, allocations: 31.94 kB / 474.6 MB, free: 12.19 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.0002739/0.5675, allocations: 157.8 kB / 474.7 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.675e-05/0.5676, allocations: 31.64 kB / 474.7 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001304/0.5678, allocations: 43 kB / 474.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.5678, allocations: 4 kB / 474.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.5678, allocations: 0 / 474.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.5678, allocations: 3.984 kB / 474.8 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002994/0.5708, allocations: 1.077 MB / 475.9 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.5709, allocations: 0 / 475.9 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004296/0.5713, allocations: 43.97 kB / 475.9 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.5724, allocations: 228.8 kB / 476.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.059e-05/0.5725, allocations: 11.98 kB / 476.2 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005757/0.5782, allocations: 2.655 MB / 478.8 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.5783, allocations: 4.031 kB / 478.8 MB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002594/0.5809, allocations: 0.7941 MB / 479.6 MB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002505/0.5812, allocations: 140.8 kB / 479.7 MB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.823e-05/0.5813, allocations: 15.98 kB / 479.8 MB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004708/0.5818, allocations: 23.98 kB / 479.8 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000266/0.582, allocations: 75.8 kB / 479.9 MB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.359e-05/0.5821, allocations: 24.05 kB / 479.9 MB, free: 6.633 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003198/0.5825, allocations: 152.3 kB / 480 MB, free: 6.484 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5825, allocations: 0 / 480 MB, free: 6.484 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009174/0.5834, allocations: 151.9 kB / 480.2 MB, free: 6.336 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.0003197/0.5837, allocations: 135.2 kB / 480.3 MB, free: 6.191 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.5858, allocations: 0.6133 MB / 480.9 MB, free: 5.562 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.5858, allocations: 0 / 480.9 MB, free: 5.562 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.5869, allocations: 425.5 kB / 481.3 MB, free: 5.133 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.5874, allocations: 38.27 kB / 481.4 MB, free: 5.098 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002051/0.5895, allocations: 0.8444 MB / 482.2 MB, free: 4.223 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.5899, allocations: 0.7917 MB / 483 MB, free: 3.406 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002272/0.5902, allocations: 35.42 kB / 483 MB, free: 3.375 MB / 362.7 MB Notification: Performance of SimCode: time 8.41e-07/0.5902, allocations: 0 / 483 MB, free: 3.375 MB / 362.7 MB Notification: Performance of Templates: time 0.01155/0.6017, allocations: 5.032 MB / 488.1 MB, free: 14.34 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches