Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_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.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_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.001219/0.001219, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 239.2 MB, free: 4.66 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.00155/0.001549, allocations: 200.4 kB / 289.6 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5678/0.5678, allocations: 91.91 MB / 431.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 79.88 kB / 0.502 GB, free: 7.645 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3988, allocations: 71.26 MB / 0.5716 GB, free: 36.86 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.01102/0.4099, allocations: 13.62 MB / 0.5849 GB, free: 27.78 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007465/0.4174, allocations: 3.477 MB / 0.5883 GB, free: 25.29 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002743/0.4202, allocations: 31.53 kB / 0.5883 GB, free: 25.28 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001544/0.4217, allocations: 0.5587 MB / 0.5888 GB, free: 24.98 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004988/0.4268, allocations: 1.412 MB / 0.5902 GB, free: 24.02 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00348/0.4303, allocations: 1.508 MB / 0.5917 GB, free: 23.26 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006089/0.4364, allocations: 3.688 MB / 0.5953 GB, free: 21.41 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001533/0.4379, allocations: 0.8938 MB / 0.5962 GB, free: 20.94 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002719/0.4407, allocations: 1.534 MB / 0.5977 GB, free: 20.15 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002632/0.4433, allocations: 1.951 MB / 0.5996 GB, free: 19.2 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007257/0.4441, allocations: 284.1 kB / 0.5998 GB, free: 19.2 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001321/0.4454, allocations: 434.3 kB / 0.6003 GB, free: 19.15 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005686/0.446, allocations: 0.7615 MB / 0.601 GB, free: 18.64 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001445/0.4474, allocations: 1.635 MB / 0.6026 GB, free: 17.53 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005366/0.4528, allocations: 3.921 MB / 0.6064 GB, free: 15.71 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.074e-05/0.4528, allocations: 0 / 0.6064 GB, free: 15.71 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.4528, allocations: 0 / 0.6064 GB, free: 15.71 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000179/0.453, allocations: 0.5625 kB / 0.6064 GB, free: 15.71 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02634/0.4794, allocations: 6.587 MB / 0.6129 GB, free: 13.08 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.4795, allocations: 9.469 kB / 0.6129 GB, free: 13.08 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004558/0.4799, allocations: 299.1 kB / 0.6132 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01558/0.4955, allocations: 2.273 MB / 0.6154 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004824/0.5004, allocations: 1.876 MB / 0.6172 GB, free: 11.3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006814/0.5011, allocations: 0.7312 MB / 0.6179 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006746/0.5018, allocations: 214.4 kB / 0.6181 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006958/0.5087, allocations: 3.023 MB / 0.6211 GB, free: 9.422 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.044e-05/0.5088, allocations: 1.188 kB / 0.6211 GB, free: 9.422 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00026/0.5091, allocations: 97.3 kB / 0.6212 GB, free: 9.344 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-05/0.5091, allocations: 50.12 kB / 0.6212 GB, free: 9.344 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006232/0.5154, allocations: 2.782 MB / 0.6239 GB, free: 8.281 MB / 430.1 MB 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.01766/0.533, allocations: 9.862 MB / 0.6336 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01111/0.5442, allocations: 4.192 MB / 0.6377 GB, free: 10.06 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004623/0.5489, allocations: 1.966 MB / 0.6396 GB, free: 8.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002723/0.5492, allocations: 45.95 kB / 0.6396 GB, free: 8.047 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004814/0.554, allocations: 2.228 MB / 0.6418 GB, free: 5.797 MB / 446.1 MB Notification: Performance of pre-optimization done (n=247): time 4.358e-06/0.554, allocations: 0 / 0.6418 GB, free: 5.797 MB / 446.1 MB Notification: Performance of matching and sorting (n=247): time 0.1275/0.6815, allocations: 29.46 MB / 0.6706 GB, free: 8.207 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001787/0.6818, allocations: 184.3 kB / 0.6707 GB, free: 7.988 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005058/0.6869, allocations: 2.273 MB / 0.673 GB, free: 5.695 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00115/0.688, allocations: 73.7 kB / 0.673 GB, free: 5.617 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.6891, allocations: 1.172 MB / 0.6742 GB, free: 4.434 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001472/0.6906, allocations: 0.8703 MB / 0.675 GB, free: 3.551 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001371/0.692, allocations: 0.5618 MB / 0.6756 GB, free: 2.98 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.6921, allocations: 301.1 kB / 0.6759 GB, free: 2.684 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004725/0.6969, allocations: 1.951 MB / 0.6778 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004823/0.7017, allocations: 2.31 MB / 0.68 GB, free: 14.32 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05696/0.7587, allocations: 14.04 MB / 0.6937 GB, free: 52 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.618e-05/0.7587, allocations: 7.938 kB / 0.6937 GB, free: 44 kB / 494.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.04505/0.8038, allocations: 12.28 MB / 0.7057 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000115/0.8039, allocations: 118.8 kB / 0.7059 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.812e-05/0.804, allocations: 12 kB / 0.7059 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01912/0.8231, allocations: 5.324 MB / 0.7111 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003113/0.8263, allocations: 0.5578 MB / 0.7116 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06437/0.8907, allocations: 23.51 MB / 0.7346 GB, free: 5.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005156/0.8958, allocations: 493 kB / 0.735 GB, free: 5.492 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008324/0.8967, allocations: 120 kB / 0.7352 GB, free: 5.375 MB / 0.5294 GB Warning: Assuming fixed start value for the following 6 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "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: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (325): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 4 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.002036/0.8988, allocations: 0.5217 MB / 0.7357 GB, free: 4.832 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/0.9, allocations: 300.3 kB / 0.7359 GB, free: 4.535 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04192/0.9419, allocations: 11.9 MB / 0.7476 GB, free: 8.582 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.242e-05/0.942, allocations: 24 kB / 0.7476 GB, free: 8.559 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.312e-05/0.9421, allocations: 23.94 kB / 0.7476 GB, free: 8.535 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-05/0.9422, allocations: 15.94 kB / 0.7476 GB, free: 8.52 MB / 0.545 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.0522/0.9944, allocations: 15.49 MB / 0.7628 GB, free: 8.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.188e-05/0.9945, allocations: 3.938 kB / 0.7628 GB, free: 8.859 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001775/0.9962, allocations: 243.7 kB / 0.763 GB, free: 8.621 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01923/1.015, allocations: 5.291 MB / 0.7682 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008245/1.016, allocations: 51.98 kB / 0.7682 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3669/1.383, allocations: 24.96 MB / 0.7926 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.383, allocations: 3 kB / 0.7926 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04892/1.432, allocations: 14.26 MB / 0.8065 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/1.434, allocations: 403.4 kB / 0.8069 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008543/1.435, allocations: 47.28 kB / 0.8069 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003123/1.438, allocations: 299.5 kB / 0.8072 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002197/1.44, allocations: 0.5817 MB / 0.8078 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002209/1.44, allocations: 65.23 kB / 0.8079 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002429/1.443, allocations: 1.503 MB / 0.8093 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.31e-07/1.443, allocations: 1.594 kB / 0.8093 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004504/1.447, allocations: 1.174 MB / 0.8105 GB, free: 153.5 MB / 0.5606 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.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(66,22,7.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04219/1.489, allocations: 14.91 MB / 0.825 GB, free: 145.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01984/1.509, allocations: 6.802 MB / 0.8317 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/1.509, allocations: 0.75 kB / 0.8317 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01284/1.522, allocations: 4.408 MB / 0.836 GB, free: 134.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002736/1.525, allocations: 273.2 kB / 0.8362 GB, free: 134.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1066/1.632, allocations: 45.51 MB / 0.8807 GB, free: 86.82 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/1.633, allocations: 1.81 MB / 0.8824 GB, free: 84.98 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001348/1.634, allocations: 262.5 kB / 0.8827 GB, free: 84.72 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001252/1.635, allocations: 1.23 MB / 0.8839 GB, free: 83.49 MB / 0.5606 GB Notification: Performance of SimCode: time 1.292e-06/1.635, allocations: 4 kB / 0.8839 GB, free: 83.48 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1297/1.765, allocations: 88.59 MB / 0.9704 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/16.38, allocations: 9.859 kB / 0.9704 GB, free: 11.11 MB / 0.5762 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)