Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.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.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.WaterIF97") [: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.001193/0.001193, allocations: 199.2 kB / 8.542 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 225.5 MB / 234.4 MB, free: 3.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009068/0.0009068, allocations: 93.23 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.859e-06/1.008e-05, allocations: 4 kB / 343.1 MB, free: 8.797 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1168, allocations: 51.48 MB / 394.6 MB, free: 5.27 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.463/6.58, allocations: 2.787 GB / 3.172 GB, free: 105.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004021/6.58, allocations: 65.97 kB / 3.172 GB, free: 105.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.2842/6.865, allocations: 105.2 MB / 3.275 GB, free: 14.92 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.604e-05/6.865, allocations: 0 / 3.275 GB, free: 14.92 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.007343/6.872, allocations: 1.179 MB / 3.276 GB, free: 13.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.915e-05/6.872, allocations: 8.031 kB / 3.276 GB, free: 13.69 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005418/6.873, allocations: 63.75 kB / 3.276 GB, free: 13.62 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002986/6.873, allocations: 214.9 kB / 3.277 GB, free: 13.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.611e-05/6.873, allocations: 12 kB / 3.277 GB, free: 13.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.469e-05/6.873, allocations: 11.91 kB / 3.277 GB, free: 13.35 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004045/6.873, allocations: 208.4 kB / 3.277 GB, free: 13.15 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/6.874, allocations: 204.9 kB / 3.277 GB, free: 12.92 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/6.874, allocations: 0 / 3.277 GB, free: 12.92 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/6.874, allocations: 5.688 kB / 3.277 GB, free: 12.92 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/6.874, allocations: 4 kB / 3.277 GB, free: 12.91 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/6.875, allocations: 1.176 MB / 3.278 GB, free: 11.66 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001782/6.875, allocations: 128.9 kB / 3.278 GB, free: 11.51 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/6.875, allocations: 83 kB / 3.278 GB, free: 11.42 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3994/7.275, allocations: 53.41 MB / 3.331 GB, free: 90.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/7.275, allocations: 41.44 kB / 3.331 GB, free: 90.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 2.465e-06/7.275, allocations: 0 / 3.331 GB, free: 90.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.003825/7.279, allocations: 1.087 MB / 3.332 GB, free: 90.14 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/7.279, allocations: 106.3 kB / 3.332 GB, free: 90.02 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.557e-05/7.279, allocations: 105.3 kB / 3.332 GB, free: 89.93 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/7.279, allocations: 27.48 kB / 3.332 GB, free: 89.89 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.108e-05/7.279, allocations: 115.3 kB / 3.332 GB, free: 89.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.34e-05/7.279, allocations: 110 kB / 3.332 GB, free: 89.74 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.191e-05/7.279, allocations: 0 / 3.332 GB, free: 89.74 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.119e-05/7.279, allocations: 328.7 kB / 3.332 GB, free: 89.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/7.279, allocations: 105 kB / 3.333 GB, free: 89.43 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/7.28, allocations: 168.4 kB / 3.333 GB, free: 89.36 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/7.28, allocations: 123 kB / 3.333 GB, free: 89.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/7.28, allocations: 0 / 3.333 GB, free: 89.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001037/7.281, allocations: 443.1 kB / 3.333 GB, free: 89.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/7.281, allocations: 3.969 kB / 3.333 GB, free: 89.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/7.281, allocations: 3.844 kB / 3.333 GB, free: 89.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001828/7.281, allocations: 26.14 kB / 3.333 GB, free: 89.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004982/7.282, allocations: 100.7 kB / 3.333 GB, free: 89.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003388/7.282, allocations: 0.5552 MB / 3.334 GB, free: 88.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/7.282, allocations: 20.69 kB / 3.334 GB, free: 88.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.1e-05/7.283, allocations: 22.78 kB / 3.334 GB, free: 88.77 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001126/7.283, allocations: 113.5 kB / 3.334 GB, free: 88.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003436/7.283, allocations: 97.11 kB / 3.334 GB, free: 88.65 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/7.285, allocations: 1.373 MB / 3.335 GB, free: 88.52 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.815e-05/7.285, allocations: 18.39 kB / 3.335 GB, free: 88.52 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/7.285, allocations: 4.031 kB / 3.335 GB, free: 88.51 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/7.285, allocations: 3.75 kB / 3.335 GB, free: 88.51 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002189/7.287, allocations: 1.703 MB / 3.337 GB, free: 88.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/7.287, allocations: 7.781 kB / 3.337 GB, free: 88.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004759/7.288, allocations: 77.84 kB / 3.337 GB, free: 88.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002248/7.288, allocations: 68.66 kB / 3.337 GB, free: 88.15 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.722e-05/7.288, allocations: 17.97 kB / 3.337 GB, free: 88.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003072/7.288, allocations: 0.6174 MB / 3.338 GB, free: 87.63 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/7.288, allocations: 0 / 3.338 GB, free: 87.63 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001821/7.29, allocations: 1.787 MB / 3.34 GB, free: 87.16 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.737e-05/7.29, allocations: 104.2 kB / 3.34 GB, free: 87.05 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.129e-05/7.29, allocations: 7.859 kB / 3.34 GB, free: 87.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003996/7.291, allocations: 15.55 kB / 3.34 GB, free: 87.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.35e-05/7.291, allocations: 34.44 kB / 3.34 GB, free: 87.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.8e-05/7.291, allocations: 19.17 kB / 3.34 GB, free: 87.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.461e-05/7.291, allocations: 94.05 kB / 3.34 GB, free: 86.97 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006949/7.298, allocations: 0.9842 MB / 3.341 GB, free: 86.97 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 9 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008944/7.307, allocations: 1.362 MB / 3.342 GB, free: 86.79 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00136/7.308, allocations: 0.6663 MB / 3.343 GB, free: 86.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/7.308, allocations: 1.031 kB / 3.343 GB, free: 86.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007958/7.309, allocations: 0.6178 MB / 3.343 GB, free: 86.79 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007136/7.31, allocations: 64.17 kB / 3.344 GB, free: 86.78 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/7.312, allocations: 1.01 MB / 3.345 GB, free: 86.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/7.312, allocations: 0.8411 MB / 3.345 GB, free: 85.77 MB / 458.7 MB Notification: Performance of SimCode: time 8.31e-07/7.312, allocations: 0 / 3.345 GB, free: 85.77 MB / 458.7 MB Notification: Performance of Templates: time 0.04313/7.355, allocations: 29.53 MB / 3.374 GB, free: 84.12 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_trunk_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches