Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.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.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",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.001231/0.001231, allocations: 199.7 kB / 8.538 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009673/0.0009673, allocations: 94.06 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1678/0.1678, allocations: 45.13 MB / 383.3 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2347/0.4026, allocations: 69.38 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.5384, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.497/5.035, allocations: 2.787 GB / 3.291 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/5.035, allocations: 94.72 kB / 3.291 GB, free: 133.1 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 1.376/6.411, allocations: 442.3 MB / 3.723 GB, free: 58.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/6.411, allocations: 9.125 kB / 3.723 GB, free: 58.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002875/6.414, allocations: 355.7 kB / 3.724 GB, free: 58.74 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/6.415, allocations: 0.5594 MB / 3.724 GB, free: 58.37 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.171e-05/6.415, allocations: 29.75 kB / 3.724 GB, free: 58.36 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/6.416, allocations: 36.66 kB / 3.724 GB, free: 58.36 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009365/6.416, allocations: 0.5324 MB / 3.725 GB, free: 58.17 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000985/6.417, allocations: 0.6502 MB / 3.725 GB, free: 57.81 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/6.418, allocations: 2.281 kB / 3.725 GB, free: 57.81 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-05/6.418, allocations: 7.031 kB / 3.725 GB, free: 57.81 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-05/6.418, allocations: 29.34 kB / 3.725 GB, free: 57.8 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03393/6.452, allocations: 20.97 MB / 3.746 GB, free: 43.24 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005362/6.452, allocations: 320.7 kB / 3.746 GB, free: 43.11 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003135/6.452, allocations: 208.6 kB / 3.746 GB, free: 43.02 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09975/6.552, allocations: 55.33 MB / 3.8 GB, free: 17.11 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.301e-05/6.552, allocations: 45.36 kB / 3.801 GB, free: 17.06 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=46): time 2.736e-06/6.552, allocations: 0 / 3.801 GB, free: 17.06 MB / 0.5417 GB Notification: Performance of matching and sorting (n=50): time 0.006379/6.559, allocations: 1.827 MB / 3.802 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/6.559, allocations: 107.2 kB / 3.802 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005278/6.559, allocations: 386.4 kB / 3.803 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.431e-05/6.559, allocations: 29.64 kB / 3.803 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/6.56, allocations: 279.6 kB / 3.803 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/6.56, allocations: 168.6 kB / 3.803 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/6.56, allocations: 0 / 3.803 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001203/6.56, allocations: 373.5 kB / 3.804 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003196/6.56, allocations: 200.9 kB / 3.804 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003718/6.561, allocations: 375.5 kB / 3.804 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/6.562, allocations: 340.8 kB / 3.804 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/6.562, allocations: 4 kB / 3.804 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003225/6.565, allocations: 1.134 MB / 3.806 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000517/6.566, allocations: 1.834 MB / 3.807 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/6.566, allocations: 4 kB / 3.807 GB, free: 10.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/6.567, allocations: 310.3 kB / 3.808 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004911/6.567, allocations: 135.7 kB / 3.808 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/6.569, allocations: 1.026 MB / 3.809 GB, free: 9.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007722/6.57, allocations: 86.55 kB / 3.809 GB, free: 9.004 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.03e-05/6.57, allocations: 39.28 kB / 3.809 GB, free: 8.969 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.883e-06/6.57, allocations: 0 / 3.809 GB, free: 8.969 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002013/6.572, allocations: 0.7542 MB / 3.81 GB, free: 8.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/6.572, allocations: 8.406 kB / 3.81 GB, free: 8.312 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009278/6.573, allocations: 278.6 kB / 3.81 GB, free: 8.098 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004914/6.573, allocations: 141.4 kB / 3.81 GB, free: 7.984 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/6.574, allocations: 0.9203 MB / 3.811 GB, free: 7.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006568/6.575, allocations: 77.72 kB / 3.811 GB, free: 7.031 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.373e-05/6.575, allocations: 31.52 kB / 3.811 GB, free: 7.004 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (54): * Single equations (assignments): 53 * 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 {4 19} Notification: Performance of prepare postOptimizeDAE: time 0.0001819/6.575, allocations: 128.7 kB / 3.811 GB, free: 6.875 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007531/6.576, allocations: 267.4 kB / 3.811 GB, free: 6.68 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00275/6.579, allocations: 2.262 MB / 3.814 GB, free: 4.684 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.045e-05/6.579, allocations: 31.2 kB / 3.814 GB, free: 4.664 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/6.579, allocations: 3.906 kB / 3.814 GB, free: 4.66 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/6.579, allocations: 4 kB / 3.814 GB, free: 4.656 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003725/6.582, allocations: 3.08 MB / 3.817 GB, free: 1.973 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/6.582, allocations: 0.5156 kB / 3.817 GB, free: 1.973 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005342/6.583, allocations: 137.4 kB / 3.817 GB, free: 1.863 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000267/6.583, allocations: 95.39 kB / 3.817 GB, free: 1.781 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.364e-05/6.583, allocations: 11.66 kB / 3.817 GB, free: 1.773 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008609/6.584, allocations: 1.169 MB / 3.818 GB, free: 16.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/6.584, allocations: 4.188 kB / 3.818 GB, free: 16.57 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003317/6.587, allocations: 2.338 MB / 3.82 GB, free: 14.41 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004563/6.592, allocations: 3.28 MB / 3.824 GB, free: 11.33 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005103/6.593, allocations: 279.4 kB / 3.824 GB, free: 11.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/6.593, allocations: 7.938 kB / 3.824 GB, free: 11.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006899/6.594, allocations: 62.69 kB / 3.824 GB, free: 11.03 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/6.594, allocations: 68.8 kB / 3.824 GB, free: 10.99 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.468e-05/6.594, allocations: 27.75 kB / 3.824 GB, free: 10.96 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0005727/6.594, allocations: 407.5 kB / 3.824 GB, free: 10.59 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00743/6.602, allocations: 1.697 MB / 3.826 GB, free: 8.93 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 15 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,pump.heatTransfer.states[1].phase,Sink.medium.phase,Source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009167/6.611, allocations: 1.907 MB / 3.828 GB, free: 7.379 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002837/6.614, allocations: 1.427 MB / 3.829 GB, free: 6.062 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/6.614, allocations: 1.5 kB / 3.829 GB, free: 6.062 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001336/6.615, allocations: 0.9009 MB / 3.83 GB, free: 5.227 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001658/6.617, allocations: 252.3 kB / 3.83 GB, free: 5.043 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003306/6.62, allocations: 1.707 MB / 3.832 GB, free: 3.465 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009644/6.621, allocations: 1.141 MB / 3.833 GB, free: 2.441 MB / 0.5573 GB Notification: Performance of SimCode: time 5.41e-07/6.621, allocations: 0 / 3.833 GB, free: 2.441 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe 2>&1)