Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001045/0.001045, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 226.5 MB / 245.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007512/0.0007512, allocations: 95.97 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002629/0.0002629, allocations: 11.98 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2166, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09195/0.3086, allocations: 85.5 MB / 494.2 MB, free: 6.066 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.3089, allocations: 71.97 kB / 494.2 MB, free: 5.996 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05368/0.3625, allocations: 20.65 MB / 0.5028 GB, free: 1.293 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.3626, allocations: 0 / 0.5028 GB, free: 1.293 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.496e-05/0.3626, allocations: 8 kB / 0.5028 GB, free: 1.285 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001358/0.364, allocations: 0.7721 MB / 0.5036 GB, free: 472 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.364, allocations: 8.031 kB / 0.5036 GB, free: 464 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003762/0.3644, allocations: 80.25 kB / 0.5037 GB, free: 384 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1615/0.5259, allocations: 357.8 kB / 0.504 GB, free: 95.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/0.5262, allocations: 100.2 kB / 0.5041 GB, free: 95.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/0.5263, allocations: 43.98 kB / 0.5041 GB, free: 95.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.5277, allocations: 0.5658 MB / 0.5047 GB, free: 95.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.5278, allocations: 4.391 kB / 0.5047 GB, free: 95.22 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.969e-05/0.5278, allocations: 16.66 kB / 0.5047 GB, free: 95.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.5279, allocations: 15.12 kB / 0.5047 GB, free: 95.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.5293, allocations: 0.6209 MB / 0.5053 GB, free: 95.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002198/0.5315, allocations: 1.277 MB / 0.5066 GB, free: 94.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.5326, allocations: 0.5298 MB / 0.5071 GB, free: 94.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006071/0.5332, allocations: 313 kB / 0.5074 GB, free: 94.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.259e-05/0.5332, allocations: 7.812 kB / 0.5074 GB, free: 94.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.5333, allocations: 43.25 kB / 0.5074 GB, free: 94.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=62): time 2.093e-06/0.5333, allocations: 1.875 kB / 0.5075 GB, free: 94.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=70): time 0.006589/0.5399, allocations: 2.832 MB / 0.5102 GB, free: 93.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.5399, allocations: 90.36 kB / 0.5103 GB, free: 93.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003561/0.5403, allocations: 341.7 kB / 0.5106 GB, free: 93.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.102e-05/0.5404, allocations: 41.58 kB / 0.5107 GB, free: 93.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.827e-05/0.5404, allocations: 168.2 kB / 0.5108 GB, free: 93.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.5406, allocations: 233 kB / 0.5111 GB, free: 93.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.5406, allocations: 15.56 kB / 0.5111 GB, free: 93.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.5407, allocations: 352.7 kB / 0.5114 GB, free: 92.78 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005214/0.5413, allocations: 266.8 kB / 0.5117 GB, free: 92.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005435/0.5418, allocations: 342.1 kB / 0.512 GB, free: 92.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009116/0.5427, allocations: 0.4926 MB / 0.5125 GB, free: 92.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.5427, allocations: 0 / 0.5125 GB, free: 92.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001486/0.5442, allocations: 0.8395 MB / 0.5133 GB, free: 92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.5443, allocations: 3.875 kB / 0.5133 GB, free: 92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.5443, allocations: 0 / 0.5133 GB, free: 92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008987/0.5452, allocations: 395.1 kB / 0.5137 GB, free: 91.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003518/0.5456, allocations: 91.39 kB / 0.5138 GB, free: 91.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.5466, allocations: 1.004 MB / 0.5147 GB, free: 91.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004534/0.547, allocations: 85.73 kB / 0.5148 GB, free: 91.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.508e-05/0.5471, allocations: 23.06 kB / 0.5148 GB, free: 91.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 33} Notification: Performance of prepare postOptimizeDAE: time 0.0002186/0.5473, allocations: 179.1 kB / 0.515 GB, free: 90.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.745e-05/0.5474, allocations: 46.59 kB / 0.5151 GB, free: 90.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/0.5476, allocations: 69.81 kB / 0.5151 GB, free: 90.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.5476, allocations: 7.562 kB / 0.5151 GB, free: 90.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.5476, allocations: 3.656 kB / 0.5151 GB, free: 90.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.5476, allocations: 0 / 0.5151 GB, free: 90.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/0.5504, allocations: 1.719 MB / 0.5168 GB, free: 90.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.5504, allocations: 0 / 0.5168 GB, free: 90.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003614/0.5508, allocations: 94.39 kB / 0.5169 GB, free: 90.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008753/0.5517, allocations: 362.8 kB / 0.5172 GB, free: 89.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.153e-05/0.5517, allocations: 17.92 kB / 0.5173 GB, free: 89.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009507/0.5527, allocations: 0.9704 MB / 0.5182 GB, free: 89.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5527, allocations: 3.938 kB / 0.5182 GB, free: 89.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.5548, allocations: 1.212 MB / 0.5194 GB, free: 88.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002435/0.555, allocations: 202.3 kB / 0.5196 GB, free: 88.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.772e-05/0.5551, allocations: 22.78 kB / 0.5196 GB, free: 88.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004322/0.5556, allocations: 77.09 kB / 0.5197 GB, free: 88.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001872/0.5558, allocations: 115 kB / 0.5198 GB, free: 88.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.017e-05/0.5558, allocations: 20.91 kB / 0.5198 GB, free: 88.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002705/0.5561, allocations: 244.8 kB / 0.52 GB, free: 88.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5561, allocations: 0 / 0.52 GB, free: 88.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005204/0.5567, allocations: 153.8 kB / 0.5202 GB, free: 88.29 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007963/0.5575, allocations: 414.1 kB / 0.5206 GB, free: 88.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.5588, allocations: 0.6728 MB / 0.5212 GB, free: 87.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5588, allocations: 0 / 0.5212 GB, free: 87.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006974/0.5595, allocations: 380 kB / 0.5216 GB, free: 87.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005035/0.56, allocations: 66.47 kB / 0.5217 GB, free: 87.65 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.5623, allocations: 1.424 MB / 0.5231 GB, free: 86.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002041/0.5625, allocations: 0.8298 MB / 0.5239 GB, free: 85.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.5627, allocations: 53.61 kB / 0.5239 GB, free: 85.54 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5627, allocations: 0 / 0.5239 GB, free: 85.54 MB / 378.7 MB Notification: Performance of Templates: time 0.008485/0.5712, allocations: 8.015 MB / 0.5317 GB, free: 78.8 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time