Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",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.001171/0.001171, allocations: 206.7 kB / 8.538 MB, free: 1.723 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.162/1.162, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008686/0.0008687, allocations: 95.84 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.163/0.163, allocations: 45.14 MB / 383.3 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.184/0.347, allocations: 69.38 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0835/0.4306, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.991/4.422, allocations: 2.776 GB / 3.28 GB, free: 134.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000218/4.422, allocations: 84.67 kB / 3.28 GB, free: 134.5 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.6718/5.094, allocations: 234.4 MB / 3.509 GB, free: 78.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/5.094, allocations: 11.12 kB / 3.509 GB, free: 78.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002157/5.096, allocations: 264.2 kB / 3.509 GB, free: 78.76 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007513/5.097, allocations: 417 kB / 3.51 GB, free: 78.46 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/5.097, allocations: 18.22 kB / 3.51 GB, free: 78.46 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.601e-05/5.097, allocations: 23 kB / 3.51 GB, free: 78.45 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005488/5.098, allocations: 335.7 kB / 3.51 GB, free: 78.33 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005429/5.098, allocations: 404.4 kB / 3.511 GB, free: 78.11 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/5.098, allocations: 7.875 kB / 3.511 GB, free: 78.11 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.465e-05/5.098, allocations: 0 / 3.511 GB, free: 78.11 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/5.098, allocations: 7.5 kB / 3.511 GB, free: 78.11 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01721/5.116, allocations: 10.8 MB / 3.521 GB, free: 70.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003211/5.116, allocations: 222.1 kB / 3.521 GB, free: 70.5 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/5.116, allocations: 135.6 kB / 3.522 GB, free: 70.45 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04664/5.163, allocations: 27.17 MB / 3.548 GB, free: 51.77 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/5.163, allocations: 35.94 kB / 3.548 GB, free: 51.73 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 2.254e-06/5.163, allocations: 1.375 kB / 3.548 GB, free: 51.73 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.002132/5.165, allocations: 0.5408 MB / 3.549 GB, free: 51.56 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/5.165, allocations: 114.2 kB / 3.549 GB, free: 51.43 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003418/5.165, allocations: 262.8 kB / 3.549 GB, free: 51.29 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/5.165, allocations: 25.7 kB / 3.549 GB, free: 51.25 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.013e-05/5.165, allocations: 202.4 kB / 3.549 GB, free: 51.09 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.116e-05/5.166, allocations: 80.12 kB / 3.549 GB, free: 51.02 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.895e-05/5.166, allocations: 1.156 kB / 3.549 GB, free: 51.02 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.04e-05/5.166, allocations: 339.4 kB / 3.55 GB, free: 50.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/5.166, allocations: 123.8 kB / 3.55 GB, free: 50.65 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/5.166, allocations: 218.4 kB / 3.55 GB, free: 50.48 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/5.167, allocations: 249.8 kB / 3.55 GB, free: 50.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/5.167, allocations: 1.312 kB / 3.55 GB, free: 50.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.002002/5.169, allocations: 0.6517 MB / 3.551 GB, free: 50.18 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001694/5.169, allocations: 1.044 MB / 3.552 GB, free: 49.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/5.169, allocations: 2.969 kB / 3.552 GB, free: 49.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/5.169, allocations: 5.188 kB / 3.552 GB, free: 49.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005035/5.17, allocations: 115.2 kB / 3.552 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/5.17, allocations: 8.641 kB / 3.552 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000482/5.17, allocations: 79.05 kB / 3.552 GB, free: 49.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.71e-05/5.17, allocations: 19.41 kB / 3.552 GB, free: 49.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.436e-06/5.17, allocations: 7.969 kB / 3.552 GB, free: 49.02 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001174/5.172, allocations: 395.1 kB / 3.552 GB, free: 48.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.656e-06/5.172, allocations: 0 / 3.552 GB, free: 48.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.113e-06/5.172, allocations: 7.562 kB / 3.552 GB, free: 48.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004336/5.172, allocations: 116.8 kB / 3.553 GB, free: 48.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/5.172, allocations: 11.38 kB / 3.553 GB, free: 48.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004204/5.173, allocations: 64.03 kB / 3.553 GB, free: 48.86 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.708e-05/5.173, allocations: 19.38 kB / 3.553 GB, free: 48.85 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001141/5.173, allocations: 120.3 kB / 3.553 GB, free: 48.73 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005429/5.173, allocations: 190.8 kB / 3.553 GB, free: 48.68 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002277/5.176, allocations: 1.757 MB / 3.555 GB, free: 47.97 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.543e-05/5.176, allocations: 24.64 kB / 3.555 GB, free: 47.96 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/5.176, allocations: 0 / 3.555 GB, free: 47.96 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/5.176, allocations: 5.641 kB / 3.555 GB, free: 47.96 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003017/5.179, allocations: 2.53 MB / 3.557 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/5.179, allocations: 5.234 kB / 3.557 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003413/5.179, allocations: 80.48 kB / 3.557 GB, free: 46.75 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/5.179, allocations: 3.219 kB / 3.557 GB, free: 46.75 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.822e-05/5.179, allocations: 9.844 kB / 3.557 GB, free: 46.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/5.179, allocations: 11.09 kB / 3.557 GB, free: 46.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/5.179, allocations: 3.938 kB / 3.557 GB, free: 46.74 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001996/5.181, allocations: 1.461 MB / 3.559 GB, free: 46.07 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002034/5.183, allocations: 1.888 MB / 3.561 GB, free: 45 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002392/5.183, allocations: 209 kB / 3.561 GB, free: 44.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.511e-05/5.183, allocations: 2.031 kB / 3.561 GB, free: 44.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000429/5.184, allocations: 46.2 kB / 3.561 GB, free: 44.82 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/5.184, allocations: 40.39 kB / 3.561 GB, free: 44.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.98e-05/5.184, allocations: 18.86 kB / 3.561 GB, free: 44.81 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0003259/5.184, allocations: 266.1 kB / 3.561 GB, free: 44.66 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006604/5.191, allocations: 1.441 MB / 3.563 GB, free: 44.17 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007866/5.199, allocations: 1.644 MB / 3.564 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001183/5.2, allocations: 0.9283 MB / 3.565 GB, free: 42.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/5.2, allocations: 0 / 3.565 GB, free: 42.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006146/5.201, allocations: 0.6965 MB / 3.566 GB, free: 41.86 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/5.202, allocations: 167.5 kB / 3.566 GB, free: 41.73 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/5.204, allocations: 1.176 MB / 3.567 GB, free: 40.63 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005004/5.204, allocations: 0.9919 MB / 3.568 GB, free: 39.71 MB / 0.5261 GB Notification: Performance of SimCode: time 2.41e-07/5.204, allocations: 0 / 3.568 GB, free: 39.71 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1)