Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestGT.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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(ThermoPower.Test.GasComponents.TestGT,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestGT,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGT",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.0009839/0.0009836, allocations: 171.6 kB / 8.13 MB, free: 0.8398 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.028/1.028, allocations: 205.2 MB / 213.7 MB, free: 8.461 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008278/0.0008278, allocations: 99.02 kB / 261.7 MB, free: 5.09 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2045/0.2045, allocations: 48.77 MB / 358.5 MB, free: 5.996 MB / 306.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1716/0.3762, allocations: 66.35 MB / 424.8 MB, free: 61.96 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08227/0.4585, allocations: 60.25 MB / 485.1 MB, free: 1.598 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.179/1.637, allocations: 0.7545 GB / 1.228 GB, free: 100.4 MB / 0.5183 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/1.637, allocations: 83.3 kB / 1.228 GB, free: 100.4 MB / 0.5183 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 1.192/2.829, allocations: 477.1 MB / 1.694 GB, free: 46.23 MB / 0.5183 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/2.829, allocations: 8 kB / 1.694 GB, free: 46.23 MB / 0.5183 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00111/2.83, allocations: 301 kB / 1.694 GB, free: 45.93 MB / 0.5183 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002735/2.833, allocations: 1.435 MB / 1.696 GB, free: 44.42 MB / 0.5183 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.824e-05/2.833, allocations: 67.69 kB / 1.696 GB, free: 44.35 MB / 0.5183 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/2.833, allocations: 56 kB / 1.696 GB, free: 44.3 MB / 0.5183 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001124/2.834, allocations: 0.7185 MB / 1.697 GB, free: 43.58 MB / 0.5183 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/2.836, allocations: 0.9881 MB / 1.698 GB, free: 42.53 MB / 0.5183 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/2.836, allocations: 3.938 kB / 1.698 GB, free: 42.52 MB / 0.5183 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/2.836, allocations: 7.906 kB / 1.698 GB, free: 42.52 MB / 0.5183 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.535e-05/2.836, allocations: 34 kB / 1.698 GB, free: 42.48 MB / 0.5183 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006277/2.842, allocations: 4.945 MB / 1.703 GB, free: 37.33 MB / 0.5183 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003885/2.843, allocations: 212.8 kB / 1.703 GB, free: 37.11 MB / 0.5183 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001719/2.843, allocations: 130.4 kB / 1.703 GB, free: 36.97 MB / 0.5183 GB Notification: Performance of preOpt evalFunc (simulation): time 4.294e-05/2.843, allocations: 11.86 kB / 1.703 GB, free: 36.96 MB / 0.5183 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/2.843, allocations: 46.75 kB / 1.703 GB, free: 36.91 MB / 0.5183 GB Notification: Performance of pre-optimization done (n=38): time 2.434e-06/2.843, allocations: 0 / 1.703 GB, free: 36.91 MB / 0.5183 GB Notification: Performance of matching and sorting (n=40): time 0.002199/2.845, allocations: 1.429 MB / 1.704 GB, free: 35.41 MB / 0.5183 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.348e-05/2.845, allocations: 81.11 kB / 1.704 GB, free: 35.31 MB / 0.5183 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003019/2.848, allocations: 2.579 MB / 1.707 GB, free: 32.7 MB / 0.5183 GB Notification: Performance of collectPreVariables (initialization): time 5.817e-05/2.848, allocations: 33.73 kB / 1.707 GB, free: 32.66 MB / 0.5183 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002292/2.848, allocations: 0.5694 MB / 1.707 GB, free: 32.08 MB / 0.5183 GB Notification: Performance of collectInitialBindings (initialization): time 8.981e-05/2.849, allocations: 137.9 kB / 1.708 GB, free: 31.94 MB / 0.5183 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-05/2.849, allocations: 4 kB / 1.708 GB, free: 31.94 MB / 0.5183 GB Notification: Performance of setup shared object (initialization): time 4.802e-05/2.849, allocations: 330 kB / 1.708 GB, free: 31.61 MB / 0.5183 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/2.849, allocations: 189.2 kB / 1.708 GB, free: 31.42 MB / 0.5183 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002929/2.849, allocations: 385.4 kB / 1.708 GB, free: 30.96 MB / 0.5183 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003108/2.849, allocations: 244.6 kB / 1.709 GB, free: 30.73 MB / 0.5183 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/2.849, allocations: 8 kB / 1.709 GB, free: 30.72 MB / 0.5183 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0009476/2.85, allocations: 0.7392 MB / 1.709 GB, free: 29.97 MB / 0.5183 GB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/2.85, allocations: 11.92 kB / 1.709 GB, free: 29.96 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/2.85, allocations: 8 kB / 1.709 GB, free: 29.95 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/2.85, allocations: 12 kB / 1.709 GB, free: 29.94 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009957/2.851, allocations: 211.8 kB / 1.71 GB, free: 29.73 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004099/2.852, allocations: 1.219 MB / 1.711 GB, free: 28.47 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006745/2.853, allocations: 20.11 kB / 1.711 GB, free: 28.45 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.416e-05/2.853, allocations: 43.94 kB / 1.711 GB, free: 28.41 MB / 0.5183 GB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: GTunit.ZLPout_ISO:VARIABLE(unit = "W" ) "zero_loss power output, referred to ISO conditions " type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 1 (BooleanStep1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001519/2.853, allocations: 124.7 kB / 1.711 GB, free: 28.28 MB / 0.5183 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/2.853, allocations: 185.7 kB / 1.711 GB, free: 28.09 MB / 0.5183 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006282/2.854, allocations: 487.4 kB / 1.712 GB, free: 27.61 MB / 0.5183 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/2.854, allocations: 4 kB / 1.712 GB, free: 27.61 MB / 0.5183 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/2.854, allocations: 0 / 1.712 GB, free: 27.61 MB / 0.5183 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/2.854, allocations: 4 kB / 1.712 GB, free: 27.61 MB / 0.5183 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/2.856, allocations: 1.881 MB / 1.714 GB, free: 25.67 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/2.856, allocations: 0 / 1.714 GB, free: 25.67 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007582/2.857, allocations: 135.8 kB / 1.714 GB, free: 25.54 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.982e-06/2.857, allocations: 4.062 kB / 1.714 GB, free: 25.53 MB / 0.5183 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/2.857, allocations: 8 kB / 1.714 GB, free: 25.52 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00036/2.857, allocations: 1.203 MB / 1.715 GB, free: 24.27 MB / 0.5183 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/2.857, allocations: 4.219 kB / 1.715 GB, free: 24.27 MB / 0.5183 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007334/2.858, allocations: 0.7231 MB / 1.716 GB, free: 23.5 MB / 0.5183 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009941/2.859, allocations: 1.298 MB / 1.717 GB, free: 22.16 MB / 0.5183 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006367/2.86, allocations: 446.6 kB / 1.717 GB, free: 21.7 MB / 0.5183 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002303/2.86, allocations: 8 kB / 1.717 GB, free: 21.7 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007486/2.861, allocations: 35.95 kB / 1.717 GB, free: 21.66 MB / 0.5183 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.541e-05/2.861, allocations: 19.72 kB / 1.717 GB, free: 21.64 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.053e-05/2.861, allocations: 28.22 kB / 1.717 GB, free: 21.61 MB / 0.5183 GB Notification: Performance of sort global known variables: time 0.001944/2.863, allocations: 1.969 MB / 1.719 GB, free: 19.62 MB / 0.5183 GB Notification: Performance of remove unused functions: time 0.001806/2.865, allocations: 467.9 kB / 1.72 GB, free: 19.17 MB / 0.5183 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (Generator.phi,Generator.omega_m,Generator.omega_e_filt,Grid.port.theta) * Number of discrete variables: 1 (BooleanStep1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001946/2.866, allocations: 1.291 MB / 1.721 GB, free: 17.88 MB / 0.5183 GB Notification: Performance of simCode: created initialization part: time 0.000804/2.867, allocations: 431.4 kB / 1.721 GB, free: 17.46 MB / 0.5183 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/2.867, allocations: 0.7344 kB / 1.721 GB, free: 17.46 MB / 0.5183 GB Notification: Performance of simCode: created simulation system equations: time 0.0003088/2.868, allocations: 160.5 kB / 1.722 GB, free: 17.3 MB / 0.5183 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/2.869, allocations: 266.3 kB / 1.722 GB, free: 17.04 MB / 0.5183 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004838/2.874, allocations: 2.938 MB / 1.725 GB, free: 14.05 MB / 0.5183 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001325/2.875, allocations: 1.638 MB / 1.726 GB, free: 12.38 MB / 0.5183 GB Notification: Performance of SimCode: time 2.41e-07/2.875, allocations: 0 / 1.726 GB, free: 12.38 MB / 0.5183 GB (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestGT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_GasComponents_TestGT_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_GasComponents_TestGT.fmu > ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe 2>&1)