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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 197.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 226.5 MB / 245.4 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007811/0.0007813, allocations: 98.95 kB / 297.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002228/0.0002228, allocations: 8 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2144, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.103/0.3175, allocations: 83.79 MB / 493.2 MB, free: 7.719 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001951/0.3177, allocations: 77.12 kB / 493.2 MB, free: 7.645 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04838/0.3661, allocations: 18.12 MB / 0.4994 GB, free: 5.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3661, allocations: 0 / 0.4994 GB, free: 5.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.152e-05/0.3662, allocations: 12 kB / 0.4994 GB, free: 5.469 MB / 378.7 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.001261/0.3674, allocations: 0.6433 MB / 0.5 GB, free: 4.773 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.3675, allocations: 8.031 kB / 0.5 GB, free: 4.766 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004152/0.3679, allocations: 68.53 kB / 0.5001 GB, free: 4.699 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004902/0.3684, allocations: 319.3 kB / 0.5004 GB, free: 4.348 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.3686, allocations: 92.59 kB / 0.5005 GB, free: 4.242 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.823e-05/0.3686, allocations: 32.28 kB / 0.5005 GB, free: 4.211 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008082/0.3695, allocations: 429.5 kB / 0.5009 GB, free: 3.785 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.3695, allocations: 3.938 kB / 0.5009 GB, free: 3.781 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.506e-05/0.3695, allocations: 16 kB / 0.5009 GB, free: 3.766 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-06/0.3696, allocations: 8 kB / 0.5009 GB, free: 3.758 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009887/0.3706, allocations: 490.2 kB / 0.5014 GB, free: 3.277 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.3721, allocations: 0.9539 MB / 0.5023 GB, free: 2.266 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008432/0.373, allocations: 393.9 kB / 0.5027 GB, free: 1.875 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004896/0.3735, allocations: 244.7 kB / 0.503 GB, free: 1.633 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.3735, allocations: 8.422 kB / 0.503 GB, free: 1.625 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.3736, allocations: 39 kB / 0.503 GB, free: 1.578 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.314e-06/0.3736, allocations: 0 / 0.503 GB, free: 1.578 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.1841/0.5576, allocations: 2.191 MB / 0.5051 GB, free: 96.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.5577, allocations: 87.92 kB / 0.5052 GB, free: 96.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004097/0.5581, allocations: 262.9 kB / 0.5055 GB, free: 96.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.968e-05/0.5582, allocations: 35.16 kB / 0.5055 GB, free: 96.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.461e-05/0.5583, allocations: 142 kB / 0.5056 GB, free: 96.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.5584, allocations: 183 kB / 0.5058 GB, free: 96.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.807e-05/0.5585, allocations: 11.78 kB / 0.5058 GB, free: 96.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.665e-05/0.5585, allocations: 338.8 kB / 0.5061 GB, free: 95.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005027/0.5591, allocations: 201.1 kB / 0.5063 GB, free: 95.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005336/0.5596, allocations: 254.1 kB / 0.5066 GB, free: 95.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008803/0.5605, allocations: 396.5 kB / 0.507 GB, free: 95.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.828e-05/0.5605, allocations: 0.8438 kB / 0.507 GB, free: 95.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001359/0.5619, allocations: 0.6312 MB / 0.5076 GB, free: 95.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.5619, allocations: 4.531 kB / 0.5076 GB, free: 95.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.5619, allocations: 1.891 kB / 0.5076 GB, free: 95.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008101/0.5628, allocations: 268.6 kB / 0.5078 GB, free: 95.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000344/0.5631, allocations: 70.11 kB / 0.5079 GB, free: 95.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003835/0.567, allocations: 2.717 MB / 0.5106 GB, free: 94.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/0.5674, allocations: 37.34 kB / 0.5106 GB, free: 94.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.848e-05/0.5675, allocations: 19.19 kB / 0.5106 GB, free: 94.18 MB / 378.7 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.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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002227/0.5677, allocations: 159.7 kB / 0.5108 GB, free: 94.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.7e-05/0.5678, allocations: 35.08 kB / 0.5108 GB, free: 94.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.466e-05/0.5679, allocations: 56.22 kB / 0.5109 GB, free: 93.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.5679, allocations: 5.5 kB / 0.5109 GB, free: 93.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.5679, allocations: 0.5625 kB / 0.5109 GB, free: 93.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5679, allocations: 3.141 kB / 0.5109 GB, free: 93.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.57, allocations: 1.312 MB / 0.5121 GB, free: 93.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.5701, allocations: 2.688 kB / 0.5121 GB, free: 93.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003005/0.5704, allocations: 75.2 kB / 0.5122 GB, free: 93.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005873/0.571, allocations: 260.7 kB / 0.5125 GB, free: 93.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.557e-05/0.571, allocations: 15.56 kB / 0.5125 GB, free: 93.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002722/0.5737, allocations: 2.615 MB / 0.515 GB, free: 91.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5738, allocations: 3.688 kB / 0.515 GB, free: 91.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.5753, allocations: 0.9744 MB / 0.516 GB, free: 90.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/0.5755, allocations: 169.1 kB / 0.5162 GB, free: 90.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.918e-05/0.5755, allocations: 15.55 kB / 0.5162 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002963/0.5758, allocations: 30.14 kB / 0.5162 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.576, allocations: 82.92 kB / 0.5163 GB, free: 90.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.301e-05/0.5761, allocations: 22.5 kB / 0.5163 GB, free: 90.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002054/0.5763, allocations: 194.3 kB / 0.5165 GB, free: 90.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5763, allocations: 0 / 0.5165 GB, free: 90.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006685/0.577, allocations: 167.3 kB / 0.5166 GB, free: 90.52 MB / 378.7 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 (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.0007671/0.5777, allocations: 395.8 kB / 0.517 GB, free: 90.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.579, allocations: 0.7029 MB / 0.5177 GB, free: 90.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.579, allocations: 0 / 0.5177 GB, free: 90.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006718/0.5797, allocations: 481.8 kB / 0.5182 GB, free: 89.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004413/0.5801, allocations: 43.22 kB / 0.5182 GB, free: 89.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.5815, allocations: 0.9569 MB / 0.5191 GB, free: 89.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.5818, allocations: 0.802 MB / 0.5199 GB, free: 88.49 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002739/0.5821, allocations: 81.34 kB / 0.52 GB, free: 88.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.5822, allocations: 44.09 kB / 0.52 GB, free: 88.46 MB / 378.7 MB Notification: Performance of SimCode: time 5.52e-07/0.5822, allocations: 0 / 0.52 GB, free: 88.46 MB / 378.7 MB Notification: Performance of Templates: time 0.0111/0.5933, allocations: 7.546 MB / 0.5274 GB, free: 84.06 MB / 378.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches