Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009712/0.0009713, allocations: 173.3 kB / 8.516 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.15/1.15, allocations: 221.4 MB / 230.3 MB, free: 7.68 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009383/0.0009384, allocations: 92.72 kB / 281.2 MB, free: 5.422 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.159/0.159, allocations: 44.15 MB / 376.1 MB, free: 3.176 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1723/0.3313, allocations: 68.02 MB / 444.1 MB, free: 15.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09003/0.4214, allocations: 61.91 MB / 0.4942 GB, free: 1.484 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.114/4.535, allocations: 2.829 GB / 3.323 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001945/4.536, allocations: 74.03 kB / 3.323 GB, free: 148 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 1.708/6.243, allocations: 0.5824 GB / 3.906 GB, free: 53.52 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/6.243, allocations: 13.09 kB / 3.906 GB, free: 53.52 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004111/6.247, allocations: 0.5604 MB / 3.906 GB, free: 53.43 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003375/6.251, allocations: 1.449 MB / 3.908 GB, free: 53.06 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.043e-05/6.251, allocations: 61.3 kB / 3.908 GB, free: 53.06 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002032/6.251, allocations: 79.06 kB / 3.908 GB, free: 53.06 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002321/6.253, allocations: 1.609 MB / 3.909 GB, free: 53.05 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002568/6.256, allocations: 1.818 MB / 3.911 GB, free: 52.67 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.027e-05/6.256, allocations: 17.19 kB / 3.911 GB, free: 52.67 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/6.256, allocations: 3.781 kB / 3.911 GB, free: 52.67 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.684e-05/6.256, allocations: 106.8 kB / 3.911 GB, free: 52.66 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1557/6.412, allocations: 89.1 MB / 3.998 GB, free: 29.24 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009539/6.413, allocations: 0.6883 MB / 3.999 GB, free: 29.22 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006868/6.414, allocations: 0.587 MB / 3.999 GB, free: 29.21 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0305/6.444, allocations: 16.92 MB / 4.016 GB, free: 18.11 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001058/6.445, allocations: 0.733 MB / 4.017 GB, free: 17.99 MB / 0.573 GB Notification: Performance of pre-optimization done (n=88): time 2.925e-06/6.445, allocations: 0 / 4.017 GB, free: 17.99 MB / 0.573 GB Notification: Performance of matching and sorting (n=96): time 0.01142/6.457, allocations: 4.856 MB / 4.021 GB, free: 16.8 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/6.457, allocations: 384.1 kB / 4.022 GB, free: 16.36 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/6.458, allocations: 0.8114 MB / 4.023 GB, free: 16.2 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.115e-05/6.458, allocations: 31.64 kB / 4.023 GB, free: 16.17 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003273/6.458, allocations: 0.5225 MB / 4.023 GB, free: 15.85 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/6.459, allocations: 322.7 kB / 4.023 GB, free: 15.64 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.647e-05/6.459, allocations: 0 / 4.023 GB, free: 15.64 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001293/6.459, allocations: 359.6 kB / 4.024 GB, free: 31.34 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008347/6.46, allocations: 0.6793 MB / 4.024 GB, free: 31.33 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009212/6.461, allocations: 0.9666 MB / 4.025 GB, free: 31.01 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002918/6.463, allocations: 1.198 MB / 4.027 GB, free: 30.99 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/6.463, allocations: 4 kB / 4.027 GB, free: 30.98 MB / 0.5886 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.005674/6.469, allocations: 2.682 MB / 4.029 GB, free: 30.85 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008297/6.47, allocations: 2.7 MB / 4.032 GB, free: 28.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/6.47, allocations: 14.33 kB / 4.032 GB, free: 28.02 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003323/6.47, allocations: 132.5 kB / 4.032 GB, free: 28 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/6.472, allocations: 321.6 kB / 4.032 GB, free: 27.99 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008276/6.472, allocations: 1.279 MB / 4.034 GB, free: 26.95 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/6.474, allocations: 179.8 kB / 4.034 GB, free: 26.93 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/6.474, allocations: 62.7 kB / 4.034 GB, free: 26.93 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.382e-06/6.474, allocations: 7.031 kB / 4.034 GB, free: 26.93 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003962/6.478, allocations: 1.996 MB / 4.036 GB, free: 26.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/6.478, allocations: 10.88 kB / 4.036 GB, free: 26.88 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002794/6.478, allocations: 131.4 kB / 4.036 GB, free: 26.86 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/6.479, allocations: 316.4 kB / 4.036 GB, free: 26.86 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007771/6.48, allocations: 1.288 MB / 4.037 GB, free: 25.81 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/6.481, allocations: 155.9 kB / 4.038 GB, free: 25.79 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/6.482, allocations: 60.16 kB / 4.038 GB, free: 25.79 MB / 0.5886 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.0003152/6.482, allocations: 176 kB / 4.038 GB, free: 25.64 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/6.483, allocations: 435.3 kB / 4.038 GB, free: 25.58 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004494/6.487, allocations: 3.727 MB / 4.042 GB, free: 25.23 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/6.487, allocations: 32.48 kB / 4.042 GB, free: 25.23 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/6.487, allocations: 2.875 kB / 4.042 GB, free: 25.23 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00315/6.491, allocations: 2.93 MB / 4.045 GB, free: 24.92 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006521/6.497, allocations: 5.512 MB / 4.05 GB, free: 24.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/6.497, allocations: 5.125 kB / 4.05 GB, free: 24.19 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000884/6.498, allocations: 184 kB / 4.05 GB, free: 24.19 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004838/6.499, allocations: 168.6 kB / 4.05 GB, free: 24.17 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.098e-05/6.499, allocations: 30.19 kB / 4.05 GB, free: 24.17 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009168/6.5, allocations: 1.363 MB / 4.052 GB, free: 23.12 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/6.5, allocations: 5.125 kB / 4.052 GB, free: 23.12 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006187/6.506, allocations: 4.088 MB / 4.056 GB, free: 22.7 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008105/6.514, allocations: 5.686 MB / 4.061 GB, free: 21.91 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009644/6.515, allocations: 0.5018 MB / 4.062 GB, free: 21.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004073/6.515, allocations: 15.95 kB / 4.062 GB, free: 21.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/6.517, allocations: 103.1 kB / 4.062 GB, free: 21.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/6.517, allocations: 69.31 kB / 4.062 GB, free: 21.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/6.517, allocations: 41.91 kB / 4.062 GB, free: 21.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001364/6.518, allocations: 0.8723 MB / 4.063 GB, free: 21.59 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.009449/6.528, allocations: 2.583 MB / 4.065 GB, free: 21.24 MB / 0.5886 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.009655/6.537, allocations: 2.591 MB / 4.068 GB, free: 20.64 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004465/6.542, allocations: 3.21 MB / 4.071 GB, free: 19.77 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/6.542, allocations: 0 / 4.071 GB, free: 19.77 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001599/6.543, allocations: 1.568 MB / 4.073 GB, free: 18.99 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/6.546, allocations: 482.3 kB / 4.073 GB, free: 18.73 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005188/6.551, allocations: 3.502 MB / 4.077 GB, free: 16.26 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/6.552, allocations: 1.741 MB / 4.078 GB, free: 14.89 MB / 0.5886 GB Notification: Performance of SimCode: time 7.21e-07/6.553, allocations: 0 / 4.078 GB, free: 14.89 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1)