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.001551/0.001551, allocations: 112.4 kB / 17.07 MB, free: 5.973 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.001618/0.001618, allocations: 194.8 kB / 18 MB, free: 5.059 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.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009654/0.0009654, allocations: 48.06 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2643, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002528/0.2669, allocations: 1.635 MB / 402.3 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007599/0.2677, allocations: 0.5105 MB / 402.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.305e-05/0.2677, allocations: 0 / 402.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.624e-05/0.2678, allocations: 15.88 kB / 402.9 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.37e-05/0.2679, allocations: 27.77 kB / 402.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.2681, allocations: 27.89 kB / 402.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.2682, allocations: 99.53 kB / 403 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.2683, allocations: 47.94 kB / 403.1 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.155e-05/0.2684, allocations: 31.88 kB / 403.1 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.716e-05/0.2685, allocations: 39.84 kB / 403.1 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.785e-05/0.2685, allocations: 8 kB / 403.1 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.031e-05/0.2686, allocations: 15.94 kB / 403.2 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.073e-05/0.2686, allocations: 15.98 kB / 403.2 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.122e-05/0.2687, allocations: 51.78 kB / 403.2 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001438/0.2688, allocations: 96.75 kB / 403.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2688, allocations: 4 kB / 403.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2688, allocations: 0 / 403.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.2688, allocations: 0 / 403.3 MB, free: 6.242 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.0004548/0.2693, allocations: 387.3 kB / 403.7 MB, free: 5.816 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.2693, allocations: 8.031 kB / 403.7 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.2695, allocations: 12.84 kB / 403.7 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.2696, allocations: 172.3 kB / 403.9 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.2696, allocations: 8.312 kB / 403.9 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.2697, allocations: 8.375 kB / 403.9 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001704/0.2698, allocations: 93.19 kB / 404 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.2699, allocations: 8 kB / 404 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.2699, allocations: 4 kB / 404 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.2699, allocations: 3.938 kB / 404 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.27, allocations: 51.97 kB / 404.1 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006631/0.2707, allocations: 392.4 kB / 404.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001299/0.2708, allocations: 78.53 kB / 404.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.417e-05/0.2709, allocations: 28.8 kB / 404.6 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.2709, allocations: 4 kB / 404.6 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.2709, allocations: 38.55 kB / 404.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.2709, allocations: 0 / 404.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002048/0.2712, allocations: 85.62 kB / 404.7 MB, free: 4.723 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.386e-05/0.2712, allocations: 51.41 kB / 404.7 MB, free: 4.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.498e-05/0.2713, allocations: 109.8 kB / 404.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.2713, allocations: 29.7 kB / 404.9 MB, free: 4.508 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.651e-05/0.2714, allocations: 103.9 kB / 405 MB, free: 4.402 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.2714, allocations: 27.56 kB / 405 MB, free: 4.375 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.2714, allocations: 29.7 kB / 405 MB, free: 4.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.2715, allocations: 314.8 kB / 405.3 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.306e-05/0.2716, allocations: 27.92 kB / 405.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.296e-05/0.2717, allocations: 42.56 kB / 405.4 MB, free: 3.945 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.97e-05/0.2717, allocations: 70.72 kB / 405.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2718, allocations: 0 / 405.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001496/0.2719, allocations: 105.5 kB / 405.6 MB, free: 3.758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.2719, allocations: 11.98 kB / 405.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2719, allocations: 3.984 kB / 405.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.272, allocations: 3.938 kB / 405.6 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.2721, allocations: 23.94 kB / 405.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.2721, allocations: 8.062 kB / 405.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.104e-05/0.2721, allocations: 3.906 kB / 405.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.2722, allocations: 4 kB / 405.6 MB, free: 3.699 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 7.47e-05/0.2722, allocations: 121.8 kB / 405.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.2723, allocations: 7.938 kB / 405.8 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.868e-05/0.2723, allocations: 8.375 kB / 405.8 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.2723, allocations: 8.125 kB / 405.8 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.2723, allocations: 0 / 405.8 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.2723, allocations: 12 kB / 405.8 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/0.2725, allocations: 181.6 kB / 406 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2725, allocations: 0 / 406 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.966e-05/0.2726, allocations: 19.98 kB / 406 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2726, allocations: 0 / 406 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.2726, allocations: 4 kB / 406 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.2727, allocations: 3.938 kB / 406 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2727, allocations: 4 kB / 406 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001886/0.2729, allocations: 191.5 kB / 406.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.615e-05/0.2729, allocations: 88.89 kB / 406.3 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.2729, allocations: 4 kB / 406.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.761e-05/0.273, allocations: 3.938 kB / 406.3 MB, free: 2.961 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.421e-05/0.273, allocations: 4 kB / 406.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.273, allocations: 0 / 406.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.191e-05/0.2731, allocations: 95.2 kB / 406.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2731, allocations: 0 / 406.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002356/0.2733, allocations: 16 kB / 406.4 MB, free: 2.848 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 9.027e-05/0.2734, allocations: 107.8 kB / 406.5 MB, free: 2.734 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001398/0.2735, allocations: 60.02 kB / 406.5 MB, free: 2.676 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2736, allocations: 0 / 406.5 MB, free: 2.676 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.873e-05/0.2736, allocations: 28.38 kB / 406.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002489/0.2739, allocations: 2.875 kB / 406.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000546/0.2744, allocations: 338.5 kB / 406.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.2746, allocations: 0.6924 MB / 407.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.639e-05/0.2747, allocations: 7.984 kB / 407.6 MB, free: 1.566 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.462e-05/0.2747, allocations: 11.44 kB / 407.6 MB, free: 1.555 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2747, allocations: 0 / 407.6 MB, free: 1.555 MB / 318.1 MB Notification: Performance of Templates: time 0.002629/0.2774, allocations: 0.6224 MB / 408.2 MB, free: 0.9375 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins/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