Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.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.ThreeArea.ThirdOrder_AVRI,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRI",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.002697/0.002697, allocations: 179.3 kB / 7.461 MB, free: 2.508 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.259/1.259, allocations: 205.2 MB / 213.1 MB, free: 13.85 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.0009749/0.0009748, allocations: 97.11 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.07562/0.07562, allocations: 12.18 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.2802/0.2802, allocations: 78.04 MB / 449.9 MB, free: 3.668 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2296/0.5099, allocations: 76.09 MB / 0.5137 GB, free: 30.35 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.6372, allocations: 69.23 MB / 0.5813 GB, free: 9.219 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3509/0.9881, allocations: 99.9 MB / 0.6788 GB, free: 9.277 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.9883, allocations: 77.27 kB / 0.6789 GB, free: 9.266 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: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.1844/1.173, allocations: 67.78 MB / 0.7451 GB, free: 388 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/1.173, allocations: 12.88 kB / 0.7451 GB, free: 376 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.012/1.185, allocations: 1.67 MB / 0.7467 GB, free: 14.69 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005358/1.19, allocations: 1.65 MB / 0.7483 GB, free: 12.98 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006952/1.191, allocations: 0.6241 MB / 0.749 GB, free: 12.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007742/1.192, allocations: 127.9 kB / 0.7491 GB, free: 12.12 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00493/1.197, allocations: 2.222 MB / 0.7512 GB, free: 9.895 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004641/1.201, allocations: 2.267 MB / 0.7535 GB, free: 7.551 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.635e-05/1.201, allocations: 0 / 0.7535 GB, free: 7.551 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002281/1.202, allocations: 4 kB / 0.7535 GB, free: 7.547 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.435e-05/1.202, allocations: 48 kB / 0.7535 GB, free: 7.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02275/1.224, allocations: 9.899 MB / 0.7632 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003132/1.228, allocations: 1.568 MB / 0.7647 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002422/1.23, allocations: 1.446 MB / 0.7661 GB, free: 10.16 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002915/1.23, allocations: 50.02 kB / 0.7662 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.241e-05/1.231, allocations: 68.56 kB / 0.7662 GB, free: 10.03 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=241): time 4.037e-06/1.231, allocations: 0 / 0.7662 GB, free: 10.03 MB / 0.4948 GB Notification: Performance of matching and sorting (n=241): time 0.04048/1.271, allocations: 12.87 MB / 0.7788 GB, free: 13.13 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000141/1.271, allocations: 231.6 kB / 0.779 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003078/1.274, allocations: 1.704 MB / 0.7807 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006462/1.275, allocations: 25.7 kB / 0.7807 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004813/1.275, allocations: 0.7074 MB / 0.7814 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0017/1.277, allocations: 0.8004 MB / 0.7822 GB, free: 9.586 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/1.277, allocations: 4 kB / 0.7822 GB, free: 9.582 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001783/1.278, allocations: 390.5 kB / 0.7826 GB, free: 9.195 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002167/1.28, allocations: 1.188 MB / 0.7837 GB, free: 8.004 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002272/1.282, allocations: 1.488 MB / 0.7852 GB, free: 6.414 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/1.284, allocations: 1.315 MB / 0.7865 GB, free: 5.066 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/1.284, allocations: 0 / 0.7865 GB, free: 5.066 MB / 0.5105 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.03975/1.324, allocations: 12.93 MB / 0.7991 GB, free: 8.066 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001188/1.325, allocations: 2.756 MB / 0.8018 GB, free: 5.109 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.195e-05/1.325, allocations: 11.98 kB / 0.8018 GB, free: 5.098 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01787/1.343, allocations: 5.083 MB / 0.8068 GB, free: 8 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002381/1.346, allocations: 379.5 kB / 0.8071 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04044/1.386, allocations: 15.14 MB / 0.8219 GB, free: 364 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004881/1.391, allocations: 0.5017 MB / 0.8224 GB, free: 15.85 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008501/1.392, allocations: 79.97 kB / 0.8225 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/1.392, allocations: 4 kB / 0.8225 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03985/1.432, allocations: 12.6 MB / 0.8348 GB, free: 3.121 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.941e-05/1.432, allocations: 8 kB / 0.8348 GB, free: 3.113 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0172/1.449, allocations: 5.087 MB / 0.8398 GB, free: 14.02 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002384/1.452, allocations: 363.5 kB / 0.8401 GB, free: 13.66 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.325/1.777, allocations: 15.13 MB / 0.8549 GB, free: 124.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004225/1.781, allocations: 480.8 kB / 0.8553 GB, free: 124.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004734/1.781, allocations: 84.83 kB / 0.8554 GB, free: 124.3 MB / 0.573 GB Warning: Assuming fixed start value for the following 6 variables: order3_1.e1q:VARIABLE(start = order3_1.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order3_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3_1.delta:VARIABLE(start = order3_1.delta0 unit = "rad" ) "Rotor angle" type: Real order2.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(start = order2.delta0 unit = "rad" ) "Rotor angle" type: Real order3_2.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 203 * Array equations: 0 * Algorithm blocks: 4 * 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 {64 25} Notification: Performance of prepare postOptimizeDAE: time 0.0007234/1.782, allocations: 203.8 kB / 0.8556 GB, free: 124.1 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007736/1.783, allocations: 297 kB / 0.8559 GB, free: 124.1 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03781/1.821, allocations: 13.13 MB / 0.8687 GB, free: 124 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.129e-05/1.821, allocations: 27.09 kB / 0.8687 GB, free: 124 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.74e-05/1.821, allocations: 16.84 kB / 0.8688 GB, free: 124 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000118/1.821, allocations: 15.39 kB / 0.8688 GB, free: 124 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04448/1.865, allocations: 16.63 MB / 0.885 GB, free: 123.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.37e-05/1.866, allocations: 0 / 0.885 GB, free: 123.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00236/1.868, allocations: 275.1 kB / 0.8853 GB, free: 123.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01528/1.883, allocations: 5.005 MB / 0.8902 GB, free: 122.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006111/1.884, allocations: 17.52 kB / 0.8902 GB, free: 122.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03522/1.919, allocations: 13.69 MB / 0.9035 GB, free: 121.1 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/1.919, allocations: 9.562 kB / 0.9036 GB, free: 121.1 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04541/1.965, allocations: 15.12 MB / 0.9183 GB, free: 119.4 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04688/2.012, allocations: 17.55 MB / 0.9355 GB, free: 106.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001199/2.013, allocations: 407.4 kB / 0.9358 GB, free: 106.6 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009506/2.014, allocations: 14.16 kB / 0.9359 GB, free: 106.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003834/2.018, allocations: 386.3 kB / 0.9362 GB, free: 106.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001013/2.019, allocations: 319.7 kB / 0.9365 GB, free: 106.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002422/2.019, allocations: 59.19 kB / 0.9366 GB, free: 106 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001874/2.021, allocations: 1.277 MB / 0.9378 GB, free: 104.9 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.005479/2.026, allocations: 1.6 MB / 0.9394 GB, free: 103.3 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,Exc1.firstOrder.y,Exc1.firstOrder2.y,Exc1.transferFunction.x_scaled[1],Exc1.transferFunction.x_scaled[2],Exc2.firstOrder.y,Exc2.firstOrder2.y,Exc2.transferFunction.x_scaled[1],Exc2.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 159 * 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: 1 {(65,7.8%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004715/2.027, allocations: 141.1 kB / 0.9395 GB, free: 103.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02653/2.053, allocations: 9.574 MB / 0.9489 GB, free: 94.6 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/2.053, allocations: 0 / 0.9489 GB, free: 94.6 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01215/2.065, allocations: 3.95 MB / 0.9527 GB, free: 91.12 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002602/2.068, allocations: 192.7 kB / 0.9529 GB, free: 90.95 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/2.08, allocations: 4.21 MB / 0.957 GB, free: 87.14 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001911/2.082, allocations: 1.972 MB / 0.959 GB, free: 85.56 MB / 0.573 GB Notification: Performance of SimCode: time 1.022e-06/2.082, allocations: 0 / 0.959 GB, free: 85.56 MB / 0.573 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRI.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRI.pipe 2>&1)