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.006523/0.006523, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.291/1.291, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001418/0.001418, allocations: 192.3 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4952/0.4952, allocations: 91.9 MB / 431.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 78.56 kB / 0.5724 GB, free: 33.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1201, allocations: 71.29 MB / 0.642 GB, free: 3.984 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01697/0.1371, allocations: 21.83 MB / 0.6633 GB, free: 14.07 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01053/0.1477, allocations: 4.861 MB / 0.668 GB, free: 9.188 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004069/0.1518, allocations: 44 kB / 0.6681 GB, free: 9.145 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002985/0.1548, allocations: 0.875 MB / 0.6689 GB, free: 8.262 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007665/0.1625, allocations: 2.282 MB / 0.6712 GB, free: 5.969 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005683/0.1682, allocations: 2.063 MB / 0.6732 GB, free: 3.938 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.008278/0.1765, allocations: 5.72 MB / 0.6788 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002711/0.1793, allocations: 1.325 MB / 0.6801 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003717/0.183, allocations: 2.326 MB / 0.6823 GB, free: 10.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003998/0.1871, allocations: 2.924 MB / 0.6852 GB, free: 7.543 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00176/0.1888, allocations: 436 kB / 0.6856 GB, free: 7.117 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002372/0.1912, allocations: 0.5858 MB / 0.6862 GB, free: 6.531 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001739/0.193, allocations: 1.143 MB / 0.6873 GB, free: 5.383 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004033/0.197, allocations: 2.606 MB / 0.6898 GB, free: 2.762 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00896/0.206, allocations: 6.25 MB / 0.6959 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.2061, allocations: 0 / 0.6959 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.703e-06/0.2061, allocations: 0 / 0.6959 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0002579/0.2063, allocations: 0 / 0.6959 GB, free: 12.48 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.03011/0.2365, allocations: 9.318 MB / 0.705 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.2365, allocations: 8.031 kB / 0.7051 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001303/0.2378, allocations: 488.8 kB / 0.7055 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02594/0.2638, allocations: 4.039 MB / 0.7095 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005853/0.2697, allocations: 2.677 MB / 0.7121 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001003/0.2707, allocations: 0.9574 MB / 0.713 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001293/0.272, allocations: 363.8 kB / 0.7134 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01209/0.2842, allocations: 4.723 MB / 0.718 GB, free: 5.566 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.976e-05/0.2843, allocations: 4 kB / 0.718 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008746/0.2852, allocations: 140 kB / 0.7181 GB, free: 5.426 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.678e-05/0.2853, allocations: 84 kB / 0.7182 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/0.2956, allocations: 4.24 MB / 0.7223 GB, free: 1.098 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.0364/0.3321, allocations: 18.27 MB / 0.7402 GB, free: 13.65 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/0.3447, allocations: 5.004 MB / 0.7451 GB, free: 8.555 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006123/0.3509, allocations: 2.779 MB / 0.7478 GB, free: 5.766 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007313/0.3517, allocations: 70.83 kB / 0.7478 GB, free: 5.699 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00759/0.3593, allocations: 3.169 MB / 0.7509 GB, free: 2.488 MB / 0.545 GB Notification: Performance of pre-optimization done (n=383): time 8.265e-06/0.3593, allocations: 0 / 0.7509 GB, free: 2.488 MB / 0.545 GB Notification: Performance of matching and sorting (n=383): time 0.5875/0.9469, allocations: 68.06 MB / 0.8174 GB, free: 82.79 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/0.947, allocations: 141.8 kB / 0.8175 GB, free: 82.62 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003962/0.9509, allocations: 3.223 MB / 0.8207 GB, free: 80.25 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008937/0.9519, allocations: 86.77 kB / 0.8208 GB, free: 80.21 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001103/0.953, allocations: 1.996 MB / 0.8227 GB, free: 79.04 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001285/0.9543, allocations: 1.384 MB / 0.8241 GB, free: 77.86 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00122/0.9555, allocations: 0.6783 MB / 0.8247 GB, free: 77.17 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.457e-05/0.9555, allocations: 301.1 kB / 0.825 GB, free: 76.88 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004698/0.9602, allocations: 2.581 MB / 0.8275 GB, free: 74.29 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004945/0.9652, allocations: 3.213 MB / 0.8307 GB, free: 70.85 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06126/1.026, allocations: 18.77 MB / 0.849 GB, free: 51.82 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.811e-05/1.027, allocations: 7.938 kB / 0.849 GB, free: 51.81 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.04904/1.076, allocations: 17.27 MB / 0.8659 GB, free: 34.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.648e-05/1.076, allocations: 69.14 kB / 0.8659 GB, free: 34.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.886e-05/1.076, allocations: 14.81 kB / 0.866 GB, free: 34.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02258/1.098, allocations: 7.153 MB / 0.8729 GB, free: 27.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003139/1.102, allocations: 0.6709 MB / 0.8736 GB, free: 26.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07763/1.179, allocations: 33.33 MB / 0.9061 GB, free: 9.105 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005718/1.185, allocations: 0.6318 MB / 0.9068 GB, free: 8.555 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000965/1.186, allocations: 148 kB / 0.9069 GB, free: 8.41 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.002854/1.189, allocations: 0.6794 MB / 0.9076 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001587/1.19, allocations: 484.8 kB / 0.908 GB, free: 7.254 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05531/1.246, allocations: 16.84 MB / 0.9245 GB, free: 6.348 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-05/1.246, allocations: 40 kB / 0.9245 GB, free: 6.309 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.722e-05/1.246, allocations: 32.81 kB / 0.9245 GB, free: 6.277 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.61e-05/1.246, allocations: 19.92 kB / 0.9246 GB, free: 6.258 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.06608/1.312, allocations: 21.84 MB / 0.9459 GB, free: 404 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.713e-05/1.312, allocations: 0 / 0.9459 GB, free: 404 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002326/1.314, allocations: 387.5 kB / 0.9463 GB, free: 16 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02569/1.34, allocations: 7.343 MB / 0.9534 GB, free: 8.656 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00102/1.341, allocations: 84.83 kB / 0.9535 GB, free: 8.578 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0829/1.424, allocations: 31.84 MB / 0.9846 GB, free: 8.469 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/1.424, allocations: 0 / 0.9846 GB, free: 8.469 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06318/1.487, allocations: 20.24 MB / 1.004 GB, free: 4.152 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001547/1.489, allocations: 0.5721 MB / 1.005 GB, free: 3.613 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001652/1.491, allocations: 71.94 kB / 1.005 GB, free: 3.543 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00501/1.496, allocations: 375.5 kB / 1.005 GB, free: 3.176 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003818/1.5, allocations: 0.7882 MB / 1.006 GB, free: 2.387 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008822/1.5, allocations: 92.09 kB / 1.006 GB, free: 2.297 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.003937/1.504, allocations: 2.113 MB / 1.008 GB, free: 184 kB / 0.67 GB Notification: Performance of sort global known variables: time 1.71e-07/1.504, allocations: 0 / 1.008 GB, free: 184 kB / 0.67 GB Notification: Performance of remove unused functions: time 0.00698/1.511, allocations: 1.803 MB / 1.01 GB, free: 14.43 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.06319/1.575, allocations: 20.9 MB / 1.03 GB, free: 9.445 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.2929/1.868, allocations: 9.169 MB / 1.039 GB, free: 241.9 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/1.868, allocations: 0.8125 kB / 1.039 GB, free: 241.9 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.01992/1.888, allocations: 6.172 MB / 1.045 GB, free: 241.3 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003407/1.891, allocations: 386.7 kB / 1.046 GB, free: 241.3 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1435/2.035, allocations: 58.87 MB / 1.103 GB, free: 208 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001777/2.036, allocations: 2.447 MB / 1.106 GB, free: 205.6 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.00144/2.038, allocations: 371.1 kB / 1.106 GB, free: 205.2 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001994/2.04, allocations: 1.987 MB / 1.108 GB, free: 203.2 MB / 0.7012 GB Notification: Performance of SimCode: time 1.342e-06/2.04, allocations: 0 / 1.108 GB, free: 203.2 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1701/2.21, allocations: 125.9 MB / 1.231 GB, free: 77.55 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.2/23.41, allocations: 18.97 kB / 1.231 GB, free: 77.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 & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_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_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)