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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 84.66 kB / 20.96 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 149.1 kB / 24.26 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] 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=1000,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=1000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.29e-05/3.451e-05, allocations: 2.312 kB / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002951/0.002985, allocations: 1.588 MB / 268.9 MB, free: 5.156 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.004049, allocations: 0.5025 MB / 269.4 MB, free: 4.648 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.056e-05/0.004099, allocations: 0 / 269.4 MB, free: 4.648 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.916e-05/0.004158, allocations: 15.86 kB / 269.4 MB, free: 4.633 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.004264, allocations: 27.72 kB / 269.4 MB, free: 4.605 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000241/0.004505, allocations: 35.89 kB / 269.5 MB, free: 4.57 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.004678, allocations: 103.5 kB / 269.6 MB, free: 4.469 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.004806, allocations: 23.98 kB / 269.6 MB, free: 4.445 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.445e-05/0.0049, allocations: 55.88 kB / 269.6 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.083e-05/0.004991, allocations: 23.98 kB / 269.7 MB, free: 4.367 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.005014, allocations: 8 kB / 269.7 MB, free: 4.359 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.077e-05/0.005094, allocations: 15.92 kB / 269.7 MB, free: 4.344 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.979e-05/0.005124, allocations: 15.98 kB / 269.7 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.844e-05/0.005183, allocations: 35.91 kB / 269.7 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.005374, allocations: 111.6 kB / 269.8 MB, free: 4.184 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.005377, allocations: 0 / 269.8 MB, free: 4.184 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.005378, allocations: 4 kB / 269.9 MB, free: 4.18 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.005382, allocations: 0 / 269.9 MB, free: 4.18 MB / 250.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.000558/0.00594, allocations: 306 kB / 270.2 MB, free: 3.852 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.005979, allocations: 8.922 kB / 270.2 MB, free: 3.844 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.006144, allocations: 28.81 kB / 270.2 MB, free: 3.816 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.006271, allocations: 105.7 kB / 270.3 MB, free: 3.688 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.006296, allocations: 12.33 kB / 270.3 MB, free: 3.676 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.523e-05/0.006331, allocations: 12.31 kB / 270.3 MB, free: 3.664 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.00652, allocations: 78.23 kB / 270.4 MB, free: 3.582 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.006549, allocations: 12.17 kB / 270.4 MB, free: 3.57 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.006565, allocations: 4.375 kB / 270.4 MB, free: 3.566 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.006572, allocations: 3.938 kB / 270.4 MB, free: 3.562 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.006698, allocations: 51.97 kB / 270.5 MB, free: 3.512 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007218/0.00742, allocations: 324.2 kB / 270.8 MB, free: 3.164 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001619/0.007581, allocations: 66.5 kB / 270.8 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.271e-05/0.007644, allocations: 32.84 kB / 270.9 MB, free: 3.055 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.007658, allocations: 0 / 270.9 MB, free: 3.055 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/0.0077, allocations: 46.56 kB / 270.9 MB, free: 3 MB / 250.7 MB Notification: Performance of pre-optimization done (n=8): time 8.62e-07/0.007701, allocations: 0 / 270.9 MB, free: 3 MB / 250.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002549/0.007955, allocations: 85.67 kB / 271 MB, free: 2.91 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.008003, allocations: 51.41 kB / 271.1 MB, free: 2.848 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.008115, allocations: 102 kB / 271.2 MB, free: 2.738 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.008141, allocations: 29.7 kB / 271.2 MB, free: 2.703 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.797e-05/0.008229, allocations: 103.9 kB / 271.3 MB, free: 2.598 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.075e-05/0.00827, allocations: 43.81 kB / 271.3 MB, free: 2.555 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.255e-05/0.008323, allocations: 21.72 kB / 271.4 MB, free: 2.527 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.008519, allocations: 322.8 kB / 271.7 MB, free: 2.203 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.517e-05/0.008564, allocations: 23.94 kB / 271.7 MB, free: 2.18 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.131e-05/0.008635, allocations: 46.56 kB / 271.7 MB, free: 2.125 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.00875, allocations: 70.5 kB / 271.8 MB, free: 2.047 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.008752, allocations: 0 / 271.8 MB, free: 2.047 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001857/0.008938, allocations: 113.5 kB / 271.9 MB, free: 1.93 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.008954, allocations: 4 kB / 271.9 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.008958, allocations: 0 / 271.9 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.008979, allocations: 4 kB / 271.9 MB, free: 1.922 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.009109, allocations: 23.98 kB / 271.9 MB, free: 1.898 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.009114, allocations: 4.062 kB / 271.9 MB, free: 1.895 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.093e-05/0.009165, allocations: 15.92 kB / 272 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.009177, allocations: 7.875 kB / 272 MB, free: 1.871 MB / 250.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 0.0001084/0.009286, allocations: 117.8 kB / 272.1 MB, free: 1.746 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.534e-05/0.009321, allocations: 15.95 kB / 272.1 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.837e-05/0.009369, allocations: 12.42 kB / 272.1 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.009371, allocations: 0 / 272.1 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.009376, allocations: 256 / 272.1 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.009378, allocations: 0 / 272.1 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002195/0.009598, allocations: 129.2 kB / 272.2 MB, free: 1.559 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.009599, allocations: 4 kB / 272.2 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.00971, allocations: 19.98 kB / 272.3 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.009712, allocations: 0 / 272.3 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.009725, allocations: 4 kB / 272.3 MB, free: 1.531 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.009726, allocations: 0 / 272.3 MB, free: 1.531 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.009729, allocations: 4 kB / 272.3 MB, free: 1.527 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002657/0.009995, allocations: 199.3 kB / 272.5 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.689e-05/0.01001, allocations: 7.984 kB / 272.5 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.01003, allocations: 4 kB / 272.5 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.961e-05/0.01009, allocations: 0 / 272.5 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.37e-05/0.01011, allocations: 7.984 kB / 272.5 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.01012, allocations: 4.062 kB / 272.5 MB, free: 1.293 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.044e-05/0.01018, allocations: 83.28 kB / 272.6 MB, free: 1.211 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01018, allocations: 0 / 272.6 MB, free: 1.211 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002666/0.01044, allocations: 27.94 kB / 272.6 MB, free: 1.184 MB / 250.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 0.0001521/0.0106, allocations: 95.25 kB / 272.7 MB, free: 1.082 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001758/0.01077, allocations: 59.84 kB / 272.8 MB, free: 1.023 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01077, allocations: 0 / 272.8 MB, free: 1.023 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.994e-05/0.01081, allocations: 19.94 kB / 272.8 MB, free: 1.004 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.01115, allocations: 12.67 kB / 272.8 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006571/0.01181, allocations: 264.7 kB / 273 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.195e-05/0.0119, allocations: 79.31 kB / 273.1 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.52e-05/0.01193, allocations: 7.953 kB / 273.1 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.112e-05/0.01197, allocations: 12.5 kB / 273.1 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01197, allocations: 3.938 kB / 273.1 MB, free: 0.582 MB / 250.7 MB Notification: Performance of Templates: time 0.003505/0.01548, allocations: 0.6152 MB / 273.8 MB, free: 15.97 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.042045981972478]