Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001713/0.001712, allocations: 115.7 kB / 17.74 MB, free: 5.297 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.001975/0.001975, allocations: 189.6 kB / 18.67 MB, free: 4.375 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.346/1.346, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000987/0.0009871, allocations: 43.92 kB / 352 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2731, allocations: 49.44 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002923/0.276, allocations: 1.617 MB / 403 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009763/0.277, allocations: 0.5144 MB / 403.5 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.08e-05/0.2771, allocations: 4 kB / 403.5 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.207e-05/0.2772, allocations: 11.86 kB / 403.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.898e-05/0.2773, allocations: 27.77 kB / 403.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002212/0.2775, allocations: 27.91 kB / 403.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001426/0.2777, allocations: 103.5 kB / 403.7 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.2778, allocations: 35.97 kB / 403.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.637e-05/0.2779, allocations: 39.86 kB / 403.8 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.278, allocations: 39.84 kB / 403.8 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.278, allocations: 15.92 kB / 403.8 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.147e-05/0.2781, allocations: 12 kB / 403.8 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.076e-05/0.2782, allocations: 15.98 kB / 403.9 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.42e-05/0.2782, allocations: 43.81 kB / 403.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.2784, allocations: 104.8 kB / 404 MB, free: 6.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2784, allocations: 0 / 404 MB, free: 6.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2784, allocations: 0 / 404 MB, free: 6.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.2784, allocations: 0 / 404 MB, free: 6.285 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.000499/0.279, allocations: 383.3 kB / 404.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.279, allocations: 8.031 kB / 404.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.2791, allocations: 8.844 kB / 404.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.2793, allocations: 180.2 kB / 404.6 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.2793, allocations: 12.38 kB / 404.6 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.944e-05/0.2793, allocations: 4.375 kB / 404.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.2795, allocations: 89.94 kB / 404.7 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.2795, allocations: 0 / 404.7 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.2796, allocations: 7.938 kB / 404.7 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.2796, allocations: 4 kB / 404.7 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000109/0.2797, allocations: 51.97 kB / 404.7 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006915/0.2804, allocations: 400.4 kB / 405.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/0.2805, allocations: 70.55 kB / 405.2 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.106e-05/0.2806, allocations: 40.78 kB / 405.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.2806, allocations: 0 / 405.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.2806, allocations: 38.56 kB / 405.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.2806, allocations: 0 / 405.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002065/0.2809, allocations: 89.75 kB / 405.4 MB, free: 4.758 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.2809, allocations: 59.41 kB / 405.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.476e-05/0.281, allocations: 105.8 kB / 405.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.281, allocations: 33.7 kB / 405.6 MB, free: 4.535 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/0.2811, allocations: 95.88 kB / 405.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.869e-05/0.2811, allocations: 31.55 kB / 405.7 MB, free: 4.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.213e-05/0.2812, allocations: 25.72 kB / 405.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.2813, allocations: 322.8 kB / 406 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.296e-05/0.2813, allocations: 27.94 kB / 406 MB, free: 4.023 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.252e-05/0.2814, allocations: 42.56 kB / 406.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.472e-05/0.2815, allocations: 62.56 kB / 406.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2815, allocations: 0 / 406.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001485/0.2816, allocations: 113.4 kB / 406.3 MB, free: 3.785 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.2817, allocations: 8.062 kB / 406.3 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.2817, allocations: 4 kB / 406.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.2817, allocations: 7.875 kB / 406.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.2818, allocations: 23.98 kB / 406.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.2818, allocations: 0 / 406.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.477e-05/0.2819, allocations: 7.906 kB / 406.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.2819, allocations: 8 kB / 406.3 MB, free: 3.727 MB / 318.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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.204e-05/0.282, allocations: 113.8 kB / 406.4 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.748e-05/0.282, allocations: 0 / 406.4 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.354e-05/0.2821, allocations: 20.31 kB / 406.4 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.2821, allocations: 3.938 kB / 406.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.2821, allocations: 0 / 406.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.2821, allocations: 3.984 kB / 406.5 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001908/0.2823, allocations: 177.7 kB / 406.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2823, allocations: 0 / 406.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.2824, allocations: 27.92 kB / 406.7 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.2824, allocations: 4 kB / 406.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.2824, allocations: 0 / 406.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.2824, allocations: 3.938 kB / 406.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2824, allocations: 0 / 406.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002/0.2827, allocations: 199.4 kB / 406.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.2827, allocations: 88.98 kB / 406.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.2827, allocations: 4.25 kB / 406.9 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.788e-05/0.2828, allocations: 3.938 kB / 407 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.428e-05/0.2828, allocations: 11.98 kB / 407 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.2828, allocations: 3.938 kB / 407 MB, free: 2.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.737e-05/0.2829, allocations: 83.28 kB / 407 MB, free: 2.898 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2829, allocations: 4.062 kB / 407.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.2831, allocations: 24 kB / 407.1 MB, free: 2.871 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001024/0.2832, allocations: 103.7 kB / 407.2 MB, free: 2.762 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001281/0.2834, allocations: 51.92 kB / 407.2 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2834, allocations: 0 / 407.2 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.23e-05/0.2834, allocations: 24 kB / 407.3 MB, free: 2.688 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/0.2837, allocations: 7.984 kB / 407.3 MB, free: 2.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006048/0.2843, allocations: 356.3 kB / 407.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.2846, allocations: 0.6924 MB / 408.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.003e-05/0.2846, allocations: 11.44 kB / 408.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2846, allocations: 0 / 408.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of Templates: time 0.002382/0.287, allocations: 0.9578 MB / 409.3 MB, free: 0.6133 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches