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.001221/0.001221, 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.495/1.495, allocations: 222.9 MB / 239.3 MB, free: 4.59 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.001476/0.001476, allocations: 191.7 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.578/0.578, allocations: 91.9 MB / 431.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 75.88 kB / 0.502 GB, free: 7.613 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4794/0.4814, allocations: 71.27 MB / 0.5716 GB, free: 36.7 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII): time 0.01648/0.4979, allocations: 21.97 MB / 0.593 GB, free: 21.46 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01347/0.5114, allocations: 4.926 MB / 0.5978 GB, free: 17.9 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006205/0.5177, allocations: 42.34 kB / 0.5979 GB, free: 17.9 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003774/0.5215, allocations: 0.8831 MB / 0.5987 GB, free: 17.42 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009595/0.5311, allocations: 2.057 MB / 0.6007 GB, free: 15.97 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006877/0.538, allocations: 2.078 MB / 0.6028 GB, free: 14.88 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01139/0.5494, allocations: 5.761 MB / 0.6084 GB, free: 11.93 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003743/0.5532, allocations: 1.318 MB / 0.6097 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006442/0.5597, allocations: 2.347 MB / 0.612 GB, free: 10.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006694/0.5664, allocations: 2.984 MB / 0.6149 GB, free: 8.578 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003225/0.5697, allocations: 446.3 kB / 0.6153 GB, free: 8.578 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005205/0.5749, allocations: 0.5896 MB / 0.6159 GB, free: 8.535 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003426/0.5784, allocations: 1.168 MB / 0.617 GB, free: 7.738 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008193/0.5866, allocations: 2.636 MB / 0.6196 GB, free: 5.969 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01377/0.6004, allocations: 6.226 MB / 0.6257 GB, free: 3.066 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.6005, allocations: 0 / 0.6257 GB, free: 3.066 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.6005, allocations: 0 / 0.6257 GB, free: 3.066 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003606/0.6008, allocations: 0 / 0.6257 GB, free: 3.066 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: 895 * Number of variables: 895 Notification: Performance of Generate backend data structure: time 0.04081/0.6417, allocations: 9.252 MB / 0.6347 GB, free: 13.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.397e-05/0.6418, allocations: 8.031 kB / 0.6347 GB, free: 13.83 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001613/0.6434, allocations: 492.9 kB / 0.6352 GB, free: 13.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02872/0.6721, allocations: 4.012 MB / 0.6391 GB, free: 9.312 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01049/0.6827, allocations: 2.686 MB / 0.6417 GB, free: 6.543 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001437/0.6842, allocations: 0.9613 MB / 0.6427 GB, free: 5.445 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002454/0.6867, allocations: 348 kB / 0.643 GB, free: 5.105 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01361/0.7003, allocations: 4.751 MB / 0.6477 GB, free: 332 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.355e-05/0.7004, allocations: 7.938 kB / 0.6477 GB, free: 324 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004289/0.7009, allocations: 144 kB / 0.6478 GB, free: 180 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.387e-05/0.7009, allocations: 84 kB / 0.6479 GB, free: 96 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009621/0.7106, allocations: 4.259 MB / 0.652 GB, free: 11.83 MB / 462.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.0426/0.7532, allocations: 18.43 MB / 0.67 GB, free: 8.223 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01324/0.7665, allocations: 5.033 MB / 0.675 GB, free: 3.109 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00689/0.7734, allocations: 2.794 MB / 0.6777 GB, free: 312 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005825/0.7741, allocations: 70.91 kB / 0.6777 GB, free: 240 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007421/0.7815, allocations: 3.197 MB / 0.6809 GB, free: 13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=385): time 6.973e-06/0.7815, allocations: 3.938 kB / 0.6809 GB, free: 12.99 MB / 494.1 MB Notification: Performance of matching and sorting (n=385): time 0.2999/1.081, allocations: 66.82 MB / 0.7461 GB, free: 9.98 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/1.082, allocations: 141.8 kB / 0.7463 GB, free: 9.816 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005601/1.087, allocations: 3.27 MB / 0.7495 GB, free: 6.527 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001445/1.089, allocations: 93.7 kB / 0.7495 GB, free: 6.43 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001644/1.09, allocations: 1.963 MB / 0.7515 GB, free: 4.453 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002603/1.093, allocations: 1.328 MB / 0.7528 GB, free: 3.105 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001622/1.095, allocations: 0.6862 MB / 0.7534 GB, free: 2.406 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001008/1.095, allocations: 309.1 kB / 0.7537 GB, free: 2.102 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005772/1.1, allocations: 2.628 MB / 0.7563 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006835/1.107, allocations: 3.249 MB / 0.7595 GB, free: 12 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4424/1.55, allocations: 19.19 MB / 0.7782 GB, free: 153.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.781e-05/1.55, allocations: 2.781 kB / 0.7782 GB, free: 153.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=546) (initialization): time 0.06157/1.611, allocations: 17.25 MB / 0.795 GB, free: 151.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.588e-05/1.611, allocations: 73.31 kB / 0.7951 GB, free: 151.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.384e-05/1.612, allocations: 15.06 kB / 0.7951 GB, free: 151.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.028/1.64, allocations: 7.313 MB / 0.8023 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003968/1.644, allocations: 0.6756 MB / 0.8029 GB, free: 150.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08719/1.731, allocations: 33.89 MB / 0.836 GB, free: 132.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008339/1.739, allocations: 0.623 MB / 0.8366 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001231/1.74, allocations: 152 kB / 0.8368 GB, free: 131.6 MB / 0.5606 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.002632/1.743, allocations: 0.6714 MB / 0.8374 GB, free: 130.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001559/1.745, allocations: 462.3 kB / 0.8379 GB, free: 130.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05322/1.798, allocations: 16.89 MB / 0.8544 GB, free: 113.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.137e-05/1.798, allocations: 40 kB / 0.8544 GB, free: 113.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.673e-05/1.798, allocations: 31.94 kB / 0.8544 GB, free: 113.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001393/1.798, allocations: 22.55 kB / 0.8545 GB, free: 113.4 MB / 0.5606 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.06156/1.86, allocations: 21.92 MB / 0.8759 GB, free: 91.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.959e-05/1.86, allocations: 0 / 0.8759 GB, free: 91.44 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002594/1.862, allocations: 391.5 kB / 0.8762 GB, free: 91.06 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02445/1.887, allocations: 7.359 MB / 0.8834 GB, free: 83.69 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001182/1.888, allocations: 71.98 kB / 0.8835 GB, free: 83.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07441/1.963, allocations: 31.88 MB / 0.9146 GB, free: 51.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.963, allocations: 0 / 0.9146 GB, free: 51.43 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06022/2.023, allocations: 20.28 MB / 0.9344 GB, free: 31.07 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002548/2.026, allocations: 0.5609 MB / 0.935 GB, free: 30.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001857/2.027, allocations: 63.98 kB / 0.935 GB, free: 30.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004902/2.032, allocations: 379.6 kB / 0.9354 GB, free: 30.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003152/2.035, allocations: 0.7805 MB / 0.9362 GB, free: 29.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003249/2.036, allocations: 104 kB / 0.9363 GB, free: 29.17 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003149/2.039, allocations: 2.145 MB / 0.9384 GB, free: 27.02 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.91e-07/2.039, allocations: 4 kB / 0.9384 GB, free: 27.02 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007513/2.046, allocations: 1.81 MB / 0.9401 GB, free: 25.2 MB / 0.5606 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.06005/2.107, allocations: 20.95 MB / 0.9606 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.03417/2.141, allocations: 9.507 MB / 0.9699 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/2.141, allocations: 0 / 0.9699 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.02233/2.163, allocations: 6.213 MB / 0.9759 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004259/2.167, allocations: 385.8 kB / 0.9763 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4893/2.657, allocations: 68.9 MB / 1.044 GB, free: 173.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003127/2.66, allocations: 2.457 MB / 1.046 GB, free: 172.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002385/2.662, allocations: 373.5 kB / 1.046 GB, free: 171.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002854/2.665, allocations: 1.993 MB / 1.048 GB, free: 170 MB / 0.5919 GB Notification: Performance of SimCode: time 1.142e-06/2.665, allocations: 4 kB / 1.048 GB, free: 170 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2011/2.866, allocations: 129.2 MB / 1.174 GB, free: 42.18 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.2/19.06, allocations: 13.97 kB / 1.174 GB, free: 42.17 MB / 0.5919 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)