Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.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) 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(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater") translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003407/0.003407, allocations: 199.4 kB / 18.06 MB, free: 3.617 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.881/2.881, allocations: 226.5 MB / 245.4 MB, free: 8.156 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001382/0.001383, allocations: 88.03 kB / 297.4 MB, free: 6.848 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000394/0.0003942, allocations: 8 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6325/0.6329, allocations: 51.3 MB / 408.6 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.147/1.781, allocations: 274.4 MB / 0.6671 GB, free: 7.645 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003813/1.781, allocations: 70.11 kB / 0.6671 GB, free: 7.609 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4819/2.263, allocations: 9.672 MB / 0.6766 GB, free: 177.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.876e-06/2.263, allocations: 0 / 0.6766 GB, free: 177.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.533e-05/2.263, allocations: 2.469 kB / 0.6766 GB, free: 177.8 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0014/2.264, allocations: 460.5 kB / 0.677 GB, free: 177.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.228e-05/2.265, allocations: 9.469 kB / 0.677 GB, free: 177.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002833/2.265, allocations: 22.92 kB / 0.6771 GB, free: 177.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003511/2.265, allocations: 209.1 kB / 0.6773 GB, free: 177.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/2.265, allocations: 11 kB / 0.6773 GB, free: 177.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.812e-05/2.265, allocations: 16.73 kB / 0.6773 GB, free: 177.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008143/2.266, allocations: 213 kB / 0.6775 GB, free: 177.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/2.266, allocations: 1.781 kB / 0.6775 GB, free: 177.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/2.266, allocations: 15.64 kB / 0.6775 GB, free: 177.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/2.266, allocations: 3.094 kB / 0.6775 GB, free: 177.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000708/2.267, allocations: 145.2 kB / 0.6777 GB, free: 177.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001971/2.269, allocations: 0.9352 MB / 0.6786 GB, free: 176.4 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006632/2.27, allocations: 149.9 kB / 0.6787 GB, free: 176.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/2.27, allocations: 51.8 kB / 0.6788 GB, free: 176.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008117/2.271, allocations: 0.5094 MB / 0.6793 GB, free: 175.9 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/2.271, allocations: 32.11 kB / 0.6793 GB, free: 175.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=14): time 3.647e-06/2.271, allocations: 0 / 0.6793 GB, free: 175.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=20): time 0.00469/2.276, allocations: 0.7639 MB / 0.68 GB, free: 175.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/2.276, allocations: 56.28 kB / 0.6801 GB, free: 175.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002186/2.276, allocations: 154.5 kB / 0.6802 GB, free: 175.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/2.276, allocations: 29.52 kB / 0.6803 GB, free: 175.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/2.276, allocations: 143.6 kB / 0.6804 GB, free: 175.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.893e-05/2.276, allocations: 71.41 kB / 0.6805 GB, free: 175.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/2.276, allocations: 7.469 kB / 0.6805 GB, free: 175.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/2.276, allocations: 323.7 kB / 0.6808 GB, free: 174.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003458/2.277, allocations: 82 kB / 0.6809 GB, free: 174.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004465/2.277, allocations: 190.7 kB / 0.681 GB, free: 174.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008004/2.278, allocations: 293.5 kB / 0.6813 GB, free: 174.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/2.278, allocations: 4.781 kB / 0.6813 GB, free: 174.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001139/2.279, allocations: 315.2 kB / 0.6816 GB, free: 174.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.377e-05/2.279, allocations: 6.875 kB / 0.6816 GB, free: 174.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/2.279, allocations: 5.812 kB / 0.6816 GB, free: 174.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.509e-05/2.279, allocations: 8.031 kB / 0.6816 GB, free: 174.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005759/2.28, allocations: 85.42 kB / 0.6817 GB, free: 174.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.368e-05/2.28, allocations: 10.23 kB / 0.6817 GB, free: 174.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003307/2.28, allocations: 15.97 kB / 0.6818 GB, free: 174.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.795e-05/2.28, allocations: 15.7 kB / 0.6818 GB, free: 174.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 37 * 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 prepare postOptimizeDAE: time 0.0001869/2.28, allocations: 133.3 kB / 0.6819 GB, free: 174.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.214e-05/2.281, allocations: 19.28 kB / 0.6819 GB, free: 174.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/2.282, allocations: 241.2 kB / 0.6821 GB, free: 174.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/2.282, allocations: 3.219 kB / 0.6821 GB, free: 174.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.639e-06/2.282, allocations: 1.312 kB / 0.6821 GB, free: 174.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/2.282, allocations: 3.188 kB / 0.6822 GB, free: 174.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006259/2.288, allocations: 0.5973 MB / 0.6827 GB, free: 174 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/2.288, allocations: 9.047 kB / 0.6827 GB, free: 174 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003715/2.288, allocations: 52.56 kB / 0.6828 GB, free: 174 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.357e-05/2.288, allocations: 3.75 kB / 0.6828 GB, free: 174 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.485e-05/2.288, allocations: 10.94 kB / 0.6828 GB, free: 174 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.756e-06/2.288, allocations: 2.75 kB / 0.6828 GB, free: 174 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/2.288, allocations: 5.312 kB / 0.6828 GB, free: 174 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/2.29, allocations: 402.3 kB / 0.6832 GB, free: 173.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.302e-05/2.29, allocations: 88.88 kB / 0.6833 GB, free: 173.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/2.29, allocations: 11.22 kB / 0.6833 GB, free: 173.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004469/2.294, allocations: 17.39 kB / 0.6833 GB, free: 173.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.655e-05/2.294, allocations: 13.97 kB / 0.6833 GB, free: 173.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.445e-05/2.294, allocations: 10.03 kB / 0.6833 GB, free: 173.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0002145/2.295, allocations: 112.6 kB / 0.6834 GB, free: 173.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.91e-07/2.295, allocations: 0 / 0.6834 GB, free: 173.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0008626/2.296, allocations: 63.34 kB / 0.6835 GB, free: 173.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.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 (20): * Single equations (assignments): 20 * 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.0004951/2.296, allocations: 156.8 kB / 0.6837 GB, free: 173.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.000986/2.297, allocations: 206.5 kB / 0.6838 GB, free: 173.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/2.297, allocations: 5.75 kB / 0.6839 GB, free: 173.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004011/2.298, allocations: 86.41 kB / 0.6839 GB, free: 173.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006787/2.298, allocations: 43.97 kB / 0.684 GB, free: 173.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/2.3, allocations: 0.5892 MB / 0.6846 GB, free: 173.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/2.3, allocations: 0.7133 MB / 0.6852 GB, free: 172.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/2.3, allocations: 27.73 kB / 0.6853 GB, free: 172.5 MB / 458.7 MB Notification: Performance of SimCode: time 9.52e-07/2.3, allocations: 0 / 0.6853 GB, free: 172.5 MB / 458.7 MB Notification: Performance of Templates: time 0.01627/2.317, allocations: 2.735 MB / 0.6879 GB, free: 172.3 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches