Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001587/0.001588, allocations: 191.5 kB / 8.534 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 225.5 MB / 234.4 MB, free: 3.43 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001185/0.001185, allocations: 92.66 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1973/0.1973, allocations: 45.14 MB / 383.3 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.741e-06/5.771e-06, allocations: 0 / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1151, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.231/6.346, allocations: 2.787 GB / 3.291 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/6.346, allocations: 85.73 kB / 3.291 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.79/8.136, allocations: 440.6 MB / 3.722 GB, free: 58.48 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001112/8.136, allocations: 19.97 kB / 3.722 GB, free: 58.48 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.01004/8.147, allocations: 1.771 MB / 3.723 GB, free: 57.49 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.494e-05/8.147, allocations: 11.06 kB / 3.723 GB, free: 57.49 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003413/8.15, allocations: 351 kB / 3.724 GB, free: 57.43 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001896/8.152, allocations: 0.5659 MB / 3.724 GB, free: 57.06 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.537e-05/8.152, allocations: 27.97 kB / 3.724 GB, free: 57.05 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002234/8.152, allocations: 31.22 kB / 3.724 GB, free: 57.05 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00137/8.154, allocations: 0.5477 MB / 3.725 GB, free: 56.86 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/8.155, allocations: 0.6633 MB / 3.725 GB, free: 56.49 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.916e-05/8.156, allocations: 3.375 kB / 3.725 GB, free: 56.49 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/8.156, allocations: 3.562 kB / 3.725 GB, free: 56.49 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.362e-05/8.156, allocations: 20.62 kB / 3.725 GB, free: 56.48 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02569/8.181, allocations: 12.85 MB / 3.738 GB, free: 47.23 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007129/8.182, allocations: 330.1 kB / 3.738 GB, free: 47.09 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003972/8.183, allocations: 230.7 kB / 3.739 GB, free: 47 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.124/8.307, allocations: 63.58 MB / 3.801 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.609e-05/8.307, allocations: 39 kB / 3.801 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=47): time 5.24e-06/8.307, allocations: 0 / 3.801 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=51): time 0.006916/8.314, allocations: 1.846 MB / 3.802 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.575e-05/8.314, allocations: 111.7 kB / 3.803 GB, free: 12.44 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005341/8.314, allocations: 376.7 kB / 3.803 GB, free: 12.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.78e-05/8.314, allocations: 25.7 kB / 3.803 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/8.315, allocations: 277 kB / 3.803 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/8.315, allocations: 171 kB / 3.803 GB, free: 11.67 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/8.315, allocations: 0 / 3.803 GB, free: 11.67 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001882/8.315, allocations: 370.7 kB / 3.804 GB, free: 11.31 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003235/8.315, allocations: 211.9 kB / 3.804 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003957/8.316, allocations: 381.4 kB / 3.804 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/8.317, allocations: 349.9 kB / 3.805 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/8.317, allocations: 4 kB / 3.805 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003332/8.32, allocations: 1.127 MB / 3.806 GB, free: 9.469 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009057/8.321, allocations: 1.751 MB / 3.807 GB, free: 7.594 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/8.321, allocations: 4 kB / 3.807 GB, free: 7.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/8.323, allocations: 299.7 kB / 3.808 GB, free: 7.363 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005244/8.323, allocations: 143.3 kB / 3.808 GB, free: 7.246 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002012/8.325, allocations: 1.034 MB / 3.809 GB, free: 6.258 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009668/8.326, allocations: 91.97 kB / 3.809 GB, free: 6.188 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.651e-05/8.326, allocations: 35.31 kB / 3.809 GB, free: 6.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/8.326, allocations: 4 kB / 3.809 GB, free: 6.156 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002069/8.328, allocations: 0.74 MB / 3.81 GB, free: 5.508 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/8.328, allocations: 4 kB / 3.81 GB, free: 5.504 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00133/8.33, allocations: 294.5 kB / 3.81 GB, free: 5.281 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005182/8.33, allocations: 142 kB / 3.81 GB, free: 5.164 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001566/8.332, allocations: 0.9313 MB / 3.811 GB, free: 4.266 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008768/8.333, allocations: 82.53 kB / 3.811 GB, free: 4.203 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.086e-05/8.333, allocations: 35.83 kB / 3.811 GB, free: 4.172 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 20} Notification: Performance of prepare postOptimizeDAE: time 0.000305/8.333, allocations: 120.7 kB / 3.811 GB, free: 4.047 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008424/8.334, allocations: 276 kB / 3.812 GB, free: 3.848 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003406/8.337, allocations: 2.589 MB / 3.814 GB, free: 1.535 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.546e-05/8.337, allocations: 28.28 kB / 3.814 GB, free: 1.52 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/8.337, allocations: 3.906 kB / 3.814 GB, free: 1.516 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/8.337, allocations: 7.047 kB / 3.814 GB, free: 1.512 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005758/8.343, allocations: 3.465 MB / 3.817 GB, free: 14.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/8.343, allocations: 0 / 3.817 GB, free: 14.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008167/8.344, allocations: 156.6 kB / 3.818 GB, free: 14.37 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000292/8.344, allocations: 72.61 kB / 3.818 GB, free: 14.31 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.731e-05/8.344, allocations: 11.56 kB / 3.818 GB, free: 14.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009553/8.345, allocations: 1.223 MB / 3.819 GB, free: 13.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/8.345, allocations: 0 / 3.819 GB, free: 13.05 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004696/8.35, allocations: 2.691 MB / 3.822 GB, free: 10.59 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007373/8.351, allocations: 267.7 kB / 3.822 GB, free: 10.35 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/8.351, allocations: 4.797 kB / 3.822 GB, free: 10.35 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006428/8.352, allocations: 63.91 kB / 3.822 GB, free: 10.3 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/8.352, allocations: 66.64 kB / 3.822 GB, free: 10.27 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.802e-05/8.352, allocations: 28.73 kB / 3.822 GB, free: 10.24 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0005322/8.352, allocations: 339.1 kB / 3.822 GB, free: 9.938 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007518/8.36, allocations: 1.381 MB / 3.824 GB, free: 8.594 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0114/8.371, allocations: 1.885 MB / 3.825 GB, free: 7.039 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003784/8.375, allocations: 1.573 MB / 3.827 GB, free: 5.582 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/8.375, allocations: 0 / 3.827 GB, free: 5.582 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001928/8.377, allocations: 1.114 MB / 3.828 GB, free: 4.543 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002078/8.379, allocations: 261.2 kB / 3.828 GB, free: 4.359 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004614/8.384, allocations: 1.865 MB / 3.83 GB, free: 2.648 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/8.386, allocations: 1.162 MB / 3.831 GB, free: 1.613 MB / 0.5573 GB Notification: Performance of SimCode: time 1.462e-06/8.386, allocations: 0 / 3.831 GB, free: 1.613 MB / 0.5573 GB Notification: Performance of Templates: time 0.4471/8.833, allocations: 45.28 MB / 3.876 GB, free: 141.3 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpStorage/TestWaterPumpStorage.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches