Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",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 3.2.3+maint.om/package.mo): time 0.00148/0.00148, allocations: 187.2 kB / 7.797 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.2 MB / 213.4 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008798/0.0008799, allocations: 91.28 kB / 261.4 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2477/0.2477, allocations: 43.48 MB / 352.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.221/0.4688, allocations: 64.98 MB / 417.8 MB, free: 40.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.8316, allocations: 58.84 MB / 476.7 MB, free: 5.172 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.254/7.086, allocations: 2.753 GB / 3.219 GB, free: 96.19 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/7.086, allocations: 83.64 kB / 3.219 GB, free: 96.12 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.893/7.98, allocations: 214.6 MB / 3.428 GB, free: 76.69 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/7.98, allocations: 9.531 kB / 3.428 GB, free: 76.69 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002083/7.982, allocations: 237.7 kB / 3.429 GB, free: 76.66 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008941/7.983, allocations: 370.1 kB / 3.429 GB, free: 76.37 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.743e-05/7.983, allocations: 14.91 kB / 3.429 GB, free: 76.36 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/7.983, allocations: 16.06 kB / 3.429 GB, free: 76.36 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000668/7.983, allocations: 303.2 kB / 3.429 GB, free: 76.26 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006978/7.984, allocations: 386.3 kB / 3.43 GB, free: 76.03 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/7.984, allocations: 4.969 kB / 3.43 GB, free: 76.03 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.107e-05/7.984, allocations: 1.219 kB / 3.43 GB, free: 76.03 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/7.984, allocations: 8.938 kB / 3.43 GB, free: 76.03 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02097/8.005, allocations: 10.07 MB / 3.439 GB, free: 66.11 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003862/8.006, allocations: 218.4 kB / 3.44 GB, free: 65.89 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001853/8.006, allocations: 129 kB / 3.44 GB, free: 65.76 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04694/8.053, allocations: 24.08 MB / 3.463 GB, free: 38.8 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.915e-05/8.053, allocations: 34.56 kB / 3.463 GB, free: 38.76 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=24): time 4.809e-06/8.053, allocations: 0 / 3.463 GB, free: 38.76 MB / 0.4948 GB Notification: Performance of matching and sorting (n=24): time 0.002166/8.055, allocations: 0.4969 MB / 3.464 GB, free: 38.25 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/8.055, allocations: 106.8 kB / 3.464 GB, free: 38.12 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003615/8.056, allocations: 235.5 kB / 3.464 GB, free: 37.89 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.315e-05/8.056, allocations: 25.7 kB / 3.464 GB, free: 37.86 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/8.056, allocations: 179.8 kB / 3.464 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.454e-05/8.056, allocations: 74.86 kB / 3.464 GB, free: 37.61 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.838e-05/8.056, allocations: 0 / 3.464 GB, free: 37.61 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000115/8.056, allocations: 347.3 kB / 3.465 GB, free: 37.26 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/8.056, allocations: 107.9 kB / 3.465 GB, free: 37.15 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/8.056, allocations: 200.7 kB / 3.465 GB, free: 36.92 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007242/8.057, allocations: 187.8 kB / 3.465 GB, free: 36.73 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/8.057, allocations: 4 kB / 3.465 GB, free: 36.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001665/8.059, allocations: 0.5709 MB / 3.466 GB, free: 36.15 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/8.059, allocations: 4.312 kB / 3.466 GB, free: 36.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/8.059, allocations: 8 kB / 3.466 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/8.059, allocations: 4 kB / 3.466 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004251/8.059, allocations: 103.9 kB / 3.466 GB, free: 36.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/8.059, allocations: 11.94 kB / 3.466 GB, free: 36.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005278/8.06, allocations: 63.7 kB / 3.466 GB, free: 35.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.721e-05/8.06, allocations: 15.98 kB / 3.466 GB, free: 35.95 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.000156/8.06, allocations: 124.8 kB / 3.466 GB, free: 35.82 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005778/8.061, allocations: 179.4 kB / 3.466 GB, free: 35.64 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001927/8.063, allocations: 1.679 MB / 3.468 GB, free: 33.94 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.739e-05/8.063, allocations: 27.95 kB / 3.468 GB, free: 33.91 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/8.063, allocations: 0 / 3.468 GB, free: 33.91 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/8.063, allocations: 0 / 3.468 GB, free: 33.91 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002497/8.065, allocations: 2.25 MB / 3.47 GB, free: 31.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/8.065, allocations: 0 / 3.47 GB, free: 31.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003303/8.066, allocations: 80 kB / 3.47 GB, free: 31.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.796e-06/8.066, allocations: 0 / 3.47 GB, free: 31.54 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/8.066, allocations: 19.83 kB / 3.47 GB, free: 31.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.052e-06/8.066, allocations: 7.938 kB / 3.47 GB, free: 31.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/8.066, allocations: 0 / 3.47 GB, free: 31.51 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001742/8.067, allocations: 1.381 MB / 3.472 GB, free: 30.09 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001923/8.069, allocations: 1.803 MB / 3.473 GB, free: 28.25 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002051/8.07, allocations: 160.2 kB / 3.474 GB, free: 28.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.014e-05/8.07, allocations: 7.938 kB / 3.474 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004391/8.07, allocations: 47.95 kB / 3.474 GB, free: 28.02 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/8.07, allocations: 35.94 kB / 3.474 GB, free: 27.99 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-05/8.07, allocations: 12 kB / 3.474 GB, free: 27.98 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0002571/8.071, allocations: 236.6 kB / 3.474 GB, free: 27.75 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006677/8.077, allocations: 1.112 MB / 3.475 GB, free: 26.64 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * 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.01088/8.088, allocations: 1.505 MB / 3.476 GB, free: 25.21 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001125/8.089, allocations: 0.7057 MB / 3.477 GB, free: 24.51 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/8.089, allocations: 0 / 3.477 GB, free: 24.51 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007185/8.09, allocations: 0.6843 MB / 3.478 GB, free: 23.82 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/8.091, allocations: 150.2 kB / 3.478 GB, free: 23.68 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/8.093, allocations: 1.09 MB / 3.479 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005611/8.094, allocations: 0.9664 MB / 3.48 GB, free: 21.56 MB / 0.4948 GB Notification: Performance of SimCode: time 1.412e-06/8.094, allocations: 0 / 3.48 GB, free: 21.56 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1)