Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 110.8 kB / 17.74 MB, free: 5.344 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.001347/0.001347, allocations: 188.5 kB / 18.66 MB, free: 4.422 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.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 55.89 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2641, allocations: 49.43 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003603/0.2677, allocations: 2.354 MB / 403.8 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009336/0.2686, allocations: 0.5804 MB / 404.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.2688, allocations: 4 kB / 404.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.2689, allocations: 39.58 kB / 404.4 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001474/0.2691, allocations: 75.33 kB / 404.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00019/0.2693, allocations: 59.86 kB / 404.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002665/0.2696, allocations: 258.8 kB / 404.8 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.2698, allocations: 114.7 kB / 404.9 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.2699, allocations: 107.5 kB / 405 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.2701, allocations: 115.5 kB / 405.1 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.893e-05/0.2701, allocations: 24 kB / 405.1 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.918e-05/0.2702, allocations: 20 kB / 405.1 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.06e-05/0.2702, allocations: 43.83 kB / 405.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.2703, allocations: 131.3 kB / 405.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002838/0.2706, allocations: 256.2 kB / 405.6 MB, free: 4.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.2707, allocations: 4 kB / 405.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2707, allocations: 3.938 kB / 405.6 MB, free: 4.727 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.2707, allocations: 0 / 405.6 MB, free: 4.727 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.000693/0.2714, allocations: 0.5224 MB / 406.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.2714, allocations: 11.89 kB / 406.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.723e-05/0.2715, allocations: 36.56 kB / 406.1 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003055/0.2718, allocations: 241.2 kB / 406.4 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.2718, allocations: 20.81 kB / 406.4 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.2719, allocations: 20.38 kB / 406.4 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.2722, allocations: 191.6 kB / 406.6 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.2722, allocations: 11.89 kB / 406.6 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.1e-05/0.2723, allocations: 8 kB / 406.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.2723, allocations: 4 kB / 406.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002586/0.2726, allocations: 141.7 kB / 406.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008896/0.2734, allocations: 0.6268 MB / 407.4 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002859/0.2737, allocations: 178.5 kB / 407.6 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.2739, allocations: 100.8 kB / 407.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.2739, allocations: 3.984 kB / 407.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.274, allocations: 38.56 kB / 407.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.202e-06/0.274, allocations: 0 / 407.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001838/0.2758, allocations: 1.064 MB / 408.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.2759, allocations: 59.34 kB / 408.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.276, allocations: 184 kB / 409 MB, free: 1.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.2761, allocations: 29.7 kB / 409 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.031e-05/0.2762, allocations: 140.6 kB / 409.2 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.046e-05/0.2762, allocations: 110.4 kB / 409.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.503e-05/0.2763, allocations: 61.59 kB / 409.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.2764, allocations: 334.8 kB / 409.7 MB, free: 324 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.2766, allocations: 67.95 kB / 409.7 MB, free: 256 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.2767, allocations: 115.5 kB / 409.8 MB, free: 132 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003078/0.277, allocations: 193.4 kB / 410 MB, free: 15.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2771, allocations: 0 / 410 MB, free: 15.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004656/0.2775, allocations: 298.1 kB / 410.3 MB, free: 15.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.2775, allocations: 4 kB / 410.3 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.2776, allocations: 0 / 410.3 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001707/0.2777, allocations: 44.83 kB / 410.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000245/0.278, allocations: 63.97 kB / 410.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/0.2794, allocations: 1.74 MB / 412.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.2796, allocations: 12.03 kB / 412.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.2796, allocations: 11.98 kB / 412.2 MB, free: 13.62 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.2797, allocations: 137.8 kB / 412.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.654e-05/0.2798, allocations: 23.66 kB / 412.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.928e-05/0.2799, allocations: 38.66 kB / 412.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.2799, allocations: 7.984 kB / 412.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.2799, allocations: 0 / 412.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.81e-06/0.2799, allocations: 7.984 kB / 412.4 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.2809, allocations: 0.7737 MB / 413.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.2809, allocations: 0 / 413.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002554/0.2812, allocations: 63.91 kB / 413.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/0.2813, allocations: 32.83 kB / 413.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.2813, allocations: 8 kB / 413.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.2824, allocations: 1.481 MB / 414.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2824, allocations: 0 / 414.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000633/0.283, allocations: 482.5 kB / 415.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-05/0.2831, allocations: 96.86 kB / 415.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.153e-05/0.2831, allocations: 8 kB / 415.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.2833, allocations: 12 kB / 415.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.399e-05/0.2833, allocations: 36.14 kB / 415.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.2834, allocations: 4 kB / 415.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.98e-05/0.2835, allocations: 135.2 kB / 415.5 MB, free: 10 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2835, allocations: 0 / 415.5 MB, free: 10 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003692/0.2839, allocations: 68 kB / 415.6 MB, free: 9.938 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.0001467/0.284, allocations: 111.1 kB / 415.7 MB, free: 9.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005774/0.2846, allocations: 335.7 kB / 416 MB, free: 9.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2846, allocations: 0 / 416 MB, free: 9.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003253/0.2849, allocations: 242.4 kB / 416.3 MB, free: 9.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.2854, allocations: 51.59 kB / 416.3 MB, free: 9.184 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.2867, allocations: 0.7541 MB / 417.1 MB, free: 8.387 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.2871, allocations: 0.7524 MB / 417.8 MB, free: 7.605 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.777e-05/0.2872, allocations: 23.44 kB / 417.8 MB, free: 7.586 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2872, allocations: 4 kB / 417.8 MB, free: 7.582 MB / 334.1 MB Notification: Performance of Templates: time 0.006397/0.2936, allocations: 3.852 MB / 421.7 MB, free: 3.727 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches