Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009281/0.009281, allocations: 101.1 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 222.9 MB / 239.4 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 196.1 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.558/0.558, allocations: 91.9 MB / 431.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 80.41 kB / 0.5724 GB, free: 33.72 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1542, allocations: 71.29 MB / 0.642 GB, free: 3.977 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01906/0.1733, allocations: 21.84 MB / 0.6633 GB, free: 14.05 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01318/0.1866, allocations: 4.853 MB / 0.668 GB, free: 9.176 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005726/0.1923, allocations: 44 kB / 0.6681 GB, free: 9.133 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003923/0.1963, allocations: 0.8828 MB / 0.6689 GB, free: 8.242 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01077/0.2072, allocations: 2.282 MB / 0.6712 GB, free: 5.949 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007444/0.2146, allocations: 2.055 MB / 0.6732 GB, free: 3.926 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01215/0.2268, allocations: 5.72 MB / 0.6788 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00409/0.2309, allocations: 1.316 MB / 0.6801 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005581/0.2366, allocations: 2.329 MB / 0.6823 GB, free: 10.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005789/0.2424, allocations: 2.932 MB / 0.6852 GB, free: 7.531 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002998/0.2454, allocations: 440 kB / 0.6856 GB, free: 7.102 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003713/0.2492, allocations: 0.5819 MB / 0.6862 GB, free: 6.52 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002859/0.2521, allocations: 1.147 MB / 0.6873 GB, free: 5.367 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006744/0.2588, allocations: 2.606 MB / 0.6898 GB, free: 2.746 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01311/0.272, allocations: 6.212 MB / 0.6959 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.051e-05/0.272, allocations: 0 / 0.6959 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.076e-06/0.2721, allocations: 0 / 0.6959 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.00038/0.2724, allocations: 0 / 0.6959 GB, free: 12.51 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.03716/0.3096, allocations: 9.154 MB / 0.7049 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.325e-05/0.3097, allocations: 12.03 kB / 0.7049 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002166/0.3119, allocations: 484.8 kB / 0.7053 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02723/0.3391, allocations: 4.009 MB / 0.7092 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008899/0.3481, allocations: 2.658 MB / 0.7118 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001556/0.3497, allocations: 0.9495 MB / 0.7128 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002284/0.352, allocations: 355.9 kB / 0.7131 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01851/0.3706, allocations: 4.723 MB / 0.7177 GB, free: 5.82 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001781/0.3708, allocations: 15.92 kB / 0.7177 GB, free: 5.805 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001775/0.3726, allocations: 144 kB / 0.7179 GB, free: 5.664 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001291/0.3728, allocations: 84 kB / 0.7179 GB, free: 5.582 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01357/0.3864, allocations: 4.244 MB / 0.7221 GB, free: 1.332 MB / 0.5137 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04639/0.4328, allocations: 18.21 MB / 0.7399 GB, free: 13.93 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01318/0.446, allocations: 5 MB / 0.7448 GB, free: 8.84 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006636/0.4527, allocations: 2.779 MB / 0.7475 GB, free: 6.051 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008762/0.4536, allocations: 70.91 kB / 0.7475 GB, free: 5.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008163/0.4618, allocations: 3.169 MB / 0.7506 GB, free: 2.77 MB / 0.545 GB Notification: Performance of pre-optimization done (n=383): time 1.188e-05/0.4619, allocations: 4 kB / 0.7506 GB, free: 2.766 MB / 0.545 GB Notification: Performance of matching and sorting (n=383): time 0.6952/1.157, allocations: 68.04 MB / 0.8171 GB, free: 83.36 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.977e-05/1.157, allocations: 145.8 kB / 0.8172 GB, free: 83.19 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003995/1.161, allocations: 3.217 MB / 0.8204 GB, free: 80.82 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009362/1.162, allocations: 92.2 kB / 0.8205 GB, free: 80.78 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001079/1.163, allocations: 1.973 MB / 0.8224 GB, free: 79.66 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001458/1.165, allocations: 1.313 MB / 0.8237 GB, free: 78.36 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001261/1.166, allocations: 0.6782 MB / 0.8243 GB, free: 77.67 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.2e-05/1.166, allocations: 301.1 kB / 0.8246 GB, free: 77.37 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004495/1.171, allocations: 2.585 MB / 0.8271 GB, free: 74.78 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004743/1.175, allocations: 3.205 MB / 0.8303 GB, free: 71.35 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06093/1.236, allocations: 18.78 MB / 0.8486 GB, free: 52.31 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.72e-05/1.236, allocations: 4 kB / 0.8486 GB, free: 52.31 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.04971/1.286, allocations: 17.25 MB / 0.8655 GB, free: 35.02 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.872e-05/1.286, allocations: 64.03 kB / 0.8655 GB, free: 34.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-05/1.286, allocations: 16 kB / 0.8655 GB, free: 34.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02313/1.309, allocations: 7.148 MB / 0.8725 GB, free: 27.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003379/1.313, allocations: 0.6748 MB / 0.8732 GB, free: 27.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07394/1.387, allocations: 33.28 MB / 0.9057 GB, free: 9.637 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006197/1.393, allocations: 0.6172 MB / 0.9063 GB, free: 9.016 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007699/1.394, allocations: 156 kB / 0.9064 GB, free: 8.863 MB / 0.5762 GB Warning: Assuming fixed start value for the following 5 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 400 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(92,44,5.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001933/1.396, allocations: 0.6646 MB / 0.9071 GB, free: 8.184 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001209/1.397, allocations: 458.3 kB / 0.9075 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0508/1.448, allocations: 16.85 MB / 0.924 GB, free: 6.812 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.545e-05/1.448, allocations: 36 kB / 0.924 GB, free: 6.777 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.64e-05/1.448, allocations: 31.94 kB / 0.924 GB, free: 6.746 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001045/1.448, allocations: 19.92 kB / 0.9241 GB, free: 6.727 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06067/1.509, allocations: 21.83 MB / 0.9454 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.939e-05/1.509, allocations: 0 / 0.9454 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002477/1.511, allocations: 395.5 kB / 0.9457 GB, free: 448 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02523/1.537, allocations: 7.343 MB / 0.9529 GB, free: 9.074 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001161/1.538, allocations: 75.92 kB / 0.953 GB, free: 9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08414/1.622, allocations: 31.8 MB / 0.984 GB, free: 8.906 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/1.622, allocations: 0 / 0.984 GB, free: 8.906 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06257/1.685, allocations: 20.21 MB / 1.004 GB, free: 4.613 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001992/1.687, allocations: 0.5531 MB / 1.004 GB, free: 4.035 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002008/1.689, allocations: 64.56 kB / 1.004 GB, free: 3.973 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005357/1.694, allocations: 383.5 kB / 1.005 GB, free: 3.598 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004075/1.698, allocations: 0.7843 MB / 1.006 GB, free: 2.812 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000976/1.699, allocations: 94.14 kB / 1.006 GB, free: 2.723 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.004429/1.704, allocations: 2.113 MB / 1.008 GB, free: 0.6055 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.685e-06/1.704, allocations: 112 / 1.008 GB, free: 0.6055 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.008063/1.712, allocations: 1.794 MB / 1.009 GB, free: 14.8 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (247): * Single equations (assignments): 244 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(98,38,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.06593/1.778, allocations: 20.87 MB / 1.03 GB, free: 9.848 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.02817/1.806, allocations: 9.153 MB / 1.039 GB, free: 0.6484 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/1.806, allocations: 0 / 1.039 GB, free: 0.6484 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.382/2.188, allocations: 6.14 MB / 1.045 GB, free: 242.4 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003713/2.192, allocations: 388.3 kB / 1.045 GB, free: 242.4 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1581/2.35, allocations: 58.69 MB / 1.102 GB, free: 209 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003306/2.353, allocations: 2.443 MB / 1.105 GB, free: 206.5 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.002282/2.355, allocations: 375.1 kB / 1.105 GB, free: 206.1 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003052/2.358, allocations: 1.981 MB / 1.107 GB, free: 204.1 MB / 0.7012 GB Notification: Performance of SimCode: time 1.112e-06/2.359, allocations: 8 kB / 1.107 GB, free: 204.1 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1946/2.553, allocations: 125.8 MB / 1.23 GB, free: 78.55 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.49/26.04, allocations: 23.56 kB / 1.23 GB, free: 78.54 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)