Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006834/0.006841, allocations: 183.2 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.464/3.464, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001777/0.001777, allocations: 89.84 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006243/0.0006245, allocations: 12 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5617/0.5624, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004932/0.5674, allocations: 1.95 MB / 376.5 MB, free: 43.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003809/0.5713, allocations: 0.9653 MB / 377.4 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004559/0.5718, allocations: 3.562 kB / 377.4 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002348/0.5721, allocations: 39.3 kB / 377.5 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001179/0.5733, allocations: 144.5 kB / 377.6 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009666/0.5743, allocations: 149.5 kB / 377.8 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001068/0.5754, allocations: 295.8 kB / 378.1 MB, free: 42.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003521/0.5758, allocations: 72.34 kB / 378.1 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000705/0.5765, allocations: 181.9 kB / 378.3 MB, free: 42.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006271/0.5772, allocations: 209 kB / 378.5 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.5773, allocations: 20.09 kB / 378.5 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005113/0.5779, allocations: 84.47 kB / 378.6 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.5781, allocations: 90.7 kB / 378.7 MB, free: 42.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.5783, allocations: 85.27 kB / 378.8 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009025/0.5792, allocations: 360.3 kB / 379.1 MB, free: 42.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.5793, allocations: 1.344 kB / 379.1 MB, free: 42.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.777e-06/0.5793, allocations: 0 / 379.1 MB, free: 42.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.5793, allocations: 0 / 379.1 MB, free: 42.04 MB / 298.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.002715/0.5821, allocations: 0.6119 MB / 379.7 MB, free: 41.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.703e-05/0.5822, allocations: 8.844 kB / 379.8 MB, free: 41.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008192/0.583, allocations: 56.34 kB / 379.8 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.5841, allocations: 310.4 kB / 380.1 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002606/0.5844, allocations: 88.7 kB / 380.2 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001968/0.5846, allocations: 36.69 kB / 380.2 MB, free: 41.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002209/0.5869, allocations: 418.5 kB / 380.6 MB, free: 40.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.769e-05/0.587, allocations: 5.203 kB / 380.7 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.055e-05/0.5871, allocations: 10.53 kB / 380.7 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.5871, allocations: 7.688 kB / 380.7 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003127/0.5903, allocations: 487.8 kB / 381.1 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004713/0.5951, allocations: 0.9891 MB / 382.1 MB, free: 39.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.5979, allocations: 407.1 kB / 382.5 MB, free: 39.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000126/0.5981, allocations: 9.594 kB / 382.5 MB, free: 39.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.337e-05/0.5981, allocations: 45.62 kB / 382.6 MB, free: 39.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 8.426e-06/0.5982, allocations: 3.938 kB / 382.6 MB, free: 39.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.01813/0.6163, allocations: 2.207 MB / 384.8 MB, free: 38.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.6165, allocations: 83.48 kB / 384.9 MB, free: 38.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.6177, allocations: 263.5 kB / 385.1 MB, free: 37.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001919/0.618, allocations: 33.7 kB / 385.2 MB, free: 37.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.6181, allocations: 195.5 kB / 385.4 MB, free: 37.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003455/0.6185, allocations: 177.4 kB / 385.5 MB, free: 37.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.759e-05/0.6186, allocations: 12 kB / 385.5 MB, free: 37.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.6188, allocations: 330.8 kB / 385.9 MB, free: 37.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004877/0.6237, allocations: 209 kB / 386.1 MB, free: 36.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.6251, allocations: 248.6 kB / 386.3 MB, free: 36.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.6264, allocations: 194.1 kB / 386.5 MB, free: 36.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.343e-06/0.6265, allocations: 0 / 386.5 MB, free: 36.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.003184/0.6297, allocations: 0.6136 MB / 387.1 MB, free: 35.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.323e-05/0.6298, allocations: 11.95 kB / 387.1 MB, free: 35.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.6299, allocations: 0 / 387.1 MB, free: 35.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00176/0.6316, allocations: 258 kB / 387.4 MB, free: 35.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009026/0.6326, allocations: 67.95 kB / 387.4 MB, free: 35.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009152/0.6418, allocations: 2.744 MB / 390.2 MB, free: 32.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009222/0.6428, allocations: 39.92 kB / 390.2 MB, free: 32.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.643, allocations: 16.06 kB / 390.2 MB, free: 32.63 MB / 298.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.0004154/0.6434, allocations: 169.7 kB / 390.4 MB, free: 32.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001845/0.6436, allocations: 31.62 kB / 390.4 MB, free: 32.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001916/0.6438, allocations: 47.3 kB / 390.5 MB, free: 32.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.6438, allocations: 4 kB / 390.5 MB, free: 32.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.6439, allocations: 0 / 390.5 MB, free: 32.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.6439, allocations: 0 / 390.5 MB, free: 32.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005074/0.649, allocations: 1.288 MB / 391.8 MB, free: 31.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/0.6491, allocations: 0 / 391.8 MB, free: 31.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008971/0.65, allocations: 75.84 kB / 391.9 MB, free: 30.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.6516, allocations: 246.2 kB / 392.1 MB, free: 30.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000177/0.6519, allocations: 16 kB / 392.1 MB, free: 30.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007862/0.6597, allocations: 2.666 MB / 394.8 MB, free: 27.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.6598, allocations: 3.938 kB / 394.8 MB, free: 27.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004371/0.6642, allocations: 0.9745 MB / 395.8 MB, free: 26.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005737/0.6649, allocations: 156.7 kB / 395.9 MB, free: 26.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.6651, allocations: 12.06 kB / 395.9 MB, free: 26.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008372/0.6659, allocations: 39.97 kB / 396 MB, free: 26.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004196/0.6664, allocations: 80.25 kB / 396 MB, free: 26.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.308e-05/0.6665, allocations: 15.98 kB / 396.1 MB, free: 26.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004964/0.667, allocations: 196.6 kB / 396.2 MB, free: 26.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.667, allocations: 0 / 396.2 MB, free: 26.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001737/0.6688, allocations: 152 kB / 396.4 MB, free: 26.23 MB / 298.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.0004975/0.6693, allocations: 135.2 kB / 396.5 MB, free: 26.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003502/0.6729, allocations: 0.7112 MB / 397.2 MB, free: 25.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/0.6729, allocations: 3.938 kB / 397.2 MB, free: 25.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002121/0.6751, allocations: 483.7 kB / 397.7 MB, free: 24.88 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00082/0.676, allocations: 28.42 kB / 397.7 MB, free: 24.85 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/0.6793, allocations: 0.9769 MB / 398.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004633/0.6798, allocations: 0.8009 MB / 399.5 MB, free: 23.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003633/0.6802, allocations: 39.41 kB / 399.6 MB, free: 22.98 MB / 298.7 MB Notification: Performance of SimCode: time 1.273e-06/0.6802, allocations: 3.938 kB / 399.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of Templates: time 0.01948/0.6997, allocations: 5.762 MB / 405.3 MB, free: 17.21 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches