Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001475/0.001475, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001501/0.001501, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 63.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2649, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003443/0.2684, allocations: 2.359 MB / 411.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.2695, allocations: 0.6505 MB / 412.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.2697, allocations: 4 kB / 412.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.2698, allocations: 39.58 kB / 412.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000152/0.27, allocations: 75.33 kB / 412.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002336/0.2702, allocations: 63.88 kB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002668/0.2705, allocations: 278.6 kB / 412.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.2707, allocations: 106.7 kB / 412.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/0.2709, allocations: 115.5 kB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.271, allocations: 111.5 kB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.655e-05/0.2711, allocations: 20 kB / 413 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.194e-05/0.2712, allocations: 31.98 kB / 413.1 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.375e-05/0.2712, allocations: 47.78 kB / 413.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.993e-05/0.2713, allocations: 119.4 kB / 413.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003142/0.2716, allocations: 272.1 kB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.2717, allocations: 4 kB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2717, allocations: 0 / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.2717, allocations: 0 / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007506/0.2724, allocations: 0.5262 MB / 414 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.2725, allocations: 8.031 kB / 414 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.2726, allocations: 40.64 kB / 414.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.273, allocations: 252.5 kB / 414.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.273, allocations: 12.81 kB / 414.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.783e-05/0.2731, allocations: 32.27 kB / 414.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003394/0.2734, allocations: 203.5 kB / 414.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.2735, allocations: 0 / 414.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.2735, allocations: 8 kB / 414.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.2735, allocations: 8 kB / 414.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002566/0.2738, allocations: 133.7 kB / 414.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000894/0.2747, allocations: 0.6268 MB / 415.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002782/0.275, allocations: 178.5 kB / 415.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.2751, allocations: 104.8 kB / 415.6 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.2752, allocations: 8 kB / 415.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.39e-05/0.2752, allocations: 30.56 kB / 415.6 MB, free: 11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.2752, allocations: 0 / 415.6 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00185/0.2771, allocations: 1.069 MB / 416.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.2771, allocations: 59.34 kB / 416.8 MB, free: 9.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.2773, allocations: 175.2 kB / 416.9 MB, free: 9.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.2773, allocations: 33.7 kB / 417 MB, free: 9.559 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.617e-05/0.2774, allocations: 144.7 kB / 417.1 MB, free: 9.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.783e-05/0.2775, allocations: 114.3 kB / 417.2 MB, free: 9.297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.345e-05/0.2776, allocations: 57.7 kB / 417.3 MB, free: 9.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.2777, allocations: 330.8 kB / 417.6 MB, free: 8.902 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.2778, allocations: 71.97 kB / 417.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.278, allocations: 106.8 kB / 417.8 MB, free: 8.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.2783, allocations: 193.6 kB / 418 MB, free: 8.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.2783, allocations: 0 / 418 MB, free: 8.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004625/0.2788, allocations: 291.1 kB / 418.3 MB, free: 8.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.2788, allocations: 6.656 kB / 418.3 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2788, allocations: 3.984 kB / 418.3 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001792/0.279, allocations: 44.83 kB / 418.3 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.2793, allocations: 63.97 kB / 418.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001445/0.2807, allocations: 1.74 MB / 420.1 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.2809, allocations: 12.02 kB / 420.1 MB, free: 6.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.2809, allocations: 8 kB / 420.1 MB, free: 6.219 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001309/0.281, allocations: 145.7 kB / 420.3 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.713e-05/0.2811, allocations: 23.66 kB / 420.3 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.605e-05/0.2811, allocations: 30.64 kB / 420.3 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2811, allocations: 8.062 kB / 420.3 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.2811, allocations: 0 / 420.3 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.2812, allocations: 0 / 420.3 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.2822, allocations: 0.7892 MB / 421.1 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2822, allocations: 3.938 kB / 421.1 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002524/0.2825, allocations: 59.91 kB / 421.2 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001135/0.2826, allocations: 36.83 kB / 421.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.2826, allocations: 11.94 kB / 421.2 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.2837, allocations: 1.485 MB / 422.7 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2837, allocations: 0 / 422.7 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000612/0.2843, allocations: 486.5 kB / 423.2 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.16e-05/0.2844, allocations: 96.86 kB / 423.3 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.599e-05/0.2844, allocations: 8 kB / 423.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.2846, allocations: 8 kB / 423.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.676e-05/0.2846, allocations: 31.91 kB / 423.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.2846, allocations: 8 kB / 423.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001027/0.2848, allocations: 140.3 kB / 423.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2848, allocations: 0 / 423.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003485/0.2851, allocations: 64 kB / 423.5 MB, free: 2.52 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001188/0.2852, allocations: 106.6 kB / 423.7 MB, free: 2.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005758/0.2858, allocations: 350.5 kB / 424 MB, free: 2.055 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2858, allocations: 0 / 424 MB, free: 2.055 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003216/0.2862, allocations: 238.5 kB / 424.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.2866, allocations: 47.97 kB / 424.3 MB, free: 1.766 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.2877, allocations: 0.733 MB / 425 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.2881, allocations: 0.7486 MB / 425.8 MB, free: 220 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.409e-05/0.2881, allocations: 30.28 kB / 425.8 MB, free: 192 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.893e-05/0.2882, allocations: 19.44 kB / 425.8 MB, free: 176 kB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2882, allocations: 0 / 425.8 MB, free: 176 kB / 334.1 MB Notification: Performance of Templates: time 0.00587/0.2941, allocations: 2.702 MB / 428.5 MB, free: 13.48 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches