Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.005846/0.005845, allocations: 98.92 kB / 15.73 MB, free: 6.055 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.492/1.492, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001816/0.001816, allocations: 192.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5727/0.5727, allocations: 91.9 MB / 431.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 75.98 kB / 0.5723 GB, free: 33.81 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1509, allocations: 71.3 MB / 0.6419 GB, free: 4.07 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.007915/0.1589, allocations: 6.515 MB / 0.6482 GB, free: 13.52 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004406/0.1633, allocations: 1.955 MB / 0.6501 GB, free: 11.57 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000685/0.164, allocations: 15.94 kB / 0.6502 GB, free: 11.55 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000816/0.1649, allocations: 237.9 kB / 0.6504 GB, free: 11.32 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002129/0.167, allocations: 0.808 MB / 0.6512 GB, free: 10.51 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001374/0.1684, allocations: 0.6133 MB / 0.6518 GB, free: 9.898 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001983/0.1704, allocations: 1.581 MB / 0.6533 GB, free: 8.312 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005592/0.171, allocations: 334.3 kB / 0.6536 GB, free: 7.977 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009549/0.1719, allocations: 0.6496 MB / 0.6543 GB, free: 7.324 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.173, allocations: 0.8245 MB / 0.6551 GB, free: 6.496 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001927/0.1732, allocations: 124 kB / 0.6552 GB, free: 6.375 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005533/0.1738, allocations: 259.8 kB / 0.6554 GB, free: 6.121 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003318/0.1741, allocations: 330.6 kB / 0.6558 GB, free: 5.797 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006518/0.1748, allocations: 0.6641 MB / 0.6564 GB, free: 5.129 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002011/0.1768, allocations: 1.669 MB / 0.658 GB, free: 3.453 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1768, allocations: 7.938 kB / 0.658 GB, free: 3.445 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1768, allocations: 0 / 0.658 GB, free: 3.445 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.772e-05/0.1768, allocations: 0 / 0.658 GB, free: 3.445 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008983/0.1858, allocations: 2.73 MB / 0.6607 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.1859, allocations: 12.03 kB / 0.6607 GB, free: 0.6328 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001837/0.1861, allocations: 130.6 kB / 0.6608 GB, free: 0.4961 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004928/0.191, allocations: 0.7834 MB / 0.6616 GB, free: 15.71 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.1927, allocations: 0.8951 MB / 0.6625 GB, free: 14.76 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000321/0.193, allocations: 264.2 kB / 0.6627 GB, free: 14.47 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001702/0.1932, allocations: 80 kB / 0.6628 GB, free: 14.39 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00214/0.1954, allocations: 1.083 MB / 0.6639 GB, free: 13.29 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.1954, allocations: 0 / 0.6639 GB, free: 13.29 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.774e-05/0.1955, allocations: 32 kB / 0.6639 GB, free: 13.26 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.15e-05/0.1955, allocations: 20 kB / 0.6639 GB, free: 13.24 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002098/0.1976, allocations: 0.9877 MB / 0.6649 GB, free: 12.25 MB / 478.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.007001/0.2046, allocations: 3.801 MB / 0.6686 GB, free: 8.27 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007604/0.2123, allocations: 2.371 MB / 0.6709 GB, free: 5.805 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001379/0.2137, allocations: 0.6762 MB / 0.6716 GB, free: 5.125 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-05/0.2138, allocations: 13 kB / 0.6716 GB, free: 5.113 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001655/0.2154, allocations: 0.8138 MB / 0.6724 GB, free: 4.281 MB / 478.1 MB Notification: Performance of pre-optimization done (n=95): time 3.447e-06/0.2154, allocations: 3.938 kB / 0.6724 GB, free: 4.277 MB / 478.1 MB Notification: Performance of matching and sorting (n=95): time 0.02937/0.2448, allocations: 7.191 MB / 0.6794 GB, free: 13.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.841e-05/0.245, allocations: 119.8 kB / 0.6795 GB, free: 12.88 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001856/0.2468, allocations: 1.095 MB / 0.6806 GB, free: 11.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001956/0.247, allocations: 45.7 kB / 0.6806 GB, free: 11.72 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004363/0.2475, allocations: 0.4897 MB / 0.6811 GB, free: 11.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004394/0.2479, allocations: 368.9 kB / 0.6815 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005342/0.2485, allocations: 283.5 kB / 0.6817 GB, free: 10.58 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.2486, allocations: 301.1 kB / 0.682 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001615/0.2502, allocations: 0.7613 MB / 0.6828 GB, free: 9.523 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001756/0.252, allocations: 0.9225 MB / 0.6837 GB, free: 8.562 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02338/0.2754, allocations: 5.552 MB / 0.6891 GB, free: 2.926 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.2755, allocations: 0 / 0.6891 GB, free: 2.926 MB / 494.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01381/0.2893, allocations: 4.372 MB / 0.6934 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.187e-05/0.2894, allocations: 59.41 kB / 0.6934 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.137e-05/0.2894, allocations: 8 kB / 0.6934 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005783/0.2952, allocations: 1.596 MB / 0.695 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001543/0.2968, allocations: 275.6 kB / 0.6952 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02041/0.3172, allocations: 8.513 MB / 0.7036 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/0.3192, allocations: 203.2 kB / 0.7038 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/0.3193, allocations: 55.97 kB / 0.7038 GB, free: 3.66 MB / 0.4981 GB Warning: Assuming fixed start value for the following 4 variables: order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006675/0.32, allocations: 306.2 kB / 0.7041 GB, free: 3.344 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.3203, allocations: 131.2 kB / 0.7042 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01298/0.3332, allocations: 3.873 MB / 0.708 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.086e-05/0.3333, allocations: 11.94 kB / 0.708 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/0.3333, allocations: 8 kB / 0.708 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-05/0.3334, allocations: 7.969 kB / 0.708 GB, free: 15.29 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 postOpt removeSimpleEquations (simulation): time 0.01625/0.3496, allocations: 5.456 MB / 0.7134 GB, free: 9.719 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.968e-06/0.3497, allocations: 0 / 0.7134 GB, free: 9.719 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005953/0.3503, allocations: 95.89 kB / 0.7134 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005677/0.356, allocations: 1.607 MB / 0.715 GB, free: 8.012 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001371/0.3561, allocations: 23.98 kB / 0.715 GB, free: 7.988 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02204/0.3782, allocations: 9.651 MB / 0.7245 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3782, allocations: 0 / 0.7245 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01507/0.3933, allocations: 4.736 MB / 0.7291 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005833/0.3939, allocations: 228 kB / 0.7293 GB, free: 9.031 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003753/0.3943, allocations: 19.94 kB / 0.7293 GB, free: 9.012 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001356/0.3957, allocations: 111.9 kB / 0.7294 GB, free: 8.902 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000717/0.3964, allocations: 200.6 kB / 0.7296 GB, free: 8.707 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001303/0.3966, allocations: 23.98 kB / 0.7296 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001428/0.398, allocations: 0.7393 MB / 0.7304 GB, free: 7.938 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.2e-07/0.398, allocations: 0 / 0.7304 GB, free: 7.938 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001786/0.3998, allocations: 467.7 kB / 0.7308 GB, free: 7.48 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01533/0.4152, allocations: 5.325 MB / 0.736 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00711/0.4223, allocations: 2.532 MB / 0.7385 GB, free: 15.54 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.4224, allocations: 4.25 kB / 0.7385 GB, free: 15.54 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00476/0.4271, allocations: 1.599 MB / 0.7401 GB, free: 13.89 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001435/0.4286, allocations: 108.6 kB / 0.7402 GB, free: 13.79 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04457/0.4732, allocations: 16.05 MB / 0.7558 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/0.4743, allocations: 1.12 MB / 0.7569 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0006252/0.4749, allocations: 116.1 kB / 0.757 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008926/0.4758, allocations: 479.3 kB / 0.7575 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of SimCode: time 1.262e-06/0.4759, allocations: 0 / 0.7575 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4077/0.8835, allocations: 34.27 MB / 0.791 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.18/16.07, allocations: 4.062 kB / 0.791 GB, free: 112.2 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_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_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)