Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 199 kB / 18.07 MB, free: 3.758 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 226.5 MB / 245.4 MB, free: 6.41 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008298/0.0008299, allocations: 100.7 kB / 297.4 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002316/0.0002317, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1987/0.199, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09423/0.2933, allocations: 83.8 MB / 492.5 MB, free: 7.789 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.2936, allocations: 69.75 kB / 492.5 MB, free: 7.723 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04811/0.3417, allocations: 18.12 MB / 0.4987 GB, free: 5.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3418, allocations: 0 / 0.4987 GB, free: 5.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.309e-05/0.3418, allocations: 8 kB / 0.4987 GB, free: 5.562 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.00128/0.3431, allocations: 0.655 MB / 0.4993 GB, free: 4.855 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.3431, allocations: 8.031 kB / 0.4993 GB, free: 4.848 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003834/0.3435, allocations: 64.53 kB / 0.4994 GB, free: 4.785 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004668/0.344, allocations: 323.3 kB / 0.4997 GB, free: 4.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.3441, allocations: 88.61 kB / 0.4998 GB, free: 4.328 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.718e-05/0.3442, allocations: 36.28 kB / 0.4998 GB, free: 4.293 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008298/0.3451, allocations: 429.5 kB / 0.5002 GB, free: 3.867 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.3451, allocations: 7.875 kB / 0.5002 GB, free: 3.859 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.512e-05/0.3451, allocations: 12 kB / 0.5002 GB, free: 3.848 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.3452, allocations: 8 kB / 0.5003 GB, free: 3.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009793/0.3461, allocations: 490.2 kB / 0.5007 GB, free: 3.359 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.3476, allocations: 0.9501 MB / 0.5016 GB, free: 2.352 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008034/0.3484, allocations: 400.4 kB / 0.502 GB, free: 1.953 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004556/0.3489, allocations: 234.1 kB / 0.5023 GB, free: 1.719 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.113e-05/0.3489, allocations: 4.438 kB / 0.5023 GB, free: 1.715 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.349, allocations: 39 kB / 0.5023 GB, free: 1.668 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 3.055e-06/0.349, allocations: 0 / 0.5023 GB, free: 1.668 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.1824/0.5314, allocations: 2.204 MB / 0.5044 GB, free: 96.87 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.5314, allocations: 83.98 kB / 0.5045 GB, free: 96.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003718/0.5318, allocations: 262.7 kB / 0.5048 GB, free: 96.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.027e-05/0.5319, allocations: 39.48 kB / 0.5048 GB, free: 96.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.11e-05/0.532, allocations: 138.8 kB / 0.5049 GB, free: 96.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.5321, allocations: 177 kB / 0.5051 GB, free: 96.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/0.5321, allocations: 8.156 kB / 0.5051 GB, free: 96.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.148e-05/0.5322, allocations: 341.9 kB / 0.5054 GB, free: 96.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004885/0.5327, allocations: 201.5 kB / 0.5056 GB, free: 96.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005249/0.5332, allocations: 250.8 kB / 0.5059 GB, free: 96.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008513/0.5341, allocations: 399.1 kB / 0.5063 GB, free: 96.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.5341, allocations: 0 / 0.5063 GB, free: 96.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001287/0.5354, allocations: 0.6328 MB / 0.5069 GB, free: 96.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.5354, allocations: 6.672 kB / 0.5069 GB, free: 96.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.5355, allocations: 2.562 kB / 0.5069 GB, free: 96.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000764/0.5362, allocations: 261.5 kB / 0.5071 GB, free: 96.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003185/0.5366, allocations: 74.05 kB / 0.5072 GB, free: 96.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003585/0.5402, allocations: 2.715 MB / 0.5099 GB, free: 94.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.5405, allocations: 40.33 kB / 0.5099 GB, free: 94.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.5406, allocations: 20.61 kB / 0.5099 GB, free: 94.38 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.0001992/0.5408, allocations: 153.6 kB / 0.5101 GB, free: 94.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.101e-05/0.5409, allocations: 34.94 kB / 0.5101 GB, free: 94.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.541, allocations: 54.27 kB / 0.5101 GB, free: 94.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.541, allocations: 10.2 kB / 0.5102 GB, free: 94.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.541, allocations: 0.5 kB / 0.5102 GB, free: 94.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.541, allocations: 3.172 kB / 0.5102 GB, free: 94.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00229/0.5433, allocations: 1.311 MB / 0.5114 GB, free: 93.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.5433, allocations: 3.656 kB / 0.5114 GB, free: 93.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003032/0.5436, allocations: 74.36 kB / 0.5115 GB, free: 93.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006009/0.5443, allocations: 257.3 kB / 0.5118 GB, free: 93.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-05/0.5443, allocations: 11.86 kB / 0.5118 GB, free: 93.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002794/0.5471, allocations: 2.632 MB / 0.5143 GB, free: 91.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5471, allocations: 0 / 0.5143 GB, free: 91.49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/0.5487, allocations: 0.9665 MB / 0.5153 GB, free: 91.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.5489, allocations: 170.6 kB / 0.5155 GB, free: 90.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.131e-05/0.5489, allocations: 11.94 kB / 0.5155 GB, free: 90.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002923/0.5492, allocations: 39.22 kB / 0.5155 GB, free: 90.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.5494, allocations: 83.58 kB / 0.5156 GB, free: 90.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-05/0.5495, allocations: 22.3 kB / 0.5156 GB, free: 90.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001966/0.5497, allocations: 190.2 kB / 0.5158 GB, free: 90.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.5497, allocations: 0 / 0.5158 GB, free: 90.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006692/0.5503, allocations: 164.8 kB / 0.5159 GB, free: 90.71 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.000852/0.5512, allocations: 405.5 kB / 0.5163 GB, free: 90.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.5524, allocations: 0.7006 MB / 0.517 GB, free: 90.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.5525, allocations: 4 kB / 0.517 GB, free: 90.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006526/0.5531, allocations: 474 kB / 0.5175 GB, free: 89.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.5535, allocations: 47.77 kB / 0.5175 GB, free: 89.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.5549, allocations: 0.9878 MB / 0.5185 GB, free: 89.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.5551, allocations: 0.7925 MB / 0.5192 GB, free: 88.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.5552, allocations: 49.59 kB / 0.5193 GB, free: 88.64 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5552, allocations: 0 / 0.5193 GB, free: 88.64 MB / 378.7 MB Notification: Performance of Templates: time 0.007194/0.5624, allocations: 6.678 MB / 0.5258 GB, free: 85.04 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches