Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.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.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",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.001067/0.001067, allocations: 180.2 kB / 8.518 MB, free: 1.824 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.153/1.153, allocations: 221.4 MB / 230.3 MB, free: 7.832 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.0008867/0.0008867, allocations: 83.69 kB / 281.2 MB, free: 5.586 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.1569/0.1569, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1831/0.3401, allocations: 68.03 MB / 444.1 MB, free: 15.49 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09602/0.4361, allocations: 61.92 MB / 0.4942 GB, free: 1.496 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5856/1.022, allocations: 316.7 MB / 0.8035 GB, free: 72.29 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/1.022, allocations: 90.03 kB / 0.8036 GB, free: 72.25 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.3744/1.396, allocations: 100.1 MB / 0.9013 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/1.396, allocations: 19.98 kB / 0.9013 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003352/1.397, allocations: 57.34 kB / 0.9013 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009085/1.398, allocations: 466.1 kB / 0.9018 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/1.398, allocations: 15.31 kB / 0.9018 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.863e-05/1.398, allocations: 23.88 kB / 0.9018 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005609/1.398, allocations: 398.5 kB / 0.9022 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006086/1.399, allocations: 497.7 kB / 0.9027 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/1.399, allocations: 3.469 kB / 0.9027 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.731e-05/1.399, allocations: 3.969 kB / 0.9027 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.693e-05/1.399, allocations: 34.7 kB / 0.9027 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002685/1.402, allocations: 2.174 MB / 0.9048 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/1.402, allocations: 213.7 kB / 0.9051 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/1.402, allocations: 140.2 kB / 0.9052 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000992/1.403, allocations: 1.038 MB / 0.9062 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/1.403, allocations: 206.3 kB / 0.9064 GB, free: 140.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=18): time 2.224e-06/1.404, allocations: 0 / 0.9064 GB, free: 140.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=18): time 0.0006695/1.404, allocations: 252.3 kB / 0.9066 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/1.404, allocations: 238.5 kB / 0.9069 GB, free: 140 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003741/1.405, allocations: 375.8 kB / 0.9072 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/1.405, allocations: 29.59 kB / 0.9073 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/1.405, allocations: 241.5 kB / 0.9075 GB, free: 139.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 4.936e-05/1.405, allocations: 58.03 kB / 0.9075 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.949e-05/1.405, allocations: 0 / 0.9075 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.784e-05/1.405, allocations: 349 kB / 0.9079 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/1.405, allocations: 125.8 kB / 0.908 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002455/1.405, allocations: 290.8 kB / 0.9083 GB, free: 139.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008189/1.406, allocations: 320.8 kB / 0.9086 GB, free: 139.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/1.406, allocations: 2.062 kB / 0.9086 GB, free: 139.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001193/1.407, allocations: 0.565 MB / 0.9091 GB, free: 139.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002373/1.408, allocations: 1.664 MB / 0.9108 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/1.408, allocations: 3.906 kB / 0.9108 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/1.408, allocations: 7.469 kB / 0.9108 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/1.408, allocations: 72.25 kB / 0.9108 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/1.408, allocations: 10.89 kB / 0.9108 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003989/1.408, allocations: 53.66 kB / 0.9109 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.213e-05/1.409, allocations: 21.38 kB / 0.9109 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.681e-06/1.409, allocations: 3.875 kB / 0.9109 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009029/1.409, allocations: 475.4 kB / 0.9114 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.299e-06/1.409, allocations: 3.969 kB / 0.9114 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.083e-06/1.409, allocations: 7.781 kB / 0.9114 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/1.41, allocations: 80.66 kB / 0.9115 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/1.41, allocations: 11.38 kB / 0.9115 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003239/1.41, allocations: 36.89 kB / 0.9115 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/1.41, allocations: 21.52 kB / 0.9115 GB, free: 137.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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.0001132/1.41, allocations: 144.9 kB / 0.9117 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.717e-05/1.41, allocations: 42.97 kB / 0.9117 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006176/1.411, allocations: 304.1 kB / 0.912 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/1.411, allocations: 7.656 kB / 0.912 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/1.411, allocations: 0 / 0.912 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/1.411, allocations: 2.875 kB / 0.912 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003064/1.411, allocations: 364 kB / 0.9124 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/1.411, allocations: 0 / 0.9124 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/1.411, allocations: 26.81 kB / 0.9124 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/1.411, allocations: 3.906 kB / 0.9124 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/1.411, allocations: 3.969 kB / 0.9124 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/1.411, allocations: 6.531 kB / 0.9124 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/1.411, allocations: 3.188 kB / 0.9124 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004665/1.412, allocations: 299.5 kB / 0.9127 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005134/1.412, allocations: 0.6626 MB / 0.9133 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 8.826e-05/1.413, allocations: 129.5 kB / 0.9134 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.768e-05/1.413, allocations: 0 / 0.9134 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/1.413, allocations: 18.77 kB / 0.9135 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/1.413, allocations: 24.17 kB / 0.9135 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/1.413, allocations: 7.875 kB / 0.9135 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.000232/1.413, allocations: 287.7 kB / 0.9138 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00231/1.416, allocations: 0.5127 MB / 0.9143 GB, free: 136.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001063/1.417, allocations: 0.5021 MB / 0.9148 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0006268/1.417, allocations: 0.5284 MB / 0.9153 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.417, allocations: 2.906 kB / 0.9153 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001293/1.417, allocations: 142.3 kB / 0.9154 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006506/1.418, allocations: 131.9 kB / 0.9155 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009383/1.419, allocations: 0.5242 MB / 0.9161 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003328/1.419, allocations: 0.8996 MB / 0.9169 GB, free: 134.9 MB / 0.5105 GB Notification: Performance of SimCode: time 2.9e-07/1.419, allocations: 6.344 kB / 0.9169 GB, free: 134.9 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1)