Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",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.002368/0.002368, allocations: 193 kB / 7.806 MB, free: 2.488 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.528/1.528, 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.0008911/0.0008911, allocations: 97.48 kB / 261.4 MB, free: 13.6 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.2256/0.2256, allocations: 43.48 MB / 352.8 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2733/0.499, allocations: 64.97 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4364/0.9354, allocations: 58.83 MB / 476.6 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.446/8.381, allocations: 2.824 GB / 3.29 GB, free: 138.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/8.382, allocations: 75.56 kB / 3.29 GB, free: 138.7 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 2.334/10.72, allocations: 0.576 GB / 3.866 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.939e-05/10.72, allocations: 8 kB / 3.866 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005238/10.72, allocations: 0.5599 MB / 3.866 GB, free: 9.504 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005212/10.73, allocations: 1.444 MB / 3.868 GB, free: 8.039 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/10.73, allocations: 56 kB / 3.868 GB, free: 7.984 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000676/10.73, allocations: 75.91 kB / 3.868 GB, free: 7.91 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003598/10.73, allocations: 1.617 MB / 3.869 GB, free: 6.289 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003916/10.73, allocations: 1.815 MB / 3.871 GB, free: 4.332 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.978e-05/10.73, allocations: 11.88 kB / 3.871 GB, free: 4.32 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002827/10.74, allocations: 4 kB / 3.871 GB, free: 4.316 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001297/10.74, allocations: 106.2 kB / 3.871 GB, free: 4.211 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5214/11.26, allocations: 89.07 MB / 3.958 GB, free: 31.53 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001528/11.26, allocations: 0.685 MB / 3.959 GB, free: 31.51 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001099/11.26, allocations: 0.5898 MB / 3.96 GB, free: 31.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03735/11.3, allocations: 16.91 MB / 3.976 GB, free: 36.41 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001823/11.3, allocations: 0.7361 MB / 3.977 GB, free: 36.29 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=88): time 6.512e-06/11.3, allocations: 0 / 3.977 GB, free: 36.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96): time 0.01634/11.32, allocations: 4.857 MB / 3.981 GB, free: 35.16 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002459/11.32, allocations: 378.9 kB / 3.982 GB, free: 34.72 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001306/11.32, allocations: 0.817 MB / 3.983 GB, free: 34.57 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001327/11.32, allocations: 26.91 kB / 3.983 GB, free: 34.54 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005627/11.32, allocations: 0.5243 MB / 3.983 GB, free: 34.29 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003349/11.32, allocations: 325.5 kB / 3.983 GB, free: 34.13 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.803e-05/11.32, allocations: 1.781 kB / 3.983 GB, free: 34.13 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.00017/11.32, allocations: 359.7 kB / 3.984 GB, free: 33.82 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009366/11.32, allocations: 0.6798 MB / 3.984 GB, free: 33.82 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/11.32, allocations: 0.964 MB / 3.985 GB, free: 33.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007787/11.33, allocations: 1.911 MB / 3.987 GB, free: 33.46 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.236e-05/11.33, allocations: 7.719 kB / 3.987 GB, free: 33.46 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.01157/11.34, allocations: 3.403 MB / 3.991 GB, free: 33.31 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00118/11.34, allocations: 2.707 MB / 3.993 GB, free: 30.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.828e-05/11.34, allocations: 7.031 kB / 3.993 GB, free: 30.47 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003831/11.34, allocations: 128.6 kB / 3.993 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001372/11.34, allocations: 324 kB / 3.994 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001021/11.34, allocations: 1.28 MB / 3.995 GB, free: 29.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002018/11.35, allocations: 179.4 kB / 3.995 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002104/11.35, allocations: 64.59 kB / 3.995 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/11.35, allocations: 4.812 kB / 3.995 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008978/11.35, allocations: 2.721 MB / 3.998 GB, free: 29.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.41e-05/11.35, allocations: 17.64 kB / 3.998 GB, free: 29.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003345/11.36, allocations: 127.8 kB / 3.998 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/11.36, allocations: 319.3 kB / 3.998 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/11.36, allocations: 1.282 MB / 4 GB, free: 28.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/11.36, allocations: 155.3 kB / 4 GB, free: 28.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001805/11.36, allocations: 58.73 kB / 4 GB, free: 28.24 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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 prepare postOptimizeDAE: time 0.0006406/11.36, allocations: 186.1 kB / 4 GB, free: 28.09 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00157/11.36, allocations: 429.4 kB / 4 GB, free: 28.03 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006569/11.37, allocations: 3.72 MB / 4.004 GB, free: 27.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.217e-05/11.37, allocations: 37.19 kB / 4.004 GB, free: 27.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/11.37, allocations: 0 / 4.004 GB, free: 27.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00432/11.37, allocations: 2.932 MB / 4.007 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/11.38, allocations: 5.514 MB / 4.012 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/11.38, allocations: 3.969 kB / 4.012 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009732/11.38, allocations: 185.8 kB / 4.012 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005904/11.38, allocations: 167.2 kB / 4.013 GB, free: 26.65 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/11.38, allocations: 29.05 kB / 4.013 GB, free: 26.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/11.39, allocations: 1.368 MB / 4.014 GB, free: 25.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/11.39, allocations: 0 / 4.014 GB, free: 25.6 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007206/11.39, allocations: 4.083 MB / 4.018 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009239/11.4, allocations: 5.694 MB / 4.024 GB, free: 24.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/11.4, allocations: 0.4909 MB / 4.024 GB, free: 24.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007138/11.4, allocations: 16.67 kB / 4.024 GB, free: 24.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001615/11.41, allocations: 99.03 kB / 4.024 GB, free: 24.21 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/11.41, allocations: 74.42 kB / 4.024 GB, free: 24.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/11.41, allocations: 42.08 kB / 4.024 GB, free: 24.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001968/11.41, allocations: 0.8788 MB / 4.025 GB, free: 24.09 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01589/11.42, allocations: 2.574 MB / 4.028 GB, free: 24.09 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 22 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 7 * 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.01843/11.44, allocations: 2.566 MB / 4.03 GB, free: 23.79 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006823/11.45, allocations: 3.213 MB / 4.033 GB, free: 23.63 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/11.45, allocations: 3.906 kB / 4.033 GB, free: 23.63 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002186/11.45, allocations: 1.56 MB / 4.035 GB, free: 23.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003588/11.46, allocations: 488 kB / 4.035 GB, free: 23.57 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/11.47, allocations: 3.496 MB / 4.039 GB, free: 22.78 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003536/11.47, allocations: 1.739 MB / 4.04 GB, free: 22.02 MB / 0.5261 GB Notification: Performance of SimCode: time 3.958e-06/11.47, allocations: 0 / 4.04 GB, free: 22.02 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1)