Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_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.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_SixthOrder_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.006848/0.006848, allocations: 97.05 kB / 15.73 MB, free: 5.547 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.444/1.444, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001904/0.001904, allocations: 192.4 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5618/0.5618, allocations: 91.9 MB / 431.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00258/0.00258, allocations: 81.59 kB / 0.5724 GB, free: 33.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1436, allocations: 71.29 MB / 0.642 GB, free: 4.102 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII): time 0.02331/0.167, allocations: 21.98 MB / 0.6635 GB, free: 14.04 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01366/0.1807, allocations: 4.908 MB / 0.6682 GB, free: 9.105 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005352/0.1861, allocations: 44 kB / 0.6683 GB, free: 9.062 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003846/0.19, allocations: 0.8866 MB / 0.6692 GB, free: 8.168 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009479/0.1995, allocations: 2.051 MB / 0.6712 GB, free: 6.105 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006902/0.2064, allocations: 2.069 MB / 0.6732 GB, free: 4.066 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01066/0.2171, allocations: 5.798 MB / 0.6788 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003567/0.2207, allocations: 1.33 MB / 0.6801 GB, free: 12.86 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004844/0.2256, allocations: 2.357 MB / 0.6824 GB, free: 10.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005473/0.2311, allocations: 2.982 MB / 0.6853 GB, free: 7.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002526/0.2337, allocations: 448 kB / 0.6858 GB, free: 7.062 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003196/0.2369, allocations: 0.5859 MB / 0.6863 GB, free: 6.477 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002412/0.2394, allocations: 1.163 MB / 0.6875 GB, free: 5.309 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005154/0.2445, allocations: 2.637 MB / 0.6901 GB, free: 2.656 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.2561, allocations: 6.316 MB / 0.6962 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.2561, allocations: 0 / 0.6962 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.833e-06/0.2561, allocations: 0 / 0.6962 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0003139/0.2565, allocations: 4 kB / 0.6962 GB, free: 12.31 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: 895 * Number of variables: 895 Notification: Performance of Generate backend data structure: time 0.03493/0.2914, allocations: 9.415 MB / 0.7054 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.017e-05/0.2915, allocations: 12.03 kB / 0.7054 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001709/0.2932, allocations: 488.9 kB / 0.7059 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02716/0.3204, allocations: 4.043 MB / 0.7099 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007669/0.3281, allocations: 2.721 MB / 0.7125 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001365/0.3295, allocations: 0.9612 MB / 0.7134 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001859/0.3314, allocations: 352 kB / 0.7138 GB, free: 10 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0152/0.3466, allocations: 4.755 MB / 0.7184 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/0.3468, allocations: 0 / 0.7184 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001197/0.348, allocations: 140 kB / 0.7186 GB, free: 5.082 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.959e-05/0.3481, allocations: 84 kB / 0.7186 GB, free: 5 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01192/0.36, allocations: 4.26 MB / 0.7228 GB, free: 0.7344 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.04406/0.4042, allocations: 18.34 MB / 0.7407 GB, free: 13.22 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0141/0.4183, allocations: 5.033 MB / 0.7456 GB, free: 8.098 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006829/0.4252, allocations: 2.802 MB / 0.7484 GB, free: 5.285 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007322/0.426, allocations: 70.92 kB / 0.7484 GB, free: 5.215 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008481/0.4345, allocations: 3.185 MB / 0.7515 GB, free: 1.988 MB / 0.545 GB Notification: Performance of pre-optimization done (n=385): time 1.608e-05/0.4345, allocations: 0 / 0.7515 GB, free: 1.988 MB / 0.545 GB Notification: Performance of matching and sorting (n=385): time 0.6101/1.045, allocations: 66.84 MB / 0.8168 GB, free: 83.43 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/1.045, allocations: 141.8 kB / 0.8169 GB, free: 83.27 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004147/1.049, allocations: 3.279 MB / 0.8201 GB, free: 80.87 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009965/1.05, allocations: 92.73 kB / 0.8202 GB, free: 80.82 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001151/1.051, allocations: 2.011 MB / 0.8222 GB, free: 79.59 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001818/1.053, allocations: 1.392 MB / 0.8236 GB, free: 78.41 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001404/1.054, allocations: 0.6825 MB / 0.8242 GB, free: 77.72 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.852e-05/1.054, allocations: 305.1 kB / 0.8245 GB, free: 77.42 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004923/1.059, allocations: 2.616 MB / 0.8271 GB, free: 74.79 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005666/1.065, allocations: 3.249 MB / 0.8302 GB, free: 71.32 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06441/1.129, allocations: 19.12 MB / 0.8489 GB, free: 51.95 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.249e-05/1.13, allocations: 4 kB / 0.8489 GB, free: 51.94 MB / 0.5606 GB Notification: Performance of matching and sorting (n=546) (initialization): time 0.05115/1.181, allocations: 17.27 MB / 0.8658 GB, free: 34.63 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.85e-05/1.181, allocations: 63.41 kB / 0.8658 GB, free: 34.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.802e-05/1.181, allocations: 19.92 kB / 0.8659 GB, free: 34.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02391/1.205, allocations: 7.299 MB / 0.873 GB, free: 27.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003396/1.208, allocations: 0.6787 MB / 0.8737 GB, free: 26.55 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08923/1.297, allocations: 33.89 MB / 0.9068 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006756/1.304, allocations: 0.6371 MB / 0.9074 GB, free: 8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00139/1.306, allocations: 160 kB / 0.9075 GB, free: 7.844 MB / 0.5762 GB Warning: Assuming fixed start value for the following 4 variables: order6.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 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 (409): * Single equations (assignments): 406 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(92,46)} Notification: Performance of prepare postOptimizeDAE: time 0.003836/1.31, allocations: 0.6684 MB / 0.9082 GB, free: 7.168 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002356/1.312, allocations: 480.9 kB / 0.9086 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06079/1.373, allocations: 16.9 MB / 0.9251 GB, free: 5.73 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.183e-05/1.373, allocations: 37.31 kB / 0.9252 GB, free: 5.695 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001329/1.373, allocations: 28 kB / 0.9252 GB, free: 5.668 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001364/1.373, allocations: 23.86 kB / 0.9252 GB, free: 5.648 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.07321/1.446, allocations: 21.91 MB / 0.9466 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.086e-05/1.447, allocations: 0.5625 kB / 0.9466 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002617/1.449, allocations: 395.5 kB / 0.947 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02707/1.476, allocations: 7.341 MB / 0.9542 GB, free: 7.965 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001144/1.477, allocations: 71.98 kB / 0.9542 GB, free: 7.895 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09245/1.57, allocations: 31.88 MB / 0.9854 GB, free: 7.738 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.341e-05/1.57, allocations: 10.47 kB / 0.9854 GB, free: 7.73 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06871/1.639, allocations: 20.31 MB / 1.005 GB, free: 3.34 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/1.641, allocations: 0.5814 MB / 1.006 GB, free: 2.789 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002056/1.643, allocations: 67.98 kB / 1.006 GB, free: 2.723 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005488/1.648, allocations: 371.6 kB / 1.006 GB, free: 2.359 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004171/1.652, allocations: 0.7883 MB / 1.007 GB, free: 1.57 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009474/1.653, allocations: 95.98 kB / 1.007 GB, free: 1.477 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.004629/1.658, allocations: 2.149 MB / 1.009 GB, free: 15.32 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.072e-06/1.658, allocations: 0 / 1.009 GB, free: 15.32 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.008315/1.666, allocations: 1.823 MB / 1.011 GB, free: 13.56 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 13 (order3.delta,order3.w,order3.e1q,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.e2d,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 (249): * Single equations (assignments): 246 * 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.06946/1.736, allocations: 20.99 MB / 1.031 GB, free: 8.48 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.3585/2.094, allocations: 9.368 MB / 1.041 GB, free: 241.8 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/2.094, allocations: 3.094 kB / 1.041 GB, free: 241.8 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.02105/2.116, allocations: 6.226 MB / 1.047 GB, free: 241 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003797/2.119, allocations: 387.9 kB / 1.047 GB, free: 241 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1539/2.273, allocations: 59.26 MB / 1.105 GB, free: 206.5 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001723/2.275, allocations: 2.455 MB / 1.107 GB, free: 204 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001585/2.277, allocations: 371.2 kB / 1.108 GB, free: 203.6 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001888/2.279, allocations: 1.999 MB / 1.11 GB, free: 201.6 MB / 0.7012 GB Notification: Performance of SimCode: time 1.222e-06/2.279, allocations: 0 / 1.11 GB, free: 201.6 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1906/2.469, allocations: 130.7 MB / 1.237 GB, free: 71.19 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.47/25.94, allocations: 19.62 kB / 1.237 GB, free: 71.18 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_SixthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe 2>&1)