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.001534/0.001533, allocations: 112.6 kB / 17.07 MB, free: 5.988 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.001792/0.001792, allocations: 191 kB / 18 MB, free: 5.078 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.387/1.387, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009049/0.0009049, allocations: 43.94 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2478, allocations: 49.44 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002394/0.2503, allocations: 1.625 MB / 402.3 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007271/0.251, allocations: 0.5104 MB / 402.8 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.2511, allocations: 4 kB / 402.8 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.136e-05/0.2511, allocations: 11.92 kB / 402.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.164e-05/0.2512, allocations: 31.7 kB / 402.9 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001556/0.2514, allocations: 23.97 kB / 402.9 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.2515, allocations: 107.4 kB / 403 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.2516, allocations: 39.95 kB / 403.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.628e-05/0.2516, allocations: 35.88 kB / 403.1 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.785e-05/0.2517, allocations: 39.84 kB / 403.1 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.2517, allocations: 12 kB / 403.1 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.058e-05/0.2518, allocations: 16 kB / 403.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.748e-05/0.2518, allocations: 15.97 kB / 403.2 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.156e-05/0.2519, allocations: 47.8 kB / 403.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.252, allocations: 99.47 kB / 403.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.252, allocations: 0 / 403.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.252, allocations: 0 / 403.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.838e-06/0.252, allocations: 0 / 403.3 MB, free: 6.254 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.0003773/0.2524, allocations: 383.2 kB / 403.7 MB, free: 5.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.439e-05/0.2525, allocations: 12.03 kB / 403.7 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.2526, allocations: 8.891 kB / 403.7 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.2527, allocations: 176.2 kB / 403.9 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.2527, allocations: 8.375 kB / 403.9 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.2527, allocations: 8.375 kB / 403.9 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001484/0.2529, allocations: 97.19 kB / 404 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.2529, allocations: 0 / 404 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.676e-06/0.2529, allocations: 0 / 404 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.2529, allocations: 4 kB / 404 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.912e-05/0.253, allocations: 63.84 kB / 404.1 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005512/0.2536, allocations: 388.6 kB / 404.4 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.2537, allocations: 78.48 kB / 404.5 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.674e-05/0.2538, allocations: 28.86 kB / 404.5 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/0.2538, allocations: 4 kB / 404.5 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.2538, allocations: 38.56 kB / 404.6 MB, free: 4.824 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.2538, allocations: 0 / 404.6 MB, free: 4.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001735/0.254, allocations: 93.67 kB / 404.7 MB, free: 4.727 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.254, allocations: 51.41 kB / 404.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.455e-05/0.2541, allocations: 109.8 kB / 404.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/0.2541, allocations: 29.7 kB / 404.9 MB, free: 4.512 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.993e-05/0.2542, allocations: 95.98 kB / 405 MB, free: 4.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.2542, allocations: 43.83 kB / 405 MB, free: 4.371 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.247e-05/0.2543, allocations: 33.7 kB / 405 MB, free: 4.332 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.553e-05/0.2544, allocations: 314.8 kB / 405.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.529e-05/0.2544, allocations: 23.98 kB / 405.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.027e-05/0.2545, allocations: 40.56 kB / 405.4 MB, free: 3.945 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.03e-05/0.2546, allocations: 78.45 kB / 405.5 MB, free: 3.859 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.2546, allocations: 0 / 405.5 MB, free: 3.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001435/0.2547, allocations: 101.6 kB / 405.6 MB, free: 3.754 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.978e-06/0.2547, allocations: 7.938 kB / 405.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2547, allocations: 7.984 kB / 405.6 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.2548, allocations: 3.938 kB / 405.6 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.2549, allocations: 20 kB / 405.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.2549, allocations: 0 / 405.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.447e-05/0.2549, allocations: 15.89 kB / 405.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.255, allocations: 8.062 kB / 405.6 MB, free: 3.691 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 6.305e-05/0.255, allocations: 121.8 kB / 405.8 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.2551, allocations: 3.953 kB / 405.8 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.652e-05/0.2551, allocations: 12.38 kB / 405.8 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.2551, allocations: 3.938 kB / 405.8 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.2551, allocations: 0 / 405.8 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.2551, allocations: 0 / 405.8 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001707/0.2553, allocations: 185.6 kB / 406 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.2553, allocations: 0 / 406 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.2554, allocations: 20 kB / 406 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.738e-06/0.2554, allocations: 7.984 kB / 406 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.2554, allocations: 0 / 406 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2554, allocations: 3.938 kB / 406 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.2554, allocations: 0 / 406 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001901/0.2556, allocations: 195.7 kB / 406.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.033e-05/0.2557, allocations: 89.06 kB / 406.3 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.2557, allocations: 0 / 406.3 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.922e-05/0.2558, allocations: 4.25 kB / 406.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.467e-05/0.2558, allocations: 15.98 kB / 406.3 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/0.2558, allocations: 4 kB / 406.3 MB, free: 2.945 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.65e-05/0.2558, allocations: 83.27 kB / 406.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2558, allocations: 3.938 kB / 406.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002408/0.2561, allocations: 27.95 kB / 406.4 MB, free: 2.832 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 7.265e-05/0.2562, allocations: 99.72 kB / 406.5 MB, free: 2.727 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001178/0.2563, allocations: 55.92 kB / 406.6 MB, free: 2.672 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2563, allocations: 4.125 kB / 406.6 MB, free: 2.668 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.601e-05/0.2563, allocations: 31.98 kB / 406.6 MB, free: 2.637 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.2566, allocations: 8 kB / 406.6 MB, free: 2.629 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004964/0.2571, allocations: 310.2 kB / 406.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.2573, allocations: 0.6924 MB / 407.6 MB, free: 1.582 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.979e-05/0.2574, allocations: 7.984 kB / 407.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.319e-05/0.2574, allocations: 11.44 kB / 407.6 MB, free: 1.562 MB / 318.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2574, allocations: 0 / 407.6 MB, free: 1.562 MB / 318.1 MB Notification: Performance of Templates: time 0.002411/0.2598, allocations: 0.6395 MB / 408.3 MB, free: 0.9258 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