Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001147, allocations: 104.2 kB / 16.62 MB, free: 6.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 193.8 kB / 17.55 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001025, allocations: 44.61 kB / 300.1 MB, free: 6.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08603/0.08707, allocations: 49.45 MB / 349.6 MB, free: 4.777 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003415/0.09051, allocations: 2.376 MB / 352 MB, free: 2.383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.09209, allocations: 0.9171 MB / 352.9 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001803/0.09229, allocations: 7.938 kB / 352.9 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002015/0.09253, allocations: 35.7 kB / 352.9 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004662/0.09301, allocations: 121.5 kB / 353 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.09335, allocations: 143.8 kB / 353.2 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004147/0.09377, allocations: 418.8 kB / 353.6 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.09393, allocations: 64.72 kB / 353.6 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.09417, allocations: 183.4 kB / 353.8 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.09445, allocations: 219.3 kB / 354 MB, free: 292 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.217e-05/0.09452, allocations: 32 kB / 354.1 MB, free: 260 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002056/0.09474, allocations: 119.9 kB / 354.2 MB, free: 140 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.09486, allocations: 95.72 kB / 354.3 MB, free: 44 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001665/0.09504, allocations: 167.2 kB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004504/0.09549, allocations: 446.8 kB / 354.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.09551, allocations: 7.984 kB / 354.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.09552, allocations: 0 / 354.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.09553, allocations: 0 / 354.9 MB, free: 15.43 MB / 302.1 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.001126/0.09666, allocations: 0.6238 MB / 355.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.09671, allocations: 15.97 kB / 355.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003107/0.09703, allocations: 44.55 kB / 355.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003864/0.09742, allocations: 303.7 kB / 355.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.09756, allocations: 88.52 kB / 356 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.163e-05/0.09763, allocations: 28.38 kB / 356 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007033/0.09834, allocations: 385.4 kB / 356.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.09837, allocations: 0 / 356.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.323e-05/0.09842, allocations: 12 kB / 356.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.09843, allocations: 8 kB / 356.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008688/0.09931, allocations: 417.9 kB / 356.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.1013, allocations: 1.249 MB / 358 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006545/0.102, allocations: 350.5 kB / 358.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/0.1023, allocations: 196.7 kB / 358.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.002e-05/0.1024, allocations: 8.141 kB / 358.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.1024, allocations: 38.56 kB / 358.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.583e-06/0.1024, allocations: 0 / 358.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004696/0.1071, allocations: 1.922 MB / 360.5 MB, free: 9.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.1072, allocations: 84.86 kB / 360.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.1075, allocations: 246.1 kB / 360.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.742e-05/0.1075, allocations: 29.7 kB / 360.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.355e-05/0.1076, allocations: 136.6 kB / 361 MB, free: 8.938 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.1077, allocations: 153.9 kB / 361.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.1079, allocations: 82.03 kB / 361.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.108, allocations: 338.8 kB / 361.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003855/0.1084, allocations: 172.8 kB / 361.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004071/0.1088, allocations: 225.9 kB / 362 MB, free: 7.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006745/0.1095, allocations: 347.2 kB / 362.3 MB, free: 7.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.1095, allocations: 4 kB / 362.3 MB, free: 7.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001094/0.1106, allocations: 0.5551 MB / 362.9 MB, free: 7.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.1106, allocations: 4 kB / 362.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.984e-06/0.1106, allocations: 4 kB / 362.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000729/0.1114, allocations: 260.7 kB / 363.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002329/0.1116, allocations: 43.97 kB / 363.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00376/0.1154, allocations: 2.882 MB / 366.1 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.1157, allocations: 32.03 kB / 366.1 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.159e-05/0.1157, allocations: 15.98 kB / 366.1 MB, free: 3.652 MB / 302.1 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.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001711/0.1159, allocations: 153.7 kB / 366.3 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/0.116, allocations: 27.66 kB / 366.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.1161, allocations: 46.98 kB / 366.3 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.1161, allocations: 4 kB / 366.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.1161, allocations: 0 / 366.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1161, allocations: 4 kB / 366.3 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/0.118, allocations: 1.093 MB / 367.4 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.118, allocations: 4 kB / 367.4 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002246/0.1182, allocations: 39.97 kB / 367.5 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006679/0.1189, allocations: 240.7 kB / 367.7 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.675e-05/0.119, allocations: 15.98 kB / 367.7 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1529/0.2719, allocations: 2.839 MB / 370.6 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2719, allocations: 2.75 kB / 370.6 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001528/0.2734, allocations: 0.8172 MB / 371.4 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.2736, allocations: 138.9 kB / 371.5 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.74e-05/0.2737, allocations: 11.53 kB / 371.5 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002737/0.274, allocations: 24.69 kB / 371.5 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.2742, allocations: 64.06 kB / 371.6 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.65e-05/0.2742, allocations: 13.77 kB / 371.6 MB, free: 24.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002173/0.2744, allocations: 180.7 kB / 371.8 MB, free: 24.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.21e-07/0.2744, allocations: 1.125 kB / 371.8 MB, free: 24.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006378/0.2751, allocations: 141 kB / 371.9 MB, free: 24.13 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002267/0.2753, allocations: 143.1 kB / 372.1 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001333/0.2766, allocations: 0.6434 MB / 372.7 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2767, allocations: 0 / 372.7 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006851/0.2774, allocations: 438 kB / 373.2 MB, free: 23.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004078/0.2778, allocations: 35.58 kB / 373.2 MB, free: 23.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.2791, allocations: 0.8007 MB / 374 MB, free: 23.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.2794, allocations: 0.7786 MB / 374.8 MB, free: 22.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002057/0.2796, allocations: 67.19 kB / 374.8 MB, free: 22.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.007e-05/0.2797, allocations: 29.25 kB / 374.9 MB, free: 22.63 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2797, allocations: 1.562 kB / 374.9 MB, free: 22.63 MB / 302.1 MB Notification: Performance of Templates: time 0.01186/0.2915, allocations: 7.072 MB / 381.9 MB, free: 21.2 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches