Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy.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: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_WaterIF97_dewEnthalpy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_WaterIF97_dewEnthalpy",fmuType="me",version="2.0",platforms={"static"}) [: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.001155/0.001155, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.18/1.18, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009112/0.0009112, allocations: 91.53 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1747/0.1747, allocations: 45.14 MB / 383.3 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1977/0.3725, allocations: 69.36 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08432/0.4568, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.124/4.58, allocations: 2.747 GB / 3.251 GB, free: 157.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001897/4.581, allocations: 73.28 kB / 3.251 GB, free: 157.9 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Media.mo:950:7-950:66:writable] Error: Medium is partial, name lookup is not allowed in partial classes. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.1675/4.748, allocations: 65 MB / 3.314 GB, free: 115 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/4.748, allocations: 16 kB / 3.314 GB, free: 115 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/4.748, allocations: 7.984 kB / 3.314 GB, free: 115 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.263e-05/4.748, allocations: 166.9 kB / 3.314 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/4.748, allocations: 4 kB / 3.314 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/4.749, allocations: 3.938 kB / 3.314 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.777e-05/4.749, allocations: 27.98 kB / 3.314 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.819e-05/4.749, allocations: 63.33 kB / 3.314 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/4.749, allocations: 0 / 3.314 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/4.749, allocations: 0 / 3.314 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/4.749, allocations: 4 kB / 3.314 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003085/4.749, allocations: 338 kB / 3.315 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.751e-05/4.749, allocations: 34.56 kB / 3.315 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.323e-05/4.749, allocations: 16.8 kB / 3.315 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01161/4.761, allocations: 5.233 MB / 3.32 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.426e-05/4.761, allocations: 30.56 kB / 3.32 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=4): time 1.583e-06/4.761, allocations: 0 / 3.32 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=4): time 0.0003165/4.761, allocations: 81.66 kB / 3.32 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.401e-05/4.761, allocations: 55.34 kB / 3.32 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.966e-05/4.761, allocations: 92.91 kB / 3.32 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.746e-06/4.761, allocations: 29.69 kB / 3.32 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 2.228e-05/4.761, allocations: 80.14 kB / 3.32 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.478e-06/4.761, allocations: 19.75 kB / 3.32 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-06/4.761, allocations: 0 / 3.32 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 3.485e-05/4.761, allocations: 311 kB / 3.321 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.556e-05/4.761, allocations: 12 kB / 3.321 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.23e-05/4.761, allocations: 34.5 kB / 3.321 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.079e-05/4.761, allocations: 7.906 kB / 3.321 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/4.761, allocations: 0 / 3.321 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002151/4.762, allocations: 93.58 kB / 3.321 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/4.762, allocations: 4 kB / 3.321 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/4.762, allocations: 4.062 kB / 3.321 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/4.762, allocations: 4 kB / 3.321 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.454e-05/4.762, allocations: 8 kB / 3.321 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/4.762, allocations: 3.984 kB / 3.321 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.291e-05/4.762, allocations: 7.906 kB / 3.321 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/4.762, allocations: 0 / 3.321 GB, free: 107.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 3.818e-05/4.762, allocations: 105 kB / 3.321 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/4.762, allocations: 27.97 kB / 3.321 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003901/4.762, allocations: 439.4 kB / 3.321 GB, free: 107 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.318e-06/4.762, allocations: 11.98 kB / 3.321 GB, free: 107 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/4.762, allocations: 192 / 3.321 GB, free: 107 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/4.762, allocations: 0 / 3.321 GB, free: 107 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/4.763, allocations: 250.7 kB / 3.322 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/4.763, allocations: 0 / 3.322 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.195e-05/4.763, allocations: 4 kB / 3.322 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/4.763, allocations: 4 kB / 3.322 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/4.763, allocations: 0 / 3.322 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/4.763, allocations: 3.938 kB / 3.322 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/4.763, allocations: 0 / 3.322 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003334/4.763, allocations: 435.2 kB / 3.322 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003921/4.763, allocations: 0.8045 MB / 3.323 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 1.9e-05/4.763, allocations: 85.02 kB / 3.323 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/4.763, allocations: 0 / 3.323 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.452e-05/4.763, allocations: 3.906 kB / 3.323 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.535e-05/4.764, allocations: 4 kB / 3.323 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/4.764, allocations: 7.984 kB / 3.323 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.404e-05/4.764, allocations: 75.28 kB / 3.323 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002512/4.766, allocations: 0.5036 MB / 3.323 GB, free: 104.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($cse1.region3boundary,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001948/4.768, allocations: 0.6896 MB / 3.324 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001696/4.768, allocations: 167.8 kB / 3.324 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/4.768, allocations: 0 / 3.324 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001108/4.768, allocations: 180.1 kB / 3.324 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000209/4.769, allocations: 12.19 kB / 3.324 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002985/4.769, allocations: 258 kB / 3.325 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/4.769, allocations: 0.7306 MB / 3.325 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of SimCode: time 2.71e-07/4.769, allocations: 0 / 3.325 GB, free: 102.7 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestOnly_WaterIF97_dewEnthalpy_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_WaterIF97_dewEnthalpy.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy.pipe 2>&1)