Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001647/0.001647, allocations: 177 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.515/1.515, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000754/0.000754, allocations: 108 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003152/0.0003154, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2148, allocations: 47.56 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001431/0.2163, allocations: 1.317 MB / 376.4 MB, free: 44.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006788/0.217, allocations: 498.8 kB / 376.9 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.08e-05/0.217, allocations: 2.219 kB / 376.9 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.62e-05/0.2171, allocations: 8.891 kB / 376.9 MB, free: 43.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.959e-05/0.2171, allocations: 26.92 kB / 376.9 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001839/0.2173, allocations: 24.7 kB / 376.9 MB, free: 43.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001191/0.2174, allocations: 94.16 kB / 377 MB, free: 43.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.2176, allocations: 32.42 kB / 377.1 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.753e-05/0.2176, allocations: 31.52 kB / 377.1 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.259e-05/0.2177, allocations: 29.2 kB / 377.1 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.701e-05/0.2177, allocations: 4.375 kB / 377.1 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.34e-05/0.2178, allocations: 19.31 kB / 377.2 MB, free: 43.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.553e-05/0.2178, allocations: 10.23 kB / 377.2 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.262e-05/0.2179, allocations: 74.36 kB / 377.2 MB, free: 43.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001071/0.218, allocations: 69.19 kB / 377.3 MB, free: 43.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.218, allocations: 0 / 377.3 MB, free: 43.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.218, allocations: 0 / 377.3 MB, free: 43.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.868e-06/0.2181, allocations: 0 / 377.3 MB, free: 43.7 MB / 298.7 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.0003756/0.2184, allocations: 363.8 kB / 377.7 MB, free: 43.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.2185, allocations: 17.69 kB / 377.7 MB, free: 43.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.2186, allocations: 11.25 kB / 377.7 MB, free: 43.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.638e-05/0.2187, allocations: 171.5 kB / 377.9 MB, free: 43.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.2187, allocations: 7.25 kB / 377.9 MB, free: 43.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.764e-05/0.2188, allocations: 6.906 kB / 377.9 MB, free: 43.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001545/0.2189, allocations: 87.58 kB / 378 MB, free: 43.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.2189, allocations: 0 / 378 MB, free: 43.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.219, allocations: 5.094 kB / 378 MB, free: 43.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.219, allocations: 2.812 kB / 378 MB, free: 43.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001034/0.2191, allocations: 53.39 kB / 378 MB, free: 43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006045/0.2197, allocations: 411 kB / 378.4 MB, free: 42.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.2198, allocations: 73.03 kB / 378.5 MB, free: 42.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.142e-05/0.2199, allocations: 36.47 kB / 378.5 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.2199, allocations: 1.094 kB / 378.5 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.444e-05/0.2199, allocations: 39.53 kB / 378.6 MB, free: 42.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.2199, allocations: 0 / 378.6 MB, free: 42.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001923/0.2201, allocations: 83.31 kB / 378.6 MB, free: 42.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/0.2202, allocations: 53.59 kB / 378.7 MB, free: 42.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.075e-05/0.2202, allocations: 108.4 kB / 378.8 MB, free: 42.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.745e-06/0.2202, allocations: 26.67 kB / 378.8 MB, free: 42.24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.661e-05/0.2203, allocations: 107.7 kB / 378.9 MB, free: 42.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.2203, allocations: 31.48 kB / 379 MB, free: 42.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-06/0.2203, allocations: 5.375 kB / 379 MB, free: 42.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.561e-05/0.2204, allocations: 312.5 kB / 379.3 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.735e-05/0.2204, allocations: 22.14 kB / 379.3 MB, free: 41.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.03e-05/0.2205, allocations: 45.38 kB / 379.3 MB, free: 41.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.564e-05/0.2206, allocations: 68.67 kB / 379.4 MB, free: 41.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2206, allocations: 1.188 kB / 379.4 MB, free: 41.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001368/0.2207, allocations: 103.6 kB / 379.5 MB, free: 41.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2207, allocations: 8.75 kB / 379.5 MB, free: 41.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.2207, allocations: 3.984 kB / 379.5 MB, free: 41.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.2208, allocations: 10.08 kB / 379.5 MB, free: 41.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.2209, allocations: 23.59 kB / 379.6 MB, free: 41.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.2209, allocations: 1.156 kB / 379.6 MB, free: 41.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.56e-05/0.221, allocations: 24.67 kB / 379.6 MB, free: 41.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.221, allocations: 2.719 kB / 379.6 MB, free: 41.59 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.444e-05/0.221, allocations: 114.4 kB / 379.7 MB, free: 41.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/0.2211, allocations: 2.219 kB / 379.7 MB, free: 41.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.935e-05/0.2211, allocations: 9.344 kB / 379.7 MB, free: 41.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.2211, allocations: 5.219 kB / 379.7 MB, free: 41.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2211, allocations: 0 / 379.7 MB, free: 41.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2211, allocations: 1.094 kB / 379.7 MB, free: 41.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.2213, allocations: 198.1 kB / 379.9 MB, free: 41.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2213, allocations: 0 / 379.9 MB, free: 41.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.781e-05/0.2214, allocations: 24.89 kB / 379.9 MB, free: 41.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2214, allocations: 0 / 379.9 MB, free: 41.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.2214, allocations: 1.281 kB / 379.9 MB, free: 41.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2214, allocations: 7.875 kB / 379.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2214, allocations: 1 kB / 379.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001775/0.2216, allocations: 191.1 kB / 380.1 MB, free: 41.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.985e-05/0.2216, allocations: 87.05 kB / 380.2 MB, free: 40.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.2216, allocations: 1.156 kB / 380.2 MB, free: 40.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.846e-05/0.2217, allocations: 5 kB / 380.2 MB, free: 40.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.161e-05/0.2217, allocations: 10.23 kB / 380.2 MB, free: 40.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.2217, allocations: 2.188 kB / 380.2 MB, free: 40.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.522e-05/0.2218, allocations: 80 kB / 380.3 MB, free: 40.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2218, allocations: 3.938 kB / 380.3 MB, free: 40.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002163/0.222, allocations: 22.88 kB / 380.3 MB, free: 40.86 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.994e-05/0.2221, allocations: 95.5 kB / 380.4 MB, free: 40.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001211/0.2222, allocations: 62.59 kB / 380.5 MB, free: 40.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2222, allocations: 0 / 380.5 MB, free: 40.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.254e-05/0.2223, allocations: 22.55 kB / 380.5 MB, free: 40.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.2225, allocations: 8.031 kB / 380.5 MB, free: 40.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005198/0.2231, allocations: 416.6 kB / 380.9 MB, free: 40.37 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.2232, allocations: 0.692 MB / 381.6 MB, free: 39.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.836e-05/0.2232, allocations: 11.97 kB / 381.6 MB, free: 39.66 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2232, allocations: 0 / 381.6 MB, free: 39.66 MB / 298.7 MB Notification: Performance of Templates: time 0.002004/0.2253, allocations: 0.9543 MB / 382.6 MB, free: 39.17 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches