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.001488/0.001488, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.013/2.013, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001123/0.001123, allocations: 86.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/3.009e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09408/0.09413, allocations: 47.58 MB / 369.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4213/0.5155, allocations: 80.08 MB / 449.2 MB, free: 13.12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/0.5158, allocations: 72.72 kB / 449.2 MB, free: 13.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04331/0.5591, allocations: 9.396 MB / 458.6 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5591, allocations: 0 / 458.6 MB, free: 5.129 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.39e-05/0.5592, allocations: 8 kB / 458.6 MB, free: 5.121 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.001358/0.5606, allocations: 0.5569 MB / 459.2 MB, free: 4.539 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.5606, allocations: 8.031 kB / 459.2 MB, free: 4.531 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004679/0.5611, allocations: 51.59 kB / 459.3 MB, free: 4.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005134/0.5616, allocations: 266.1 kB / 459.5 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/0.5618, allocations: 89.78 kB / 459.6 MB, free: 4.113 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.424e-05/0.5619, allocations: 41.14 kB / 459.6 MB, free: 4.082 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000862/0.5628, allocations: 344.9 kB / 460 MB, free: 3.824 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.5628, allocations: 3.938 kB / 460 MB, free: 3.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-05/0.5629, allocations: 14.73 kB / 460 MB, free: 3.812 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.5629, allocations: 8 kB / 460 MB, free: 3.805 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000997/0.5639, allocations: 378.3 kB / 460.4 MB, free: 3.535 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002741/0.5667, allocations: 1.166 MB / 461.5 MB, free: 2.523 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008274/0.5675, allocations: 313.5 kB / 461.8 MB, free: 2.238 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004381/0.568, allocations: 160.8 kB / 462 MB, free: 2.078 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.681e-05/0.5681, allocations: 12.14 kB / 462 MB, free: 2.066 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.5681, allocations: 34.56 kB / 462.1 MB, free: 2.023 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.517e-06/0.5681, allocations: 4 kB / 462.1 MB, free: 2.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.003799/0.5719, allocations: 1.319 MB / 463.4 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.405e-05/0.5721, allocations: 88.86 kB / 463.5 MB, free: 0.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003289/0.5724, allocations: 189.6 kB / 463.6 MB, free: 316 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.895e-05/0.5725, allocations: 41.69 kB / 463.7 MB, free: 268 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.5726, allocations: 195 kB / 463.9 MB, free: 68 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002055/0.5728, allocations: 146 kB / 464 MB, free: 15.92 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.5729, allocations: 8 kB / 464 MB, free: 15.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.5731, allocations: 330.8 kB / 464.4 MB, free: 15.58 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004344/0.5735, allocations: 144.9 kB / 464.5 MB, free: 15.44 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005045/0.574, allocations: 205.9 kB / 464.7 MB, free: 15.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004221/0.5745, allocations: 146 kB / 464.8 MB, free: 15.08 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.5745, allocations: 0 / 464.8 MB, free: 15.08 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001457/0.576, allocations: 0.5083 MB / 465.3 MB, free: 14.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.576, allocations: 7.953 kB / 465.4 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.576, allocations: 0 / 465.4 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/0.5772, allocations: 234.2 kB / 465.6 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004549/0.5777, allocations: 55.89 kB / 465.6 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005819/0.5835, allocations: 2.637 MB / 468.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005152/0.5841, allocations: 27.98 kB / 468.3 MB, free: 11.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.848e-05/0.5842, allocations: 19.98 kB / 468.3 MB, free: 11.45 MB / 346.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 () * 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.0001992/0.5844, allocations: 132.8 kB / 468.4 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.878e-05/0.5845, allocations: 27.78 kB / 468.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.5846, allocations: 42.77 kB / 468.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.5847, allocations: 8 kB / 468.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.5847, allocations: 0 / 468.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.5847, allocations: 0 / 468.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002655/0.5874, allocations: 1.023 MB / 469.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.5874, allocations: 4 kB / 469.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004649/0.5879, allocations: 51.89 kB / 469.6 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/0.589, allocations: 232.8 kB / 469.8 MB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.715e-05/0.5891, allocations: 15.98 kB / 469.8 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005532/0.5946, allocations: 2.574 MB / 472.4 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5947, allocations: 0 / 472.4 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.5966, allocations: 0.7435 MB / 473.2 MB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002671/0.5969, allocations: 144.8 kB / 473.3 MB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.637e-05/0.597, allocations: 11.98 kB / 473.3 MB, free: 6.211 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004919/0.5975, allocations: 31.98 kB / 473.3 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002572/0.5978, allocations: 67.86 kB / 473.4 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.286e-05/0.5978, allocations: 19.98 kB / 473.4 MB, free: 6.094 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002391/0.5981, allocations: 156.4 kB / 473.6 MB, free: 5.941 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5981, allocations: 0 / 473.6 MB, free: 5.941 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008571/0.599, allocations: 144 kB / 473.7 MB, free: 5.801 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.0003469/0.5993, allocations: 147.8 kB / 473.9 MB, free: 5.648 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.6009, allocations: 0.5672 MB / 474.4 MB, free: 5.062 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.6009, allocations: 4 kB / 474.4 MB, free: 5.059 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009428/0.6019, allocations: 393.1 kB / 474.8 MB, free: 4.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.6023, allocations: 28.09 kB / 474.9 MB, free: 4.633 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.6039, allocations: 0.5495 MB / 475.4 MB, free: 4.055 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.6044, allocations: 0.7917 MB / 476.2 MB, free: 3.234 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.6046, allocations: 35.41 kB / 476.2 MB, free: 3.199 MB / 346.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6046, allocations: 0 / 476.2 MB, free: 3.199 MB / 346.7 MB Notification: Performance of Templates: time 0.01209/0.6167, allocations: 5.023 MB / 481.3 MB, free: 14.17 MB / 362.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