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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001017, allocations: 103 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009115/0.0009117, allocations: 43.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2541, allocations: 49.43 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002863/0.257, allocations: 2.39 MB / 401.9 MB, free: 30.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.2583, allocations: 0.9262 MB / 402.8 MB, free: 30.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.2585, allocations: 4 kB / 402.8 MB, free: 30.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.2587, allocations: 39.75 kB / 402.8 MB, free: 29.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00035/0.259, allocations: 107.5 kB / 402.9 MB, free: 29.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.2593, allocations: 151.8 kB / 403.1 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002563/0.2595, allocations: 398.8 kB / 403.5 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.2597, allocations: 60.55 kB / 403.5 MB, free: 29.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.2598, allocations: 171.4 kB / 403.7 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.26, allocations: 207.3 kB / 403.9 MB, free: 28.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.684e-05/0.2601, allocations: 16 kB / 403.9 MB, free: 28.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001616/0.2603, allocations: 95.88 kB / 404 MB, free: 28.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.2604, allocations: 87.7 kB / 404.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.2605, allocations: 147.2 kB / 404.2 MB, free: 28.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003223/0.2608, allocations: 432.2 kB / 404.7 MB, free: 28.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2608, allocations: 4 kB / 404.7 MB, free: 28.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.91e-07/0.2608, allocations: 0 / 404.7 MB, free: 28.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.2608, allocations: 0 / 404.7 MB, free: 28.14 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.0009564/0.2618, allocations: 0.6316 MB / 405.3 MB, free: 27.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.941e-05/0.2618, allocations: 8.031 kB / 405.3 MB, free: 27.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.2621, allocations: 48.55 kB / 405.3 MB, free: 27.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.2624, allocations: 307.7 kB / 405.6 MB, free: 27.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.619e-05/0.2625, allocations: 84.53 kB / 405.7 MB, free: 26.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.089e-05/0.2626, allocations: 36.3 kB / 405.8 MB, free: 26.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005518/0.2632, allocations: 377.4 kB / 406.1 MB, free: 26.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.2632, allocations: 4 kB / 406.1 MB, free: 26.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.2632, allocations: 8 kB / 406.1 MB, free: 26.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.2632, allocations: 8 kB / 406.2 MB, free: 26.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007425/0.264, allocations: 421.9 kB / 406.6 MB, free: 26.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.2656, allocations: 1.241 MB / 407.8 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005305/0.2662, allocations: 362.4 kB / 408.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.2665, allocations: 188.8 kB / 408.3 MB, free: 24.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.2665, allocations: 4 kB / 408.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.825e-05/0.2665, allocations: 42.56 kB / 408.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.543e-06/0.2665, allocations: 0 / 408.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003984/0.2705, allocations: 1.911 MB / 410.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.2706, allocations: 100.8 kB / 410.4 MB, free: 22.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.2708, allocations: 234.3 kB / 410.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.2708, allocations: 37.7 kB / 410.7 MB, free: 21.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.426e-05/0.2709, allocations: 136.7 kB / 410.8 MB, free: 21.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.456e-05/0.271, allocations: 149.8 kB / 410.9 MB, free: 21.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.2711, allocations: 86.11 kB / 411 MB, free: 21.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.062e-05/0.2712, allocations: 334.8 kB / 411.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003052/0.2715, allocations: 160.8 kB / 411.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003278/0.2718, allocations: 237.9 kB / 411.7 MB, free: 20.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005468/0.2724, allocations: 339.1 kB / 412.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2724, allocations: 0 / 412.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009061/0.2733, allocations: 0.5629 MB / 412.6 MB, free: 19.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.2733, allocations: 4 kB / 412.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2733, allocations: 0 / 412.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006204/0.274, allocations: 252.8 kB / 412.9 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002075/0.2742, allocations: 55.91 kB / 412.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002884/0.2771, allocations: 2.64 MB / 415.6 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002416/0.2773, allocations: 23.97 kB / 415.6 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.2774, allocations: 16 kB / 415.6 MB, free: 16.62 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.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.0001377/0.2775, allocations: 151.3 kB / 415.8 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.173e-05/0.2776, allocations: 31.56 kB / 415.8 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.19e-05/0.2777, allocations: 50.98 kB / 415.9 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.2777, allocations: 8.062 kB / 415.9 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.2777, allocations: 0 / 415.9 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.2777, allocations: 7.875 kB / 415.9 MB, free: 16.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/0.2792, allocations: 1.089 MB / 417 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2792, allocations: 0 / 417 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002015/0.2794, allocations: 47.91 kB / 417 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005737/0.28, allocations: 236.7 kB / 417.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.28, allocations: 15.92 kB / 417.3 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002709/0.2828, allocations: 2.602 MB / 419.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2828, allocations: 0 / 419.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009367/0.2921, allocations: 6.537 MB / 426.4 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.2923, allocations: 144.7 kB / 426.5 MB, free: 5.184 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.513e-05/0.2923, allocations: 12.11 kB / 426.5 MB, free: 5.172 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.2926, allocations: 23.91 kB / 426.6 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.2928, allocations: 55.91 kB / 426.6 MB, free: 5.094 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.2928, allocations: 15.98 kB / 426.6 MB, free: 5.078 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002008/0.293, allocations: 185.6 kB / 426.8 MB, free: 4.898 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.293, allocations: 0 / 426.8 MB, free: 4.898 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007134/0.2937, allocations: 208 kB / 427 MB, free: 4.695 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 (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.0002191/0.294, allocations: 163.2 kB / 427.2 MB, free: 4.523 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.295, allocations: 0.6256 MB / 427.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.295, allocations: 0 / 427.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005686/0.2956, allocations: 432.8 kB / 428.2 MB, free: 3.449 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003671/0.296, allocations: 48.88 kB / 428.3 MB, free: 3.402 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001459/0.2974, allocations: 1.264 MB / 429.5 MB, free: 2.086 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.2976, allocations: 0.7927 MB / 430.3 MB, free: 1.27 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002167/0.2979, allocations: 74.92 kB / 430.4 MB, free: 1.195 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.298, allocations: 39.41 kB / 430.4 MB, free: 1.16 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.298, allocations: 0 / 430.4 MB, free: 1.16 MB / 298.7 MB Notification: Performance of Templates: time 0.0144/0.3124, allocations: 9.491 MB / 439.9 MB, free: 7.703 MB / 314.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches