Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir.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: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir",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.001345/0.001345, allocations: 199.3 kB / 8.541 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.291/1.291, allocations: 225.5 MB / 234.4 MB, free: 3.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009522/0.0009522, allocations: 96.44 kB / 286.3 MB, free: 5.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1239/0.1249, allocations: 56.89 MB / 343.2 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.2338, allocations: 51.48 MB / 394.7 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.575/9.809, allocations: 6.205 GB / 6.59 GB, free: 25.09 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/9.809, allocations: 78.95 kB / 6.591 GB, free: 25.02 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.824/10.63, allocations: 201.4 MB / 6.787 GB, free: 46.21 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/10.63, allocations: 7.656 kB / 6.787 GB, free: 46.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/10.63, allocations: 23.06 kB / 6.787 GB, free: 46.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/10.63, allocations: 213.4 kB / 6.787 GB, free: 46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/10.63, allocations: 4.062 kB / 6.787 GB, free: 46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.517e-05/10.63, allocations: 14.78 kB / 6.787 GB, free: 46 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003759/10.63, allocations: 243.6 kB / 6.788 GB, free: 46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003326/10.63, allocations: 238.3 kB / 6.788 GB, free: 45.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/10.63, allocations: 3.812 kB / 6.788 GB, free: 45.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.991e-05/10.63, allocations: 3.375 kB / 6.788 GB, free: 45.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/10.63, allocations: 3.375 kB / 6.788 GB, free: 45.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001279/10.64, allocations: 0.7008 MB / 6.789 GB, free: 45.59 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003283/10.64, allocations: 184.7 kB / 6.789 GB, free: 45.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/10.64, allocations: 113.5 kB / 6.789 GB, free: 45.53 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01245/10.65, allocations: 12.49 MB / 6.801 GB, free: 32.78 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/10.65, allocations: 37.53 kB / 6.801 GB, free: 32.74 MB / 442.7 MB Notification: Performance of pre-optimization done (n=29): time 3.937e-06/10.65, allocations: 0 / 6.801 GB, free: 32.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=36): time 0.002118/10.65, allocations: 0.4993 MB / 6.802 GB, free: 32.67 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/10.65, allocations: 83.73 kB / 6.802 GB, free: 32.58 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.809e-05/10.65, allocations: 117.3 kB / 6.802 GB, free: 32.49 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.713e-05/10.65, allocations: 25.7 kB / 6.802 GB, free: 32.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.052e-05/10.65, allocations: 109.2 kB / 6.802 GB, free: 32.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.239e-05/10.65, allocations: 121 kB / 6.802 GB, free: 32.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.246e-05/10.65, allocations: 3.875 kB / 6.802 GB, free: 32.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.72e-05/10.65, allocations: 325.7 kB / 6.802 GB, free: 31.99 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/10.65, allocations: 106.2 kB / 6.803 GB, free: 31.99 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/10.65, allocations: 176.1 kB / 6.803 GB, free: 31.92 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004055/10.65, allocations: 155.7 kB / 6.803 GB, free: 31.91 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/10.65, allocations: 0 / 6.803 GB, free: 31.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00088/10.65, allocations: 366.3 kB / 6.803 GB, free: 31.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/10.65, allocations: 3.812 kB / 6.803 GB, free: 31.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/10.65, allocations: 7.156 kB / 6.803 GB, free: 31.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/10.65, allocations: 6.969 kB / 6.803 GB, free: 31.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005309/10.65, allocations: 87.64 kB / 6.803 GB, free: 31.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/10.65, allocations: 3.719 kB / 6.803 GB, free: 31.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004086/10.65, allocations: 28.84 kB / 6.803 GB, free: 31.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.785e-05/10.65, allocations: 18.42 kB / 6.803 GB, free: 31.87 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001263/10.65, allocations: 115.9 kB / 6.803 GB, free: 31.76 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/10.65, allocations: 18.59 kB / 6.803 GB, free: 31.75 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000637/10.66, allocations: 226.8 kB / 6.804 GB, free: 31.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/10.66, allocations: 3.719 kB / 6.804 GB, free: 31.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/10.66, allocations: 0 / 6.804 GB, free: 31.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/10.66, allocations: 3.891 kB / 6.804 GB, free: 31.71 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/10.66, allocations: 0.6718 MB / 6.804 GB, free: 31.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/10.66, allocations: 0 / 6.804 GB, free: 31.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004679/10.66, allocations: 74.11 kB / 6.804 GB, free: 31.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.029e-05/10.66, allocations: 6.875 kB / 6.804 GB, free: 31.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.404e-05/10.66, allocations: 15.16 kB / 6.804 GB, free: 31.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/10.66, allocations: 1.875 kB / 6.804 GB, free: 31.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/10.66, allocations: 7.719 kB / 6.804 GB, free: 31.39 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001056/10.66, allocations: 0.7134 MB / 6.805 GB, free: 31.04 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001381/10.66, allocations: 1.3 MB / 6.806 GB, free: 30.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/10.66, allocations: 129.2 kB / 6.807 GB, free: 30.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.585e-05/10.66, allocations: 3.438 kB / 6.807 GB, free: 30.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004012/10.66, allocations: 18.69 kB / 6.807 GB, free: 30.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/10.66, allocations: 30.5 kB / 6.807 GB, free: 30.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.415e-05/10.66, allocations: 19.17 kB / 6.807 GB, free: 30.19 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.433e-05/10.66, allocations: 94.66 kB / 6.807 GB, free: 30.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006107/10.67, allocations: 1.285 MB / 6.808 GB, free: 29.98 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.008405/10.68, allocations: 1.745 MB / 6.81 GB, free: 29.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004888/10.68, allocations: 277.9 kB / 6.81 GB, free: 29.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/10.68, allocations: 3.781 kB / 6.81 GB, free: 29.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001978/10.68, allocations: 153.5 kB / 6.81 GB, free: 29.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000642/10.68, allocations: 83.72 kB / 6.81 GB, free: 29.75 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02856/10.71, allocations: 12.41 MB / 6.822 GB, free: 28.74 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004438/10.71, allocations: 0.7962 MB / 6.823 GB, free: 44.04 MB / 458.7 MB Notification: Performance of SimCode: time 1.233e-06/10.71, allocations: 0 / 6.823 GB, free: 44.04 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_MoistAir.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe 2>&1)