Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MEV_MEV.Test.TestPipeSegment.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/MEV 1.1.1-master/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) 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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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(MEV.Test.TestPipeSegment,fileNamePrefix="MEV_MEV_Test_TestPipeSegment",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPipeSegment,fileNamePrefix="MEV_MEV_Test_TestPipeSegment",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.002104/0.002104, allocations: 184.3 kB / 7.462 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.007102/0.007102, allocations: 1.921 MB / 9.793 MB, free: 460 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9938/0.9938, allocations: 205.2 MB / 215.9 MB, free: 11.06 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.0007771/0.0007774, allocations: 76.42 kB / 264.4 MB, free: 10.84 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08124/0.08205, allocations: 54.23 MB / 318.6 MB, free: 4.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.2441, allocations: 48.06 MB / 366.7 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06922/0.3134, allocations: 75.93 MB / 442.6 MB, free: 7.188 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001664/0.3136, allocations: 70.56 kB / 442.7 MB, free: 7.121 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.008803/0.3224, allocations: 3.472 MB / 446.2 MB, free: 3.629 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.033e-05/0.3225, allocations: 13.22 kB / 446.2 MB, free: 3.617 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.835e-05/0.3225, allocations: 23.72 kB / 446.2 MB, free: 3.594 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002097/0.3227, allocations: 206.8 kB / 446.4 MB, free: 3.352 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.3227, allocations: 7.938 kB / 446.4 MB, free: 3.344 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.62e-05/0.3228, allocations: 8 kB / 446.4 MB, free: 3.336 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001794/0.323, allocations: 83.98 kB / 446.5 MB, free: 3.254 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.3231, allocations: 112.2 kB / 446.6 MB, free: 3.141 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.3232, allocations: 0 / 446.6 MB, free: 3.141 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.3232, allocations: 0 / 446.6 MB, free: 3.141 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.3232, allocations: 7.906 kB / 446.6 MB, free: 3.133 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006721/0.3239, allocations: 460.9 kB / 447.1 MB, free: 2.652 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.3241, allocations: 101.7 kB / 447.2 MB, free: 2.547 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.3243, allocations: 92.97 kB / 447.3 MB, free: 2.453 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.3243, allocations: 0 / 447.3 MB, free: 2.453 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.936e-05/0.3243, allocations: 34.56 kB / 447.3 MB, free: 2.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 9.92e-07/0.3243, allocations: 0 / 447.3 MB, free: 2.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.001548/0.3259, allocations: 0.5822 MB / 447.9 MB, free: 1.777 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.3259, allocations: 51.41 kB / 447.9 MB, free: 1.715 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.833e-05/0.326, allocations: 142.9 kB / 448.1 MB, free: 1.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.3261, allocations: 25.7 kB / 448.1 MB, free: 1.539 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.686e-05/0.3261, allocations: 108.4 kB / 448.2 MB, free: 1.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.25e-05/0.3261, allocations: 59.11 kB / 448.3 MB, free: 1.371 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.326e-06/0.3262, allocations: 0 / 448.3 MB, free: 1.371 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.675e-05/0.3263, allocations: 326.7 kB / 448.6 MB, free: 1.043 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.016e-05/0.3263, allocations: 36 kB / 448.6 MB, free: 1.008 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.867e-05/0.3264, allocations: 43.98 kB / 448.7 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.3266, allocations: 43.98 kB / 448.7 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.3266, allocations: 0 / 448.7 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003882/0.327, allocations: 192.7 kB / 448.9 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/0.327, allocations: 99.16 kB / 449 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.327, allocations: 0 / 449 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003205/0.3273, allocations: 68.8 kB / 449 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004764/0.3278, allocations: 63.95 kB / 449.1 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007364/0.3286, allocations: 1.209 MB / 450.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.3287, allocations: 4.031 kB / 450.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.3287, allocations: 7.984 kB / 450.3 MB, free: 15.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.811e-06/0.3287, allocations: 4 kB / 450.3 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003862/0.3291, allocations: 144.7 kB / 450.5 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-06/0.3291, allocations: 4.094 kB / 450.5 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002818/0.3294, allocations: 72.78 kB / 450.6 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.3296, allocations: 51.84 kB / 450.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001298/0.331, allocations: 1.554 MB / 452.2 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.219e-05/0.3311, allocations: 4.062 kB / 452.2 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.3311, allocations: 4 kB / 452.2 MB, free: 13.27 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: pipeSegment.uout:VARIABLE(unit = "m/s" ) "Leaving fluid velocity" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.3312, allocations: 112.7 kB / 452.3 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.734e-05/0.3312, allocations: 11.81 kB / 452.3 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000537/0.3318, allocations: 223.4 kB / 452.5 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.3318, allocations: 7.906 kB / 452.5 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.3318, allocations: 0 / 452.5 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3318, allocations: 0 / 452.5 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.332, allocations: 214.3 kB / 452.7 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.332, allocations: 0 / 452.7 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004386/0.3325, allocations: 67.89 kB / 452.8 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002902/0.3328, allocations: 72.55 kB / 452.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.3328, allocations: 0 / 452.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006679/0.3335, allocations: 1.205 MB / 454.1 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3335, allocations: 0 / 454.1 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005878/0.3341, allocations: 364 kB / 454.4 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007729/0.3349, allocations: 0.7898 MB / 455.2 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.221e-05/0.335, allocations: 97 kB / 455.3 MB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.335, allocations: 8.031 kB / 455.3 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.3351, allocations: 7.984 kB / 455.3 MB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.692e-05/0.3352, allocations: 11.98 kB / 455.3 MB, free: 9.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.3352, allocations: 0 / 455.3 MB, free: 9.945 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.655e-05/0.3353, allocations: 115.2 kB / 455.4 MB, free: 9.832 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00146/0.3367, allocations: 74.84 kB / 455.5 MB, free: 9.762 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (pipeSegment.p) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001261/0.3369, allocations: 95.33 kB / 455.6 MB, free: 9.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008789/0.3378, allocations: 336.4 kB / 455.9 MB, free: 9.324 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3378, allocations: 0 / 455.9 MB, free: 9.324 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004472/0.3382, allocations: 106.9 kB / 456 MB, free: 9.223 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001767/0.3384, allocations: 11.91 kB / 456.1 MB, free: 9.211 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007622/0.3392, allocations: 332.5 kB / 456.4 MB, free: 8.859 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002669/0.3395, allocations: 0.7511 MB / 457.1 MB, free: 8.082 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3395, allocations: 0 / 457.1 MB, free: 8.082 MB / 346.7 MB (rm -f MEV_MEV.Test.TestPipeSegment.pipe ; mkfifo MEV_MEV.Test.TestPipeSegment.pipe ; head -c 1048576 < MEV_MEV.Test.TestPipeSegment.pipe >> ../files/MEV_MEV.Test.TestPipeSegment.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPipeSegment_fmu --startTime=0 --stopTime=0.002 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPipeSegment.fmu > MEV_MEV.Test.TestPipeSegment.pipe 2>&1)