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: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 113.8 kB / 17.06 MB, free: 5.965 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.001245/0.001245, allocations: 197.3 kB / 18.01 MB, free: 5.047 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.37/1.37, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 43.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2659, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003043/0.269, allocations: 1.633 MB / 401.8 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.2702, allocations: 0.5113 MB / 402.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.021e-05/0.2703, allocations: 4 kB / 402.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.274e-05/0.2704, allocations: 7.922 kB / 402.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.424e-05/0.2705, allocations: 27.72 kB / 402.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002437/0.2707, allocations: 27.95 kB / 402.4 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.2709, allocations: 99.47 kB / 402.5 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.2711, allocations: 39.95 kB / 402.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.741e-05/0.2712, allocations: 39.84 kB / 402.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.2713, allocations: 47.84 kB / 402.6 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.2713, allocations: 8 kB / 402.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.827e-05/0.2714, allocations: 12 kB / 402.7 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.71e-05/0.2714, allocations: 19.98 kB / 402.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.114e-05/0.2715, allocations: 39.81 kB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002183/0.2717, allocations: 102.6 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.2717, allocations: 3.984 kB / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2717, allocations: 0 / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.2718, allocations: 0 / 402.8 MB, free: 6.207 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.0005831/0.2723, allocations: 383.2 kB / 403.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001434/0.2725, allocations: 12.03 kB / 403.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.008e-05/0.2725, allocations: 38.73 kB / 403.2 MB, free: 5.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/0.2727, allocations: 16.83 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/0.2729, allocations: 176.3 kB / 403.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.2729, allocations: 384 / 403.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.273, allocations: 12.38 kB / 403.4 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.2732, allocations: 96.77 kB / 403.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.2732, allocations: 8 kB / 403.6 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.2732, allocations: 4 kB / 403.6 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2732, allocations: 0 / 403.6 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001145/0.2733, allocations: 55.91 kB / 403.6 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007334/0.2741, allocations: 392.6 kB / 404 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.2742, allocations: 78.53 kB / 404.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.589e-05/0.2743, allocations: 32.86 kB / 404.1 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.246e-06/0.2743, allocations: 0 / 404.1 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.2743, allocations: 34.55 kB / 404.1 MB, free: 4.727 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.2743, allocations: 0 / 404.1 MB, free: 4.727 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002196/0.2746, allocations: 97.92 kB / 404.2 MB, free: 4.625 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.371e-05/0.2747, allocations: 51.41 kB / 404.3 MB, free: 4.562 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.441e-05/0.2748, allocations: 109.8 kB / 404.4 MB, free: 4.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.2748, allocations: 25.7 kB / 404.4 MB, free: 4.414 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.985e-05/0.2749, allocations: 108 kB / 404.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.158e-05/0.2749, allocations: 31.7 kB / 404.5 MB, free: 4.273 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.221e-05/0.275, allocations: 29.7 kB / 404.6 MB, free: 4.238 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.2751, allocations: 310.8 kB / 404.9 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.861e-05/0.2752, allocations: 23.98 kB / 404.9 MB, free: 3.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.362e-05/0.2753, allocations: 46.56 kB / 405 MB, free: 3.848 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001046/0.2754, allocations: 70.52 kB / 405 MB, free: 3.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2754, allocations: 0 / 405 MB, free: 3.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001754/0.2756, allocations: 109.5 kB / 405.1 MB, free: 3.656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.2756, allocations: 6.188 kB / 405.1 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.2756, allocations: 80 / 405.1 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.2756, allocations: 3.938 kB / 405.1 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.2758, allocations: 20 kB / 405.2 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.2758, allocations: 15.98 kB / 405.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.331e-05/0.2758, allocations: 11.94 kB / 405.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/0.2758, allocations: 4 kB / 405.2 MB, free: 3.598 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 9.785e-05/0.2759, allocations: 113.8 kB / 405.3 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.276, allocations: 7.953 kB / 405.3 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.772e-05/0.276, allocations: 16.31 kB / 405.3 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.276, allocations: 0 / 405.3 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.276, allocations: 0 / 405.3 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.276, allocations: 4 kB / 405.3 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002291/0.2763, allocations: 189.8 kB / 405.5 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2763, allocations: 7.922 kB / 405.5 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.2764, allocations: 19.98 kB / 405.5 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2764, allocations: 0 / 405.5 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.2764, allocations: 4.188 kB / 405.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2764, allocations: 4 kB / 405.5 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.2765, allocations: 7.938 kB / 405.6 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002567/0.2767, allocations: 191.5 kB / 405.7 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.128e-05/0.2768, allocations: 85.11 kB / 405.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.2768, allocations: 3.938 kB / 405.8 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.282e-05/0.2769, allocations: 3.938 kB / 405.8 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.109e-05/0.2769, allocations: 8 kB / 405.8 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.2769, allocations: 3.984 kB / 405.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.053e-05/0.277, allocations: 83.28 kB / 405.9 MB, free: 2.766 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.277, allocations: 0 / 405.9 MB, free: 2.766 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002403/0.2772, allocations: 23.95 kB / 405.9 MB, free: 2.742 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.0005502/0.2778, allocations: 0.7319 MB / 406.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001515/0.278, allocations: 63.86 kB / 406.7 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.278, allocations: 0 / 406.7 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.391e-05/0.278, allocations: 23.98 kB / 406.8 MB, free: 1.898 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.2783, allocations: 4 kB / 406.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.28, allocations: 1.544 MB / 408.3 MB, free: 272 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.2804, allocations: 0.6924 MB / 409 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.584e-05/0.2805, allocations: 8 kB / 409 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.164e-05/0.2805, allocations: 23.42 kB / 409 MB, free: 15.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2805, allocations: 0 / 409 MB, free: 15.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02598/0.3065, allocations: 1.803 MB / 410.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.855/8.162, allocations: 10.75 kB / 410.9 MB, free: 13.79 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > 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