Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001202/0.001202, allocations: 199.2 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009374/0.0009375, allocations: 88.2 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1793/0.1793, allocations: 45.15 MB / 383.3 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.228/0.4074, allocations: 69.38 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09779/0.5052, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6358/1.141, allocations: 317.7 MB / 0.8142 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/1.141, allocations: 93.66 kB / 0.8143 GB, free: 154.2 MB / 0.5261 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.2102/1.352, allocations: 99.88 MB / 0.9118 GB, free: 53.69 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/1.352, allocations: 11.94 kB / 0.9118 GB, free: 53.68 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/1.352, allocations: 59.34 kB / 0.9119 GB, free: 53.62 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008362/1.353, allocations: 467.9 kB / 0.9123 GB, free: 53.13 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/1.353, allocations: 8 kB / 0.9123 GB, free: 53.12 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.909e-05/1.353, allocations: 16 kB / 0.9123 GB, free: 53.11 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005777/1.353, allocations: 405.2 kB / 0.9127 GB, free: 52.71 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006036/1.354, allocations: 487 kB / 0.9132 GB, free: 52.19 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/1.354, allocations: 11.94 kB / 0.9132 GB, free: 52.18 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.623e-05/1.354, allocations: 0 / 0.9132 GB, free: 52.18 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.421e-05/1.354, allocations: 28.64 kB / 0.9132 GB, free: 52.15 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002716/1.357, allocations: 2.198 MB / 0.9154 GB, free: 49.82 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/1.357, allocations: 226.6 kB / 0.9156 GB, free: 49.59 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/1.357, allocations: 124.8 kB / 0.9157 GB, free: 49.47 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009964/1.358, allocations: 1.037 MB / 0.9167 GB, free: 48.31 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/1.359, allocations: 200.5 kB / 0.9169 GB, free: 48.09 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=18): time 1.884e-06/1.359, allocations: 0 / 0.9169 GB, free: 48.09 MB / 0.5261 GB Notification: Performance of matching and sorting (n=18): time 0.0006422/1.359, allocations: 252.2 kB / 0.9171 GB, free: 47.84 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/1.359, allocations: 239.3 kB / 0.9174 GB, free: 47.55 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003599/1.36, allocations: 381 kB / 0.9177 GB, free: 47.17 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/1.36, allocations: 25.7 kB / 0.9178 GB, free: 47.14 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.909e-05/1.36, allocations: 243.2 kB / 0.918 GB, free: 46.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.325e-05/1.36, allocations: 55.2 kB / 0.918 GB, free: 46.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.905e-05/1.36, allocations: 0 / 0.918 GB, free: 46.84 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.423e-05/1.36, allocations: 358.8 kB / 0.9184 GB, free: 46.48 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/1.36, allocations: 116.4 kB / 0.9185 GB, free: 46.37 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/1.36, allocations: 284 kB / 0.9188 GB, free: 46.02 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/1.362, allocations: 369.4 kB / 0.9191 GB, free: 45.65 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/1.362, allocations: 4 kB / 0.9191 GB, free: 45.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001565/1.363, allocations: 0.6166 MB / 0.9197 GB, free: 45.03 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002525/1.363, allocations: 1.657 MB / 0.9213 GB, free: 43.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/1.363, allocations: 7.938 kB / 0.9214 GB, free: 43.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/1.363, allocations: 8 kB / 0.9214 GB, free: 43.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003133/1.364, allocations: 79.84 kB / 0.9214 GB, free: 43.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/1.364, allocations: 11.92 kB / 0.9215 GB, free: 43.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004262/1.364, allocations: 47.52 kB / 0.9215 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.091e-05/1.364, allocations: 23.98 kB / 0.9215 GB, free: 43.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.845e-06/1.364, allocations: 4 kB / 0.9215 GB, free: 43.06 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001362/1.366, allocations: 0.5186 MB / 0.922 GB, free: 42.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/1.366, allocations: 4 kB / 0.922 GB, free: 42.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.005e-06/1.366, allocations: 8 kB / 0.922 GB, free: 42.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000275/1.366, allocations: 76.45 kB / 0.9221 GB, free: 42.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/1.366, allocations: 7.938 kB / 0.9221 GB, free: 42.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003915/1.366, allocations: 35.73 kB / 0.9222 GB, free: 42.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-05/1.366, allocations: 20 kB / 0.9222 GB, free: 42.39 MB / 0.5261 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.0001366/1.367, allocations: 154.5 kB / 0.9223 GB, free: 42.23 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.808e-05/1.367, allocations: 47.44 kB / 0.9224 GB, free: 42.18 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006643/1.367, allocations: 296.4 kB / 0.9226 GB, free: 41.88 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/1.367, allocations: 7.984 kB / 0.9227 GB, free: 41.88 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/1.367, allocations: 0 / 0.9227 GB, free: 41.88 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/1.367, allocations: 3.906 kB / 0.9227 GB, free: 41.87 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003481/1.368, allocations: 365.8 kB / 0.923 GB, free: 41.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/1.368, allocations: 0 / 0.923 GB, free: 41.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/1.368, allocations: 27.98 kB / 0.923 GB, free: 41.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/1.368, allocations: 4 kB / 0.923 GB, free: 41.45 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.097e-05/1.368, allocations: 4 kB / 0.923 GB, free: 41.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/1.368, allocations: 3.938 kB / 0.923 GB, free: 41.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.368, allocations: 0 / 0.923 GB, free: 41.44 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005146/1.368, allocations: 297.1 kB / 0.9233 GB, free: 41.13 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005514/1.369, allocations: 0.6727 MB / 0.924 GB, free: 40.44 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/1.369, allocations: 128.5 kB / 0.9241 GB, free: 40.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.525e-05/1.369, allocations: 4 kB / 0.9241 GB, free: 40.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002739/1.37, allocations: 11.98 kB / 0.9241 GB, free: 40.28 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.091e-05/1.37, allocations: 15.97 kB / 0.9241 GB, free: 40.26 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-05/1.37, allocations: 15.98 kB / 0.9242 GB, free: 40.25 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002592/1.37, allocations: 291.1 kB / 0.9244 GB, free: 39.96 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002537/1.372, allocations: 0.5303 MB / 0.925 GB, free: 39.43 MB / 0.5261 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.001406/1.374, allocations: 0.505 MB / 0.9254 GB, free: 38.92 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0008037/1.375, allocations: 0.5286 MB / 0.926 GB, free: 38.38 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/1.375, allocations: 2.25 kB / 0.926 GB, free: 38.38 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001381/1.375, allocations: 141.6 kB / 0.9261 GB, free: 38.23 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007755/1.376, allocations: 149.1 kB / 0.9262 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/1.377, allocations: 0.5287 MB / 0.9268 GB, free: 37.54 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000371/1.377, allocations: 0.8977 MB / 0.9276 GB, free: 36.62 MB / 0.5261 GB Notification: Performance of SimCode: time 6.71e-07/1.377, allocations: 0 / 0.9276 GB, free: 36.62 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1)