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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001037/0.001043, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 59.89 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2479, allocations: 50.55 MB / 409.2 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002413/0.2504, allocations: 1.635 MB / 410.9 MB, free: 144 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008763/0.2513, allocations: 0.5378 MB / 411.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.092e-05/0.2513, allocations: 0 / 411.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.931e-05/0.2514, allocations: 15.86 kB / 411.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.212e-05/0.2515, allocations: 31.7 kB / 411.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002256/0.2517, allocations: 27.91 kB / 411.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001234/0.2518, allocations: 95.59 kB / 411.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.252, allocations: 47.89 kB / 411.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.789e-05/0.252, allocations: 35.86 kB / 411.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.509e-05/0.2521, allocations: 39.84 kB / 411.7 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.2522, allocations: 8 kB / 411.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.417e-05/0.2523, allocations: 16 kB / 411.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.138e-05/0.2523, allocations: 19.97 kB / 411.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.689e-05/0.2523, allocations: 43.81 kB / 411.8 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.2525, allocations: 92.94 kB / 411.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2525, allocations: 0 / 411.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2525, allocations: 4 kB / 411.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.2525, allocations: 4 kB / 411.9 MB, free: 15.12 MB / 334.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.0004369/0.253, allocations: 383.3 kB / 412.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.253, allocations: 8.031 kB / 412.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.2531, allocations: 12.84 kB / 412.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.2533, allocations: 176.2 kB / 412.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.2533, allocations: 4.375 kB / 412.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.537e-05/0.2533, allocations: 8.375 kB / 412.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.2535, allocations: 92.39 kB / 412.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.2535, allocations: 3.906 kB / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.2535, allocations: 4 kB / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.2535, allocations: 0 / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001012/0.2536, allocations: 47.97 kB / 412.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000615/0.2543, allocations: 408.4 kB / 413 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.2544, allocations: 74.5 kB / 413.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.949e-05/0.2545, allocations: 32.84 kB / 413.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.075e-05/0.2545, allocations: 0 / 413.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.2545, allocations: 34.56 kB / 413.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.2545, allocations: 0 / 413.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001897/0.2547, allocations: 89.8 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.2547, allocations: 51.41 kB / 413.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.838e-05/0.2548, allocations: 113.9 kB / 413.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.2548, allocations: 25.7 kB / 413.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.996e-05/0.2549, allocations: 103.9 kB / 413.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.2549, allocations: 35.48 kB / 413.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/0.255, allocations: 25.72 kB / 413.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.387e-05/0.2551, allocations: 318.8 kB / 413.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.991e-05/0.2551, allocations: 20 kB / 413.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.302e-05/0.2552, allocations: 46.56 kB / 413.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.807e-05/0.2553, allocations: 66.56 kB / 414 MB, free: 12.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2553, allocations: 0 / 414 MB, free: 12.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000143/0.2554, allocations: 113.4 kB / 414.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.2554, allocations: 6.656 kB / 414.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.2554, allocations: 0 / 414.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.2555, allocations: 8 kB / 414.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.2556, allocations: 24.23 kB / 414.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.2556, allocations: 8.062 kB / 414.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.411e-05/0.2557, allocations: 11.84 kB / 414.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.2557, allocations: 4 kB / 414.2 MB, free: 12.57 MB / 334.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.839e-05/0.2558, allocations: 125.7 kB / 414.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.703e-05/0.2558, allocations: 4 kB / 414.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.791e-05/0.2558, allocations: 8.375 kB / 414.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.2558, allocations: 7.938 kB / 414.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2558, allocations: 4 kB / 414.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2558, allocations: 3.984 kB / 414.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/0.256, allocations: 181.6 kB / 414.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.256, allocations: 0 / 414.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.2561, allocations: 23.97 kB / 414.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.2561, allocations: 0 / 414.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.2562, allocations: 4 kB / 414.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.2562, allocations: 3.938 kB / 414.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.2562, allocations: 4 kB / 414.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001741/0.2564, allocations: 199.4 kB / 414.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.335e-05/0.2564, allocations: 84.95 kB / 414.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.2564, allocations: 4 kB / 414.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.197e-05/0.2565, allocations: 3.938 kB / 414.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.45e-05/0.2565, allocations: 7.984 kB / 414.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.2565, allocations: 4 kB / 414.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.688e-05/0.2566, allocations: 83.28 kB / 414.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2566, allocations: 3.938 kB / 414.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002389/0.2568, allocations: 20.06 kB / 414.9 MB, free: 11.71 MB / 334.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 8.094e-05/0.2569, allocations: 103.2 kB / 415 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001266/0.257, allocations: 51.92 kB / 415.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.257, allocations: 4 kB / 415.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.35e-05/0.2571, allocations: 20 kB / 415.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.2574, allocations: 12.25 kB / 415.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005243/0.2579, allocations: 314.9 kB / 415.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.2581, allocations: 0.6961 MB / 416.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.895e-05/0.2581, allocations: 7.953 kB / 416.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.305e-05/0.2582, allocations: 15.44 kB / 416.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2582, allocations: 0 / 416.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of Templates: time 0.002526/0.2607, allocations: 0.6396 MB / 416.8 MB, free: 9.805 MB / 334.1 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/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_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches