Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 179.6 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009283/0.0009279, allocations: 91.44 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003052/0.0003053, allocations: 7.938 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2813, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.3881, allocations: 80.33 MB / 481.8 MB, free: 180 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.3884, allocations: 75.97 kB / 481.9 MB, free: 104 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02381/0.4122, allocations: 9.409 MB / 491.3 MB, free: 6.625 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4123, allocations: 4 kB / 491.3 MB, free: 6.621 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.708e-05/0.4123, allocations: 15.94 kB / 491.3 MB, free: 6.605 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001143/0.4135, allocations: 0.7532 MB / 492.1 MB, free: 5.793 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.4135, allocations: 8.031 kB / 492.1 MB, free: 5.785 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.4136, allocations: 63.25 kB / 492.1 MB, free: 5.723 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005295/0.4142, allocations: 373.7 kB / 492.5 MB, free: 5.316 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.883e-05/0.4143, allocations: 58.3 kB / 492.6 MB, free: 5.254 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.463e-05/0.4143, allocations: 35.98 kB / 492.6 MB, free: 5.219 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000661/0.415, allocations: 449.4 kB / 493 MB, free: 4.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.415, allocations: 0 / 493 MB, free: 4.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.094e-05/0.4151, allocations: 23.94 kB / 493.1 MB, free: 4.707 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.4151, allocations: 8 kB / 493.1 MB, free: 4.699 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005681/0.4157, allocations: 298.4 kB / 493.4 MB, free: 4.402 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.4176, allocations: 1.248 MB / 494.6 MB, free: 3.074 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.4187, allocations: 454.9 kB / 495.1 MB, free: 2.605 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.583e-05/0.4188, allocations: 8.281 kB / 495.1 MB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.4188, allocations: 38.84 kB / 495.1 MB, free: 2.551 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.423e-06/0.4188, allocations: 4 kB / 495.1 MB, free: 2.547 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.00118/0.42, allocations: 0.6215 MB / 495.7 MB, free: 1.879 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001908/0.4202, allocations: 452.9 kB / 496.2 MB, free: 1.332 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004296/0.4207, allocations: 397.1 kB / 496.6 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/0.4207, allocations: 33.7 kB / 496.6 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.4209, allocations: 228.5 kB / 496.8 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.577e-05/0.421, allocations: 114.3 kB / 496.9 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.692e-05/0.421, allocations: 8 kB / 496.9 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.4211, allocations: 358.9 kB / 497.3 MB, free: 200 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002273/0.4214, allocations: 119.7 kB / 497.4 MB, free: 80 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003447/0.4217, allocations: 250.9 kB / 497.6 MB, free: 15.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002833/0.422, allocations: 181.9 kB / 497.8 MB, free: 15.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.422, allocations: 0 / 497.8 MB, free: 15.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006939/0.4227, allocations: 426.3 kB / 498.2 MB, free: 15.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.523e-05/0.4228, allocations: 45.66 kB / 498.3 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.4228, allocations: 0 / 498.3 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001564/0.423, allocations: 45.7 kB / 498.3 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003291/0.4233, allocations: 71.89 kB / 498.4 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.4256, allocations: 2.767 MB / 0.4894 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/0.4259, allocations: 43.72 kB / 0.4895 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.089e-05/0.4259, allocations: 12 kB / 0.4895 GB, free: 11.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002058/0.4262, allocations: 170.4 kB / 0.4896 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.089e-05/0.4262, allocations: 47.44 kB / 0.4897 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.4264, allocations: 60.69 kB / 0.4897 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4264, allocations: 7.938 kB / 0.4897 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.4264, allocations: 0 / 0.4897 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006946/0.4271, allocations: 0.6609 MB / 0.4904 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.4284, allocations: 0.9198 MB / 0.4913 GB, free: 9.863 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.4285, allocations: 0 / 0.4913 GB, free: 9.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003661/0.4288, allocations: 71.89 kB / 0.4914 GB, free: 9.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.4289, allocations: 4 kB / 0.4914 GB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.4289, allocations: 8 kB / 0.4914 GB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4289, allocations: 4 kB / 0.4914 GB, free: 9.777 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4289, allocations: 0 / 0.4914 GB, free: 9.777 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008282/0.4297, allocations: 0.5495 MB / 0.4919 GB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.4299, allocations: 160.5 kB / 0.4921 GB, free: 9.035 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.126e-05/0.43, allocations: 12.36 kB / 0.4921 GB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002472/0.4302, allocations: 19.94 kB / 0.4921 GB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.643e-05/0.4303, allocations: 15.97 kB / 0.4921 GB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.4303, allocations: 12 kB / 0.4921 GB, free: 8.977 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003389/0.4307, allocations: 319.1 kB / 0.4924 GB, free: 8.668 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4307, allocations: 3.938 kB / 0.4924 GB, free: 8.664 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004352/0.4311, allocations: 139.9 kB / 0.4926 GB, free: 8.527 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.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 (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001838/0.4313, allocations: 127.2 kB / 0.4927 GB, free: 8.391 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000929/0.4322, allocations: 0.5865 MB / 0.4933 GB, free: 7.766 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.4323, allocations: 4 kB / 0.4933 GB, free: 7.762 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002445/0.4325, allocations: 123.9 kB / 0.4934 GB, free: 7.641 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005673/0.4331, allocations: 124.7 kB / 0.4935 GB, free: 7.523 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.4348, allocations: 1.081 MB / 0.4946 GB, free: 6.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.4352, allocations: 0.8276 MB / 0.4954 GB, free: 5.555 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002106/0.4354, allocations: 60.23 kB / 0.4954 GB, free: 5.496 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.4355, allocations: 47.42 kB / 0.4955 GB, free: 5.449 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4355, allocations: 0 / 0.4955 GB, free: 5.449 MB / 378.7 MB Notification: Performance of Templates: time 0.208/0.6435, allocations: 7.281 MB / 0.5026 GB, free: 97.21 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/SimpleCooling/SimpleCooling.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches