Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_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.TwoArea.FifthOrder_AVRI,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRI,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_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.003192/0.003192, allocations: 179 kB / 7.46 MB, free: 2.512 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.283/1.283, allocations: 205.2 MB / 213.1 MB, free: 13.88 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.0008417/0.0008417, allocations: 87.56 kB / 261.1 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06978/0.06978, allocations: 12.2 MB / 321.2 MB, free: 1.309 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2788/0.2788, allocations: 78.05 MB / 449.9 MB, free: 3.672 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2842/0.5631, allocations: 76.08 MB / 0.5137 GB, free: 30.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.7011, allocations: 69.24 MB / 0.5813 GB, free: 9.172 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3655/1.067, allocations: 102.9 MB / 0.6818 GB, free: 6.09 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002886/1.067, allocations: 76.89 kB / 0.6819 GB, free: 6.051 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: 891 * Number of variables: 891 Notification: Performance of Generate backend data structure: time 0.2817/1.349, allocations: 101.2 MB / 0.7807 GB, free: 11.54 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/1.349, allocations: 15.94 kB / 0.7807 GB, free: 11.52 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01945/1.368, allocations: 2.924 MB / 0.7835 GB, free: 8.59 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006743/1.375, allocations: 2.29 MB / 0.7858 GB, free: 6.223 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001126/1.376, allocations: 0.854 MB / 0.7866 GB, free: 5.238 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002144/1.378, allocations: 204 kB / 0.7868 GB, free: 5.039 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01019/1.388, allocations: 3.447 MB / 0.7902 GB, free: 1.59 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/1.399, allocations: 3.595 MB / 0.7937 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.211e-05/1.399, allocations: 0 / 0.7937 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003755/1.399, allocations: 0 / 0.7937 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.757e-05/1.399, allocations: 87.91 kB / 0.7938 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03835/1.438, allocations: 18.66 MB / 0.812 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003941/1.441, allocations: 2.263 MB / 0.8142 GB, free: 7.84 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003455/1.445, allocations: 2.116 MB / 0.8163 GB, free: 5.715 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004402/1.445, allocations: 78.89 kB / 0.8163 GB, free: 5.637 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.267e-05/1.445, allocations: 69.55 kB / 0.8164 GB, free: 5.559 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=381): time 6.031e-06/1.446, allocations: 0 / 0.8164 GB, free: 5.559 MB / 0.5417 GB Notification: Performance of matching and sorting (n=381): time 0.05797/1.503, allocations: 18.26 MB / 0.8342 GB, free: 3.246 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/1.504, allocations: 175.5 kB / 0.8344 GB, free: 3.043 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004448/1.508, allocations: 2.468 MB / 0.8368 GB, free: 0.5625 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0009313/1.509, allocations: 25.7 kB / 0.8368 GB, free: 0.5312 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007503/1.51, allocations: 1.174 MB / 0.838 GB, free: 15.34 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00283/1.513, allocations: 1.254 MB / 0.8392 GB, free: 14.07 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002883/1.513, allocations: 0 / 0.8392 GB, free: 14.07 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002339/1.513, allocations: 437.6 kB / 0.8396 GB, free: 13.63 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003157/1.516, allocations: 1.765 MB / 0.8414 GB, free: 11.87 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003562/1.52, allocations: 2.334 MB / 0.8436 GB, free: 9.336 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003488/1.523, allocations: 1.964 MB / 0.8456 GB, free: 7.355 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.357e-05/1.523, allocations: 4 kB / 0.8456 GB, free: 7.352 MB / 0.573 GB Notification: Performance of matching and sorting (n=461) (initialization): time 0.3069/1.83, allocations: 18.36 MB / 0.8635 GB, free: 97.15 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009962/1.831, allocations: 6.609 MB / 0.8699 GB, free: 90.28 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.025e-05/1.831, allocations: 18.56 kB / 0.87 GB, free: 90.28 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02383/1.855, allocations: 7.11 MB / 0.8769 GB, free: 90.23 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00326/1.859, allocations: 0.5627 MB / 0.8774 GB, free: 90.23 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05305/1.912, allocations: 21.97 MB / 0.8989 GB, free: 88.25 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005829/1.917, allocations: 0.6665 MB / 0.8996 GB, free: 88.12 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006275/1.918, allocations: 130.7 kB / 0.8997 GB, free: 88.12 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 8.285e-06/1.918, allocations: 3.594 kB / 0.8997 GB, free: 88.12 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05079/1.969, allocations: 17.86 MB / 0.9171 GB, free: 86.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.82e-05/1.969, allocations: 11.84 kB / 0.9171 GB, free: 86.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02463/1.994, allocations: 7.11 MB / 0.9241 GB, free: 86.25 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00346/1.997, allocations: 0.5516 MB / 0.9246 GB, free: 86.25 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05983/2.057, allocations: 21.97 MB / 0.9461 GB, free: 81.29 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006615/2.064, allocations: 0.6415 MB / 0.9467 GB, free: 81.16 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005748/2.064, allocations: 129.2 kB / 0.9468 GB, free: 81.14 MB / 0.573 GB Warning: Assuming fixed start value for the following 5 variables: order5.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order5.e2d:VARIABLE(start = order5.e2d0 unit = "1" ) "d-axis sub-transient voltage" type: Real order5.e2q:VARIABLE(start = order5.e2q0 unit = "1" ) "q-axis sub-transient voltage" type: Real order5.e1q:VARIABLE(start = order5.e1q0 unit = "1" ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (327): * Single equations (assignments): 324 * 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 {92 43} Notification: Performance of prepare postOptimizeDAE: time 0.001035/2.065, allocations: 201.4 kB / 0.947 GB, free: 81 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/2.066, allocations: 458.4 kB / 0.9475 GB, free: 80.76 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05203/2.118, allocations: 18.69 MB / 0.9657 GB, free: 66.21 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.264e-05/2.119, allocations: 36 kB / 0.9657 GB, free: 66.17 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.02e-05/2.119, allocations: 30.16 kB / 0.9658 GB, free: 66.14 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.314e-05/2.119, allocations: 22.7 kB / 0.9658 GB, free: 66.14 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05894/2.178, allocations: 23.6 MB / 0.9888 GB, free: 48.08 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.601e-05/2.178, allocations: 3.328 kB / 0.9888 GB, free: 48.08 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002782/2.18, allocations: 406.5 kB / 0.9892 GB, free: 47.75 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02273/2.203, allocations: 7.161 MB / 0.9962 GB, free: 42.15 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001139/2.204, allocations: 19.75 kB / 0.9962 GB, free: 42.14 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04849/2.253, allocations: 20.13 MB / 1.016 GB, free: 24.25 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.335e-06/2.253, allocations: 1.641 kB / 1.016 GB, free: 24.25 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0598/2.313, allocations: 21.61 MB / 1.037 GB, free: 6.363 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0696/2.382, allocations: 25.13 MB / 1.062 GB, free: 15.19 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00197/2.384, allocations: 0.5528 MB / 1.062 GB, free: 14.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001867/2.386, allocations: 12 kB / 1.062 GB, free: 14.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005935/2.392, allocations: 475.5 kB / 1.063 GB, free: 14.19 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001842/2.394, allocations: 452.8 kB / 1.063 GB, free: 13.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004125/2.395, allocations: 91.98 kB / 1.063 GB, free: 13.66 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.003415/2.398, allocations: 1.825 MB / 1.065 GB, free: 11.83 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01171/2.41, allocations: 2.591 MB / 1.067 GB, free: 9.367 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order3.delta,order3.w,order3.e1q,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,aVRTypeI.firstOrder.y,aVRTypeI.firstOrder2.y,aVRTypeI.transferFunction.x_scaled[1],aVRTypeI.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (251): * Single equations (assignments): 249 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(96,5.5%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007993/2.411, allocations: 162.9 kB / 1.068 GB, free: 9.238 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.04428/2.455, allocations: 13.89 MB / 1.081 GB, free: 11.41 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/2.455, allocations: 6.531 kB / 1.081 GB, free: 11.41 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0196/2.475, allocations: 5.779 MB / 1.087 GB, free: 5.66 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004273/2.479, allocations: 242.1 kB / 1.087 GB, free: 5.418 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2779/2.757, allocations: 6.356 MB / 1.093 GB, free: 147.8 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003869/2.761, allocations: 2.697 MB / 1.096 GB, free: 147 MB / 0.6198 GB Notification: Performance of SimCode: time 2.234e-06/2.761, allocations: 0 / 1.096 GB, free: 147 MB / 0.6198 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRI.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRI.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRI.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRI.pipe 2>&1)