Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 215.8 kB / 23.73 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.452/1.452, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 63.98 kB / 378.2 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2309, allocations: 53.36 MB / 431.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002734/0.2337, allocations: 1.597 MB / 433.2 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008661/0.2345, allocations: 0.522 MB / 433.7 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.597e-05/0.2346, allocations: 4 kB / 433.7 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.417e-05/0.2346, allocations: 11.92 kB / 433.7 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.024e-05/0.2347, allocations: 27.7 kB / 433.7 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002184/0.2349, allocations: 27.97 kB / 433.7 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001466/0.2351, allocations: 103.5 kB / 433.8 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.2352, allocations: 23.97 kB / 433.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.571e-05/0.2353, allocations: 39.92 kB / 433.9 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.61e-05/0.2354, allocations: 31.84 kB / 433.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.925e-05/0.2354, allocations: 8 kB / 434 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.797e-05/0.2355, allocations: 12 kB / 434 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.908e-05/0.2355, allocations: 27.91 kB / 434 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.09e-05/0.2355, allocations: 39.86 kB / 434 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001786/0.2357, allocations: 102.1 kB / 434.1 MB, free: 4.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2357, allocations: 0 / 434.1 MB, free: 4.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2357, allocations: 0 / 434.1 MB, free: 4.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.2357, allocations: 0 / 434.1 MB, free: 4.32 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.0004857/0.2362, allocations: 301.1 kB / 434.4 MB, free: 4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.2363, allocations: 8.031 kB / 434.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.2364, allocations: 16.88 kB / 434.4 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.2365, allocations: 122.4 kB / 434.6 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.2365, allocations: 8.375 kB / 434.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.2366, allocations: 8.375 kB / 434.6 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.2367, allocations: 85.97 kB / 434.7 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.2367, allocations: 4 kB / 434.7 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.2368, allocations: 0 / 434.7 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2368, allocations: 4 kB / 434.7 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.2369, allocations: 55.91 kB / 434.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006266/0.2375, allocations: 324.2 kB / 435 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001357/0.2376, allocations: 70.5 kB / 435.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.579e-05/0.2377, allocations: 36.83 kB / 435.1 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.2377, allocations: 3.938 kB / 435.2 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.2377, allocations: 34.56 kB / 435.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.2377, allocations: 0 / 435.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002099/0.2379, allocations: 89.61 kB / 435.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.708e-05/0.238, allocations: 55.34 kB / 435.3 MB, free: 2.992 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.636e-05/0.2381, allocations: 114.1 kB / 435.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.2381, allocations: 25.7 kB / 435.5 MB, free: 2.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.218e-05/0.2382, allocations: 104 kB / 435.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.753e-05/0.2382, allocations: 35.73 kB / 435.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.384e-05/0.2382, allocations: 25.72 kB / 435.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.2384, allocations: 318.8 kB / 435.9 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.525e-05/0.2384, allocations: 27.92 kB / 436 MB, free: 2.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.965e-05/0.2385, allocations: 42.56 kB / 436 MB, free: 2.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000103/0.2386, allocations: 70.45 kB / 436.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2386, allocations: 4 kB / 436.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001575/0.2387, allocations: 101.5 kB / 436.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2388, allocations: 12.06 kB / 436.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.2388, allocations: 0 / 436.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.2388, allocations: 0 / 436.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.2389, allocations: 23.98 kB / 436.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.2389, allocations: 7.938 kB / 436.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.465e-05/0.2389, allocations: 11.89 kB / 436.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.239, allocations: 4 kB / 436.2 MB, free: 2.023 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 0.0001602/0.2391, allocations: 117.8 kB / 436.4 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.902e-05/0.2391, allocations: 7.984 kB / 436.4 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.169e-05/0.2392, allocations: 8.375 kB / 436.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.2392, allocations: 4 kB / 436.4 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2392, allocations: 3.938 kB / 436.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2392, allocations: 4 kB / 436.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002027/0.2394, allocations: 125.3 kB / 436.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.2394, allocations: 0 / 436.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.992e-05/0.2395, allocations: 19.98 kB / 436.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2395, allocations: 0 / 436.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.2395, allocations: 4 kB / 436.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.2395, allocations: 0 / 436.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2395, allocations: 0 / 436.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002299/0.2397, allocations: 203.4 kB / 436.7 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.373e-05/0.2397, allocations: 11.92 kB / 436.7 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.2398, allocations: 0 / 436.7 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.623e-05/0.2398, allocations: 256 / 436.7 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.705e-05/0.2398, allocations: 15.92 kB / 436.8 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.2398, allocations: 4 kB / 436.8 MB, free: 1.445 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.504e-05/0.2399, allocations: 79.28 kB / 436.8 MB, free: 1.367 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2399, allocations: 0 / 436.8 MB, free: 1.367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002364/0.2401, allocations: 24 kB / 436.9 MB, free: 1.344 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 9.878e-05/0.2402, allocations: 95.23 kB / 436.9 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001403/0.2404, allocations: 63.92 kB / 437 MB, free: 1.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.2404, allocations: 4 kB / 437 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.452e-05/0.2404, allocations: 19.94 kB / 437 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.2407, allocations: 11.98 kB / 437 MB, free: 1.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006246/0.2413, allocations: 323.2 kB / 437.4 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.646e-05/0.2414, allocations: 87.12 kB / 437.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.414e-05/0.2414, allocations: 7.953 kB / 437.5 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.808e-05/0.2414, allocations: 11.44 kB / 437.5 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2414, allocations: 0 / 437.5 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of Templates: time 0.003185/0.2446, allocations: 0.6875 MB / 438.2 MB, free: 4 kB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.320842199027538]