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.003049/0.003054, allocations: 183.9 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.429/3.429, 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.00176/0.001759, allocations: 99.33 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007007/0.0007007, allocations: 15.98 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6352/0.6359, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.005605/0.6416, allocations: 1.878 MB / 376.4 MB, free: 43.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003188/0.6449, allocations: 0.9256 MB / 377.3 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004158/0.6454, allocations: 4.094 kB / 377.3 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002146/0.6457, allocations: 31.14 kB / 377.4 MB, free: 43.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.6467, allocations: 134.2 kB / 377.5 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008026/0.6476, allocations: 142.5 kB / 377.6 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008866/0.6485, allocations: 256.2 kB / 377.9 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002801/0.6488, allocations: 49 kB / 377.9 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005381/0.6493, allocations: 162.7 kB / 378.1 MB, free: 42.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005485/0.6499, allocations: 188.3 kB / 378.3 MB, free: 42.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.6501, allocations: 18.12 kB / 378.3 MB, free: 42.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004544/0.6505, allocations: 89.11 kB / 378.4 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.6508, allocations: 77.69 kB / 378.5 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001672/0.6509, allocations: 78.52 kB / 378.5 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007462/0.6517, allocations: 312.8 kB / 378.8 MB, free: 42.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.6517, allocations: 0 / 378.8 MB, free: 42.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.995e-06/0.6518, allocations: 0 / 378.8 MB, free: 42.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.6518, allocations: 1.031 kB / 378.8 MB, free: 42.26 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002241/0.654, allocations: 0.5843 MB / 379.4 MB, free: 41.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.811e-05/0.6541, allocations: 12.48 kB / 379.4 MB, free: 41.74 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007382/0.6549, allocations: 47.52 kB / 379.5 MB, free: 41.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008963/0.6558, allocations: 298.4 kB / 379.8 MB, free: 41.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002274/0.6561, allocations: 87.17 kB / 379.9 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.6562, allocations: 30.06 kB / 379.9 MB, free: 41.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.658, allocations: 372.8 kB / 380.2 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.099e-05/0.6581, allocations: 0 / 380.2 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-05/0.6582, allocations: 15.61 kB / 380.3 MB, free: 41.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.6582, allocations: 10.69 kB / 380.3 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002339/0.6606, allocations: 424.6 kB / 380.7 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005159/0.6658, allocations: 1.259 MB / 381.9 MB, free: 39.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001744/0.6676, allocations: 358.8 kB / 382.3 MB, free: 39.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.138e-05/0.6678, allocations: 12.39 kB / 382.3 MB, free: 39.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/0.6678, allocations: 37.44 kB / 382.3 MB, free: 39.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 4.87e-06/0.6679, allocations: 0 / 382.3 MB, free: 39.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.0122/0.6801, allocations: 1.943 MB / 384.3 MB, free: 38.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.6802, allocations: 86.48 kB / 384.4 MB, free: 38.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006818/0.6809, allocations: 241.6 kB / 384.6 MB, free: 38.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001404/0.6811, allocations: 36.08 kB / 384.6 MB, free: 38.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.6813, allocations: 194.4 kB / 384.8 MB, free: 37.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002521/0.6815, allocations: 151.8 kB / 385 MB, free: 37.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.866e-05/0.6816, allocations: 13.31 kB / 385 MB, free: 37.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.6817, allocations: 327.8 kB / 385.3 MB, free: 37.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009967/0.6828, allocations: 169.9 kB / 385.5 MB, free: 37.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/0.6838, allocations: 234.9 kB / 385.7 MB, free: 37.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008595/0.6847, allocations: 159.3 kB / 385.9 MB, free: 37.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.6848, allocations: 0 / 385.9 MB, free: 37.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.002605/0.6874, allocations: 0.56 MB / 386.4 MB, free: 36.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.6875, allocations: 4 kB / 386.4 MB, free: 36.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.6875, allocations: 0 / 386.4 MB, free: 36.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001658/0.6892, allocations: 254.3 kB / 386.7 MB, free: 36.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006567/0.6899, allocations: 59.89 kB / 386.7 MB, free: 36.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008323/0.6983, allocations: 2.697 MB / 389.4 MB, free: 33.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007452/0.6991, allocations: 39.94 kB / 389.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.831e-05/0.6992, allocations: 20.06 kB / 389.5 MB, free: 33.36 MB / 298.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 () * Number of clocked 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.0003638/0.6996, allocations: 157.2 kB / 389.6 MB, free: 33.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000155/0.6998, allocations: 23.72 kB / 389.7 MB, free: 33.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.6999, allocations: 47 kB / 389.7 MB, free: 33.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.7, allocations: 4 kB / 389.7 MB, free: 33.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.7, allocations: 3.953 kB / 389.7 MB, free: 33.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.7, allocations: 3.984 kB / 389.7 MB, free: 33.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004387/0.7044, allocations: 1.093 MB / 390.8 MB, free: 31.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.7045, allocations: 0 / 390.8 MB, free: 31.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006616/0.7052, allocations: 55.86 kB / 390.9 MB, free: 31.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.7068, allocations: 240.8 kB / 391.1 MB, free: 31.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001363/0.707, allocations: 11.98 kB / 391.1 MB, free: 31.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00792/0.7149, allocations: 2.647 MB / 393.8 MB, free: 28.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.715, allocations: 0 / 393.8 MB, free: 28.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003569/0.7186, allocations: 0.8372 MB / 394.6 MB, free: 28.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004023/0.719, allocations: 140.8 kB / 394.7 MB, free: 27.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.7192, allocations: 12 kB / 394.8 MB, free: 27.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006684/0.7199, allocations: 36.03 kB / 394.8 MB, free: 27.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003781/0.7203, allocations: 63.88 kB / 394.9 MB, free: 27.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.372e-05/0.7204, allocations: 19.92 kB / 394.9 MB, free: 27.74 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004288/0.7208, allocations: 176.3 kB / 395 MB, free: 27.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.7208, allocations: 0 / 395 MB, free: 27.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001522/0.7224, allocations: 140 kB / 395.2 MB, free: 27.43 MB / 298.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) * Number of clocked states: 0 () * 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.00045/0.7229, allocations: 139.2 kB / 395.3 MB, free: 27.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002921/0.7258, allocations: 0.6251 MB / 395.9 MB, free: 26.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/0.7259, allocations: 4.25 kB / 395.9 MB, free: 26.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001698/0.7276, allocations: 425.3 kB / 396.4 MB, free: 26.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007241/0.7284, allocations: 31.94 kB / 396.4 MB, free: 26.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0029/0.7313, allocations: 0.8676 MB / 397.3 MB, free: 25.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.7318, allocations: 0.7841 MB / 398 MB, free: 24.47 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.7322, allocations: 35.41 kB / 398.1 MB, free: 24.44 MB / 298.7 MB Notification: Performance of SimCode: time 2.394e-06/0.7322, allocations: 4 kB / 398.1 MB, free: 24.43 MB / 298.7 MB Notification: Performance of Templates: time 0.01697/0.7492, allocations: 5.034 MB / 403.1 MB, free: 19.4 MB / 298.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