Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.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/Modelica_Synchronous 0.93.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/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(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",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.002407/0.002407, allocations: 181.4 kB / 7.459 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.177/1.177, allocations: 205.2 MB / 213.1 MB, free: 13.91 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.0009745/0.0009748, allocations: 97.48 kB / 261.1 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06574/0.06574, allocations: 12.19 MB / 321.2 MB, free: 1.363 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2958/0.2958, allocations: 78.05 MB / 449.9 MB, free: 3.645 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3431/0.6389, allocations: 76.09 MB / 0.5137 GB, free: 30.3 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.8154, allocations: 69.22 MB / 0.5813 GB, free: 9.172 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4625/1.278, allocations: 99.62 MB / 0.6786 GB, free: 9.383 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/1.278, allocations: 82.11 kB / 0.6786 GB, free: 9.371 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.1025/1.381, allocations: 36.53 MB / 0.7143 GB, free: 11.31 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/1.381, allocations: 11.94 kB / 0.7143 GB, free: 11.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003896/1.385, allocations: 0.5814 MB / 0.7149 GB, free: 10.77 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002091/1.387, allocations: 0.7822 MB / 0.7157 GB, free: 10.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003341/1.387, allocations: 239.4 kB / 0.7159 GB, free: 9.832 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002742/1.388, allocations: 51.91 kB / 0.7159 GB, free: 9.781 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00189/1.39, allocations: 0.8018 MB / 0.7167 GB, free: 9.293 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001806/1.391, allocations: 0.8292 MB / 0.7175 GB, free: 8.715 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/1.391, allocations: 3.938 kB / 0.7175 GB, free: 8.711 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.958e-05/1.391, allocations: 0 / 0.7175 GB, free: 8.711 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.287e-05/1.392, allocations: 23.94 kB / 0.7176 GB, free: 8.688 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00778/1.399, allocations: 3.738 MB / 0.7212 GB, free: 5.695 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/1.401, allocations: 0.6147 MB / 0.7218 GB, free: 5.316 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008638/1.401, allocations: 0.5092 MB / 0.7223 GB, free: 5.039 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001202/1.402, allocations: 20.25 kB / 0.7223 GB, free: 5.023 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/1.403, allocations: 0.6289 MB / 0.7229 GB, free: 4.594 MB / 458.7 MB Notification: Performance of pre-optimization done (n=96): time 4.088e-06/1.403, allocations: 3.938 kB / 0.7229 GB, free: 4.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=96): time 0.01364/1.416, allocations: 4.173 MB / 0.727 GB, free: 0.9336 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.07e-05/1.416, allocations: 115.6 kB / 0.7271 GB, free: 0.793 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002062/1.419, allocations: 0.805 MB / 0.7279 GB, free: 204 kB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003001/1.419, allocations: 29.7 kB / 0.7279 GB, free: 168 kB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003655/1.419, allocations: 322.3 kB / 0.7282 GB, free: 15.89 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006835/1.42, allocations: 330.9 kB / 0.7286 GB, free: 15.61 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/1.42, allocations: 32 / 0.7286 GB, free: 15.61 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002042/1.42, allocations: 351.5 kB / 0.7289 GB, free: 15.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/1.421, allocations: 441.8 kB / 0.7293 GB, free: 15.04 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/1.422, allocations: 0.5603 MB / 0.7299 GB, free: 14.66 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/1.424, allocations: 495 kB / 0.7303 GB, free: 14.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/1.424, allocations: 11.88 kB / 0.7303 GB, free: 14.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01372/1.437, allocations: 4.188 MB / 0.7344 GB, free: 10.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.305e-05/1.437, allocations: 11.91 kB / 0.7344 GB, free: 10.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.952e-05/1.437, allocations: 0 / 0.7344 GB, free: 10.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006352/1.444, allocations: 1.564 MB / 0.736 GB, free: 9.316 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/1.445, allocations: 185.8 kB / 0.7362 GB, free: 9.141 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01513/1.46, allocations: 6.019 MB / 0.742 GB, free: 3.078 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/1.462, allocations: 183.2 kB / 0.7422 GB, free: 2.898 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002335/1.462, allocations: 39.98 kB / 0.7422 GB, free: 2.859 MB / 474.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real aVRTypeII.firstOrder2.y:VARIABLE(start = aVRTypeII.firstOrder2.y_start ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005457/1.463, allocations: 163.3 kB / 0.7424 GB, free: 2.688 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004934/1.463, allocations: 118.5 kB / 0.7425 GB, free: 2.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01368/1.477, allocations: 4.276 MB / 0.7467 GB, free: 14.27 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.229e-05/1.477, allocations: 12 kB / 0.7467 GB, free: 14.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.939e-05/1.477, allocations: 8 kB / 0.7467 GB, free: 14.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.56e-05/1.477, allocations: 11.83 kB / 0.7467 GB, free: 14.23 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01594/1.493, allocations: 5.651 MB / 0.7522 GB, free: 8.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/1.493, allocations: 0 / 0.7522 GB, free: 8.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008339/1.494, allocations: 103.9 kB / 0.7523 GB, free: 8.398 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005297/1.499, allocations: 1.536 MB / 0.7538 GB, free: 6.855 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002431/1.5, allocations: 4 kB / 0.7538 GB, free: 6.852 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01513/1.515, allocations: 7.141 MB / 0.7608 GB, free: 15.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/1.515, allocations: 0 / 0.7608 GB, free: 15.47 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01492/1.53, allocations: 5.023 MB / 0.7657 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01618/1.546, allocations: 6.124 MB / 0.7717 GB, free: 4.25 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006105/1.547, allocations: 223.3 kB / 0.7719 GB, free: 4.012 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004035/1.547, allocations: 4 kB / 0.7719 GB, free: 4.008 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/1.549, allocations: 143.8 kB / 0.772 GB, free: 3.867 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005386/1.549, allocations: 112.8 kB / 0.7722 GB, free: 3.758 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001725/1.549, allocations: 31.98 kB / 0.7722 GB, free: 3.727 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001687/1.551, allocations: 0.6136 MB / 0.7728 GB, free: 3.105 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003635/1.555, allocations: 387.5 kB / 0.7732 GB, free: 2.727 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(18,25.9%) 14} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005583/1.555, allocations: 142.8 kB / 0.7733 GB, free: 2.574 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008788/1.564, allocations: 1.938 MB / 0.7752 GB, free: 0.6133 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/1.564, allocations: 0 / 0.7752 GB, free: 0.6133 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006981/1.571, allocations: 1.486 MB / 0.7766 GB, free: 15.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/1.573, allocations: 88.36 kB / 0.7767 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008651/1.581, allocations: 1.732 MB / 0.7784 GB, free: 13.24 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001922/1.583, allocations: 1.214 MB / 0.7796 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of SimCode: time 1.092e-06/1.583, allocations: 0 / 0.7796 GB, free: 11.99 MB / 0.5105 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)