Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001692/0.001692, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009845/0.0009846, allocations: 102.6 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 47.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2064, allocations: 50.45 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002219/0.2086, allocations: 1.692 MB / 408.7 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006622/0.2093, allocations: 0.5487 MB / 409.3 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.34e-05/0.2094, allocations: 0 / 409.3 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.647e-05/0.2094, allocations: 11.92 kB / 409.3 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.463e-05/0.2095, allocations: 27.3 kB / 409.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001579/0.2096, allocations: 31.91 kB / 409.4 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.344e-05/0.2097, allocations: 91.59 kB / 409.4 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.2098, allocations: 23.98 kB / 409.5 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.418e-05/0.2099, allocations: 35.86 kB / 409.5 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.809e-05/0.2099, allocations: 43.83 kB / 409.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.446e-05/0.21, allocations: 8 kB / 409.6 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.763e-05/0.21, allocations: 19.94 kB / 409.6 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.554e-05/0.2101, allocations: 15.94 kB / 409.6 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.674e-05/0.2101, allocations: 39.86 kB / 409.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.2102, allocations: 93.22 kB / 409.7 MB, free: 25.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2102, allocations: 0 / 409.7 MB, free: 25.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.2102, allocations: 0 / 409.7 MB, free: 25.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.2102, allocations: 0 / 409.7 MB, free: 25.15 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.0003426/0.2106, allocations: 387.4 kB / 410.1 MB, free: 24.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.2106, allocations: 8.031 kB / 410.1 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.2107, allocations: 20.78 kB / 410.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.167e-05/0.2108, allocations: 168.3 kB / 410.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.455e-06/0.2108, allocations: 4.375 kB / 410.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.637e-05/0.2109, allocations: 12.38 kB / 410.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.211, allocations: 85.92 kB / 410.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.211, allocations: 0 / 410.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.211, allocations: 8 kB / 410.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.211, allocations: 0 / 410.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.714e-05/0.2111, allocations: 54.36 kB / 410.5 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004994/0.2116, allocations: 408.4 kB / 410.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.573e-05/0.2118, allocations: 66.56 kB / 410.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.201e-05/0.2118, allocations: 32.84 kB / 410.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.2118, allocations: 8 kB / 411 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.322e-05/0.2118, allocations: 38.5 kB / 411 MB, free: 23.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.153e-06/0.2119, allocations: 0 / 411 MB, free: 23.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001663/0.212, allocations: 89.67 kB / 411.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.13e-05/0.2121, allocations: 55.41 kB / 411.1 MB, free: 23.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.926e-05/0.2121, allocations: 109.8 kB / 411.2 MB, free: 23.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.133e-06/0.2121, allocations: 25.7 kB / 411.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.336e-05/0.2122, allocations: 99.94 kB / 411.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.65e-05/0.2122, allocations: 31.56 kB / 411.4 MB, free: 23.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.2122, allocations: 29.7 kB / 411.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.038e-05/0.2123, allocations: 314.8 kB / 411.7 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.505e-05/0.2123, allocations: 19.98 kB / 411.8 MB, free: 22.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.411e-05/0.2124, allocations: 50.5 kB / 411.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.936e-05/0.2124, allocations: 66.52 kB / 411.9 MB, free: 22.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2124, allocations: 256 / 411.9 MB, free: 22.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000119/0.2126, allocations: 106.4 kB / 412 MB, free: 22.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.2126, allocations: 8 kB / 412 MB, free: 22.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.2126, allocations: 4 kB / 412 MB, free: 22.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2126, allocations: 3.938 kB / 412 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.2127, allocations: 31.92 kB / 412 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.2127, allocations: 0 / 412 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.312e-05/0.2128, allocations: 19.91 kB / 412 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-06/0.2128, allocations: 0 / 412 MB, free: 22.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.809e-05/0.2129, allocations: 123.3 kB / 412.2 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.2129, allocations: 7.906 kB / 412.2 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.588e-05/0.2129, allocations: 8.375 kB / 412.2 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2129, allocations: 3.938 kB / 412.2 MB, free: 22.44 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2129, allocations: 4 kB / 412.2 MB, free: 22.44 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2129, allocations: 3.984 kB / 412.2 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.2131, allocations: 181.6 kB / 412.4 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2131, allocations: 4 kB / 412.4 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.195e-05/0.2132, allocations: 23.92 kB / 412.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2132, allocations: 0 / 412.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.2132, allocations: 4 kB / 412.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.2132, allocations: 7.938 kB / 412.4 MB, free: 22.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.2132, allocations: 3.938 kB / 412.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007514/0.214, allocations: 1.176 MB / 413.6 MB, free: 20.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.578e-05/0.214, allocations: 88.89 kB / 413.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.218e-06/0.214, allocations: 4.031 kB / 413.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.957e-05/0.2141, allocations: 8.047 kB / 413.7 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.803e-05/0.2141, allocations: 12.06 kB / 413.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.517e-06/0.2141, allocations: 0 / 413.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.09e-05/0.2141, allocations: 83.27 kB / 413.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2141, allocations: 0 / 413.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003012/0.2144, allocations: 32 kB / 413.8 MB, free: 20.61 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.877e-05/0.2145, allocations: 95.19 kB / 413.9 MB, free: 20.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001008/0.2146, allocations: 62.7 kB / 414 MB, free: 20.44 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2146, allocations: 0 / 414 MB, free: 20.44 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.593e-05/0.2147, allocations: 32.05 kB / 414 MB, free: 20.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.2149, allocations: 15.3 kB / 414 MB, free: 20.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005223/0.2155, allocations: 475 kB / 414.5 MB, free: 19.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.221e-05/0.2156, allocations: 0.7004 MB / 415.2 MB, free: 19.17 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.545e-05/0.2156, allocations: 7.938 kB / 415.2 MB, free: 19.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.131e-05/0.2156, allocations: 11.44 kB / 415.2 MB, free: 19.15 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.2157, allocations: 0 / 415.2 MB, free: 19.15 MB / 298.7 MB Notification: Performance of Templates: time 0.002151/0.2178, allocations: 0.707 MB / 415.9 MB, free: 18.45 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches