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.001594/0.001594, allocations: 107.9 kB / 17.06 MB, free: 6.125 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.001715/0.001715, allocations: 191 kB / 18 MB, free: 5.207 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.351/1.351, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.00101, allocations: 48.02 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2467, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002365/0.2491, allocations: 1.625 MB / 402.3 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007503/0.2499, allocations: 0.526 MB / 402.9 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.008e-05/0.25, allocations: 0 / 402.9 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.42e-05/0.25, allocations: 11.86 kB / 402.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.732e-05/0.2501, allocations: 27.77 kB / 402.9 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001991/0.2503, allocations: 27.91 kB / 402.9 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.2504, allocations: 99.53 kB / 403 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.2506, allocations: 39.95 kB / 403.1 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.934e-05/0.2506, allocations: 35.88 kB / 403.1 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.808e-05/0.2507, allocations: 39.84 kB / 403.1 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.2507, allocations: 8 kB / 403.1 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.427e-05/0.2508, allocations: 12 kB / 403.1 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.037e-05/0.2508, allocations: 19.97 kB / 403.2 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.657e-05/0.2509, allocations: 47.8 kB / 403.2 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.251, allocations: 100.8 kB / 403.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.251, allocations: 0 / 403.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.251, allocations: 4 kB / 403.3 MB, free: 6.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.2511, allocations: 0 / 403.3 MB, free: 6.262 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.000467/0.2515, allocations: 386.4 kB / 403.7 MB, free: 5.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.2516, allocations: 8.031 kB / 403.7 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.2517, allocations: 16.78 kB / 403.7 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.2518, allocations: 164.3 kB / 403.9 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.2518, allocations: 8.375 kB / 403.9 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.2519, allocations: 12.38 kB / 403.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.252, allocations: 89.92 kB / 404 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.2521, allocations: 0 / 404 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.2521, allocations: 4 kB / 404 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.2521, allocations: 7.938 kB / 404 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000106/0.2522, allocations: 55.91 kB / 404.1 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006415/0.2529, allocations: 400.3 kB / 404.4 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001354/0.253, allocations: 78.53 kB / 404.5 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.209e-05/0.2531, allocations: 32.86 kB / 404.6 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.2531, allocations: 0 / 404.6 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.2531, allocations: 42.48 kB / 404.6 MB, free: 4.824 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.2531, allocations: 0 / 404.6 MB, free: 4.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001823/0.2533, allocations: 85.56 kB / 404.7 MB, free: 4.734 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.343e-05/0.2533, allocations: 55.41 kB / 404.7 MB, free: 4.668 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.46e-05/0.2534, allocations: 109.8 kB / 404.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.2534, allocations: 29.7 kB / 404.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.073e-05/0.2535, allocations: 104 kB / 405 MB, free: 4.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.2535, allocations: 27.56 kB / 405 MB, free: 4.383 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.754e-05/0.2536, allocations: 25.7 kB / 405 MB, free: 4.352 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.8e-05/0.2537, allocations: 318.8 kB / 405.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.125e-05/0.2537, allocations: 23.98 kB / 405.4 MB, free: 4.008 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.794e-05/0.2538, allocations: 46.56 kB / 405.4 MB, free: 3.953 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.461e-05/0.2539, allocations: 62.52 kB / 405.5 MB, free: 3.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2539, allocations: 0 / 405.5 MB, free: 3.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001417/0.254, allocations: 113.4 kB / 405.6 MB, free: 3.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.254, allocations: 11.98 kB / 405.6 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.676e-06/0.254, allocations: 0 / 405.6 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.2541, allocations: 8 kB / 405.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.2542, allocations: 20 kB / 405.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.2542, allocations: 3.938 kB / 405.6 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.151e-05/0.2543, allocations: 7.906 kB / 405.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.2543, allocations: 11.98 kB / 405.6 MB, free: 3.703 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.436e-05/0.2544, allocations: 113.8 kB / 405.7 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.431e-05/0.2544, allocations: 0 / 405.7 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.546e-05/0.2544, allocations: 12.38 kB / 405.8 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.2544, allocations: 3.938 kB / 405.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2545, allocations: 4 kB / 405.8 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2545, allocations: 0 / 405.8 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/0.2547, allocations: 189.8 kB / 406 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.2547, allocations: 8 kB / 406 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.772e-05/0.2548, allocations: 15.98 kB / 406 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2548, allocations: 4 kB / 406 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.2548, allocations: 0 / 406 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2548, allocations: 7.875 kB / 406 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2548, allocations: 0 / 406 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001918/0.255, allocations: 199.4 kB / 406.2 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.336e-05/0.2551, allocations: 85.05 kB / 406.3 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.309e-05/0.2551, allocations: 0 / 406.3 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.939e-05/0.2551, allocations: 3.938 kB / 406.3 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.603e-05/0.2552, allocations: 4 kB / 406.3 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.2552, allocations: 3.938 kB / 406.3 MB, free: 2.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.061e-05/0.2552, allocations: 87.27 kB / 406.4 MB, free: 2.883 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2552, allocations: 3.938 kB / 406.4 MB, free: 2.879 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002343/0.2555, allocations: 24 kB / 406.4 MB, free: 2.855 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 8.942e-05/0.2555, allocations: 107.7 kB / 406.5 MB, free: 2.742 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001304/0.2557, allocations: 51.98 kB / 406.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2557, allocations: 0 / 406.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.501e-05/0.2557, allocations: 27.92 kB / 406.6 MB, free: 2.664 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.256, allocations: 8 kB / 406.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005711/0.2566, allocations: 326.6 kB / 406.9 MB, free: 2.312 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.2568, allocations: 0.6963 MB / 407.6 MB, free: 1.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.056e-05/0.2569, allocations: 4 kB / 407.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.446e-05/0.2569, allocations: 11.44 kB / 407.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2569, allocations: 4 kB / 407.6 MB, free: 1.57 MB / 318.1 MB Notification: Performance of Templates: time 0.002513/0.2594, allocations: 0.6298 MB / 408.2 MB, free: 0.9492 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