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.001215/0.001215, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.00111/0.00111, allocations: 191 kB / 18 MB, free: 4.977 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.361/1.361, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009591/0.0009591, allocations: 47.92 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2621, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00326/0.2654, allocations: 2.357 MB / 403.1 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.2669, allocations: 0.9091 MB / 404 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.2671, allocations: 4 kB / 404 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.2673, allocations: 47.58 kB / 404 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004533/0.2678, allocations: 138.7 kB / 404.2 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.2681, allocations: 179.6 kB / 404.3 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003925/0.2685, allocations: 418.8 kB / 404.7 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.2687, allocations: 68.66 kB / 404.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.2689, allocations: 183.5 kB / 405 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002559/0.2691, allocations: 219.3 kB / 405.2 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.23e-05/0.2692, allocations: 32 kB / 405.2 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.2694, allocations: 123.8 kB / 405.4 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.2695, allocations: 99.7 kB / 405.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.2697, allocations: 163.2 kB / 405.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004711/0.2702, allocations: 447.7 kB / 406 MB, free: 3.543 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.2702, allocations: 0 / 406 MB, free: 3.543 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2702, allocations: 0 / 406 MB, free: 3.543 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.2702, allocations: 0 / 406 MB, free: 3.543 MB / 318.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.001108/0.2713, allocations: 0.6355 MB / 406.7 MB, free: 2.859 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.2714, allocations: 12.03 kB / 406.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.2717, allocations: 48.53 kB / 406.7 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004288/0.2721, allocations: 308.5 kB / 407 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.2722, allocations: 84.52 kB / 407.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.882e-05/0.2723, allocations: 28.38 kB / 407.2 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006781/0.273, allocations: 381.3 kB / 407.5 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.273, allocations: 3.984 kB / 407.5 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.699e-05/0.2731, allocations: 16 kB / 407.5 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.2731, allocations: 8 kB / 407.6 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008417/0.2739, allocations: 413.9 kB / 408 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001933/0.2759, allocations: 1.241 MB / 409.2 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006731/0.2766, allocations: 356.2 kB / 409.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000379/0.277, allocations: 188.8 kB / 409.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.145e-05/0.277, allocations: 8.141 kB / 409.7 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.277, allocations: 38.56 kB / 409.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.277, allocations: 0 / 409.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004753/0.2818, allocations: 1.918 MB / 411.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/0.2819, allocations: 84.86 kB / 411.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.2821, allocations: 242.1 kB / 412 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.674e-05/0.2822, allocations: 37.7 kB / 412.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.126e-05/0.2823, allocations: 136.7 kB / 412.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.2824, allocations: 153.8 kB / 412.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.2826, allocations: 82.12 kB / 412.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.2827, allocations: 334.8 kB / 412.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003693/0.2831, allocations: 172.8 kB / 412.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/0.2835, allocations: 229.8 kB / 413.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006927/0.2842, allocations: 339.2 kB / 413.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2842, allocations: 0 / 413.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001104/0.2853, allocations: 0.5629 MB / 414 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.2853, allocations: 4 kB / 414 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.433e-06/0.2854, allocations: 4 kB / 414 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007595/0.2861, allocations: 252.7 kB / 414.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.2864, allocations: 55.91 kB / 414.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003979/0.2904, allocations: 2.882 MB / 417.2 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.2906, allocations: 23.97 kB / 417.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.2907, allocations: 16 kB / 417.3 MB, free: 7.762 MB / 334.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.0001823/0.2909, allocations: 165.6 kB / 417.4 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.558e-05/0.291, allocations: 27.62 kB / 417.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.2911, allocations: 43.05 kB / 417.5 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.2911, allocations: 12 kB / 417.5 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.2911, allocations: 0 / 417.5 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.2911, allocations: 0 / 417.5 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001844/0.2929, allocations: 1.082 MB / 418.6 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.293, allocations: 0 / 418.6 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002229/0.2932, allocations: 43.91 kB / 418.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006667/0.2939, allocations: 241.1 kB / 418.9 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.623e-05/0.2939, allocations: 15.98 kB / 418.9 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003956/0.2979, allocations: 2.837 MB / 421.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2979, allocations: 0 / 421.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.2995, allocations: 0.8236 MB / 422.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.2997, allocations: 140.8 kB / 422.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.837e-05/0.2997, allocations: 15.94 kB / 422.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.3, allocations: 15.98 kB / 422.7 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.3002, allocations: 59.91 kB / 422.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.228e-05/0.3002, allocations: 19.98 kB / 422.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002065/0.3004, allocations: 176.3 kB / 423 MB, free: 1.816 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3004, allocations: 3.938 kB / 423 MB, free: 1.812 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005996/0.301, allocations: 148 kB / 423.1 MB, free: 1.668 MB / 334.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.0002795/0.3013, allocations: 147.1 kB / 423.3 MB, free: 1.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001322/0.3027, allocations: 0.6214 MB / 423.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3027, allocations: 4.062 kB / 423.9 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007148/0.3034, allocations: 433.5 kB / 424.3 MB, free: 444 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/0.3038, allocations: 39.92 kB / 424.3 MB, free: 404 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.3052, allocations: 0.6983 MB / 425 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000368/0.3056, allocations: 0.78 MB / 425.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001757/0.3058, allocations: 50.95 kB / 425.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.015e-05/0.3059, allocations: 31.42 kB / 425.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3059, allocations: 0 / 425.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of Templates: time 0.01318/0.3191, allocations: 7.194 MB / 433.1 MB, free: 7.609 MB / 350.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