Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",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.001708/0.001708, allocations: 185.1 kB / 7.801 MB, free: 2.5 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.502/1.502, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009306/0.0009302, allocations: 84.42 kB / 261.4 MB, free: 13.61 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.2094/0.2094, allocations: 43.48 MB / 352.8 MB, free: 2.027 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2418/0.4513, allocations: 64.98 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.8147, allocations: 58.84 MB / 476.7 MB, free: 5.312 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.668/7.483, allocations: 2.771 GB / 3.237 GB, free: 81.21 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003368/7.483, allocations: 83.33 kB / 3.237 GB, free: 81.13 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 2.275/9.758, allocations: 0.4999 GB / 3.737 GB, free: 48.63 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/9.758, allocations: 7.188 kB / 3.737 GB, free: 48.63 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007005/9.765, allocations: 0.7704 MB / 3.737 GB, free: 48.57 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002535/9.768, allocations: 0.8101 MB / 3.738 GB, free: 48.28 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/9.768, allocations: 42.72 kB / 3.738 GB, free: 48.28 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000324/9.768, allocations: 49.12 kB / 3.738 GB, free: 48.28 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002328/9.771, allocations: 0.9139 MB / 3.739 GB, free: 48.27 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002568/9.773, allocations: 1.098 MB / 3.74 GB, free: 47.95 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/9.773, allocations: 3.469 kB / 3.74 GB, free: 47.95 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001906/9.774, allocations: 7.781 kB / 3.74 GB, free: 47.94 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.466e-05/9.774, allocations: 31.47 kB / 3.74 GB, free: 47.94 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1086/9.882, allocations: 52.44 MB / 3.792 GB, free: 31.43 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/9.884, allocations: 0.6045 MB / 3.792 GB, free: 31.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005736/9.884, allocations: 311.8 kB / 3.792 GB, free: 31.39 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03807/9.922, allocations: 16.67 MB / 3.809 GB, free: 20.38 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.147e-05/9.922, allocations: 38.88 kB / 3.809 GB, free: 20.34 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=61): time 4.989e-06/9.922, allocations: 0 / 3.809 GB, free: 20.34 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61): time 0.006344/9.929, allocations: 1.449 MB / 3.81 GB, free: 20.26 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001731/9.929, allocations: 212.4 kB / 3.81 GB, free: 20.01 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/9.93, allocations: 0.5674 MB / 3.811 GB, free: 19.87 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001728/9.931, allocations: 26.83 kB / 3.811 GB, free: 19.84 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003901/9.931, allocations: 423.1 kB / 3.811 GB, free: 19.57 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002917/9.931, allocations: 201.9 kB / 3.812 GB, free: 19.44 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.554e-05/9.931, allocations: 0 / 3.812 GB, free: 19.44 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000233/9.932, allocations: 393.4 kB / 3.812 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006624/9.932, allocations: 303.9 kB / 3.812 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008378/9.933, allocations: 0.5956 MB / 3.813 GB, free: 18.77 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002898/9.936, allocations: 0.6456 MB / 3.813 GB, free: 18.75 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/9.936, allocations: 3.562 kB / 3.813 GB, free: 18.75 MB / 0.5261 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.006268/9.942, allocations: 1.761 MB / 3.815 GB, free: 18.65 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002223/9.945, allocations: 3.225 MB / 3.818 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.577e-05/9.945, allocations: 7.875 kB / 3.818 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.632e-05/9.945, allocations: 14.69 kB / 3.818 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/9.946, allocations: 286.6 kB / 3.819 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.61e-05/9.946, allocations: 15.78 kB / 3.819 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/9.948, allocations: 166.1 kB / 3.819 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/9.948, allocations: 63.72 kB / 3.819 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/9.948, allocations: 3.156 kB / 3.819 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003376/9.951, allocations: 1.024 MB / 3.82 GB, free: 31.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/9.951, allocations: 7.219 kB / 3.82 GB, free: 31.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/9.951, allocations: 14.94 kB / 3.82 GB, free: 31.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009843/9.952, allocations: 285.9 kB / 3.82 GB, free: 31.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.78e-05/9.952, allocations: 25.12 kB / 3.82 GB, free: 31.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/9.954, allocations: 145.2 kB / 3.82 GB, free: 31.13 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/9.954, allocations: 52.14 kB / 3.82 GB, free: 31.13 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.00042/9.954, allocations: 142.2 kB / 3.82 GB, free: 31.02 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001908/9.956, allocations: 0.5372 MB / 3.821 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005812/9.962, allocations: 3.307 MB / 3.824 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.698e-05/9.962, allocations: 26.14 kB / 3.824 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/9.962, allocations: 0 / 3.824 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/9.962, allocations: 3.422 kB / 3.824 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008487/9.97, allocations: 4.957 MB / 3.829 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/9.971, allocations: 3.969 kB / 3.829 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007028/9.971, allocations: 188 kB / 3.829 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.13e-05/9.971, allocations: 10.03 kB / 3.829 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.708e-05/9.971, allocations: 21.62 kB / 3.829 GB, free: 29.72 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.648e-05/9.971, allocations: 12.98 kB / 3.829 GB, free: 29.72 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.718e-06/9.971, allocations: 5.656 kB / 3.829 GB, free: 29.72 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006041/9.977, allocations: 2.548 MB / 3.832 GB, free: 29.02 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006404/9.984, allocations: 2.927 MB / 3.835 GB, free: 27.96 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/9.985, allocations: 0.5897 MB / 3.835 GB, free: 27.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000577/9.986, allocations: 11.72 kB / 3.835 GB, free: 27.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/9.987, allocations: 105.7 kB / 3.835 GB, free: 27.72 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002665/9.988, allocations: 116.1 kB / 3.835 GB, free: 27.72 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001146/9.988, allocations: 38.5 kB / 3.836 GB, free: 27.72 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001991/9.99, allocations: 1.078 MB / 3.837 GB, free: 27.61 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01126/10, allocations: 1.918 MB / 3.838 GB, free: 27.38 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse30.phase,$cse30.region,SinkP3.medium.phase,SourceP3.medium.phase,SinkP2.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 61 * 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.0116/10.01, allocations: 1.981 MB / 3.84 GB, free: 26.96 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003547/10.02, allocations: 1.75 MB / 3.842 GB, free: 26.94 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.431e-05/10.02, allocations: 6.438 kB / 3.842 GB, free: 26.93 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001193/10.02, allocations: 0.951 MB / 3.843 GB, free: 26.93 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003017/10.02, allocations: 404.1 kB / 3.843 GB, free: 26.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005335/10.03, allocations: 2.391 MB / 3.846 GB, free: 26.23 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001559/10.03, allocations: 1.435 MB / 3.847 GB, free: 25.5 MB / 0.5417 GB Notification: Performance of SimCode: time 2.174e-06/10.03, allocations: 0 / 3.847 GB, free: 25.5 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1)