Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_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.004917/0.004917, allocations: 98.39 kB / 15.73 MB, free: 5.98 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.342/1.342, allocations: 222.9 MB / 239.4 MB, free: 4.516 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.001315/0.001315, allocations: 184.5 kB / 289.7 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5015/0.5015, allocations: 91.9 MB / 431.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 85.12 kB / 0.5724 GB, free: 33.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1296, allocations: 71.28 MB / 0.642 GB, free: 3.992 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII): time 0.01979/0.1494, allocations: 21.92 MB / 0.6634 GB, free: 13.98 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.1604, allocations: 4.888 MB / 0.6682 GB, free: 9.07 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00371/0.1641, allocations: 44 kB / 0.6682 GB, free: 9.027 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002991/0.1671, allocations: 0.8867 MB / 0.6691 GB, free: 8.133 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00754/0.1747, allocations: 2.299 MB / 0.6713 GB, free: 5.824 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005398/0.1801, allocations: 2.059 MB / 0.6733 GB, free: 3.797 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.008619/0.1888, allocations: 5.767 MB / 0.679 GB, free: 14.01 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002973/0.1918, allocations: 1.321 MB / 0.6803 GB, free: 12.63 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003946/0.1957, allocations: 2.353 MB / 0.6825 GB, free: 10.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004468/0.2002, allocations: 2.967 MB / 0.6854 GB, free: 7.289 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001785/0.202, allocations: 440 kB / 0.6859 GB, free: 6.859 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00228/0.2043, allocations: 0.5858 MB / 0.6864 GB, free: 6.273 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001942/0.2063, allocations: 1.167 MB / 0.6876 GB, free: 5.102 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004409/0.2107, allocations: 2.625 MB / 0.6901 GB, free: 2.461 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009698/0.2204, allocations: 6.293 MB / 0.6963 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.2205, allocations: 0 / 0.6963 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.545e-06/0.2205, allocations: 3.938 kB / 0.6963 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0003899/0.2209, allocations: 0 / 0.6963 GB, free: 12.14 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: 894 * Number of variables: 894 Notification: Performance of Generate backend data structure: time 0.03376/0.2547, allocations: 9.38 MB / 0.7054 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.2547, allocations: 16.03 kB / 0.7055 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00126/0.256, allocations: 492.9 kB / 0.7059 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02698/0.283, allocations: 4.035 MB / 0.7099 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006825/0.2899, allocations: 2.713 MB / 0.7125 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001205/0.2911, allocations: 0.9612 MB / 0.7135 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001691/0.2928, allocations: 356 kB / 0.7138 GB, free: 9.871 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01448/0.3073, allocations: 4.739 MB / 0.7184 GB, free: 5.102 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001458/0.3075, allocations: 3.984 kB / 0.7184 GB, free: 5.098 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001308/0.3088, allocations: 140 kB / 0.7186 GB, free: 4.961 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.309, allocations: 84 kB / 0.7186 GB, free: 4.879 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01165/0.3206, allocations: 4.255 MB / 0.7228 GB, free: 0.6172 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.03955/0.3602, allocations: 18.29 MB / 0.7407 GB, free: 13.16 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0136/0.3739, allocations: 5.016 MB / 0.7456 GB, free: 8.051 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006748/0.3807, allocations: 2.79 MB / 0.7483 GB, free: 5.25 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007928/0.3815, allocations: 70.92 kB / 0.7484 GB, free: 5.18 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008347/0.3899, allocations: 3.189 MB / 0.7515 GB, free: 1.949 MB / 0.545 GB Notification: Performance of pre-optimization done (n=384): time 9.578e-06/0.3899, allocations: 0 / 0.7515 GB, free: 1.949 MB / 0.545 GB Notification: Performance of matching and sorting (n=384): time 0.5928/0.9827, allocations: 67.78 MB / 0.8177 GB, free: 82.52 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.9828, allocations: 149.8 kB / 0.8178 GB, free: 82.35 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003719/0.9865, allocations: 3.264 MB / 0.821 GB, free: 79.96 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007767/0.9873, allocations: 87.27 kB / 0.8211 GB, free: 79.92 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009734/0.9883, allocations: 2.011 MB / 0.823 GB, free: 78.66 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001158/0.9895, allocations: 1.38 MB / 0.8244 GB, free: 77.49 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001198/0.9907, allocations: 0.6824 MB / 0.825 GB, free: 76.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.699e-05/0.9907, allocations: 301.1 kB / 0.8253 GB, free: 76.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004827/0.9956, allocations: 2.605 MB / 0.8279 GB, free: 73.89 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005079/1.001, allocations: 3.229 MB / 0.831 GB, free: 70.43 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06409/1.065, allocations: 18.99 MB / 0.8496 GB, free: 51.19 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.11e-05/1.065, allocations: 4 kB / 0.8496 GB, free: 51.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.05148/1.116, allocations: 17.32 MB / 0.8665 GB, free: 33.82 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.667e-05/1.116, allocations: 63.41 kB / 0.8666 GB, free: 33.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/1.116, allocations: 16 kB / 0.8666 GB, free: 33.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02372/1.14, allocations: 7.153 MB / 0.8736 GB, free: 26.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003421/1.144, allocations: 0.6942 MB / 0.8742 GB, free: 25.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07997/1.224, allocations: 33.34 MB / 0.9068 GB, free: 8.387 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006318/1.23, allocations: 0.6246 MB / 0.9074 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006546/1.231, allocations: 156 kB / 0.9076 GB, free: 7.691 MB / 0.5762 GB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.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 (407): * Single equations (assignments): 404 * 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.001947/1.233, allocations: 0.6681 MB / 0.9082 GB, free: 7.02 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001421/1.234, allocations: 484.8 kB / 0.9087 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05678/1.291, allocations: 16.87 MB / 0.9251 GB, free: 5.609 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.152e-05/1.291, allocations: 40 kB / 0.9252 GB, free: 5.57 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-05/1.291, allocations: 35.38 kB / 0.9252 GB, free: 5.539 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001019/1.291, allocations: 19.92 kB / 0.9252 GB, free: 5.52 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.06817/1.359, allocations: 21.88 MB / 0.9466 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.689e-05/1.359, allocations: 8.031 kB / 0.9466 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002406/1.362, allocations: 387.5 kB / 0.947 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02691/1.389, allocations: 7.374 MB / 0.9542 GB, free: 7.84 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001122/1.39, allocations: 79.91 kB / 0.9543 GB, free: 7.762 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08988/1.48, allocations: 31.82 MB / 0.9853 GB, free: 7.676 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/1.48, allocations: 0.9375 kB / 0.9853 GB, free: 7.676 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06719/1.547, allocations: 20.28 MB / 1.005 GB, free: 3.309 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001664/1.549, allocations: 0.5829 MB / 1.006 GB, free: 2.758 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001715/1.55, allocations: 67.94 kB / 1.006 GB, free: 2.691 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005325/1.556, allocations: 383.5 kB / 1.006 GB, free: 2.316 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003891/1.56, allocations: 0.7805 MB / 1.007 GB, free: 1.535 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000789/1.561, allocations: 95.98 kB / 1.007 GB, free: 1.441 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.004356/1.565, allocations: 2.133 MB / 1.009 GB, free: 15.3 MB / 0.6856 GB Notification: Performance of sort global known variables: time 3.4e-07/1.565, allocations: 0 / 1.009 GB, free: 15.3 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00723/1.572, allocations: 1.807 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: 12 (order3.delta,order3.w,order3.e1q,order5.delta,order5.w,order5.e1q,order5.e2q,order5.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 (248): * Single equations (assignments): 245 * 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 {(100,36,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.06917/1.641, allocations: 20.94 MB / 1.031 GB, free: 8.523 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.309/1.95, allocations: 9.216 MB / 1.04 GB, free: 242 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/1.95, allocations: 0.7812 kB / 1.04 GB, free: 242 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.01966/1.97, allocations: 6.209 MB / 1.046 GB, free: 241.2 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002833/1.973, allocations: 391.9 kB / 1.047 GB, free: 241.2 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1452/2.118, allocations: 59.23 MB / 1.105 GB, free: 206.7 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001573/2.12, allocations: 2.451 MB / 1.107 GB, free: 204.2 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001439/2.121, allocations: 375.1 kB / 1.107 GB, free: 203.8 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001859/2.123, allocations: 2.026 MB / 1.109 GB, free: 201.8 MB / 0.7012 GB Notification: Performance of SimCode: time 1.283e-06/2.123, allocations: 0 / 1.109 GB, free: 201.8 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1642/2.287, allocations: 126.7 MB / 1.233 GB, free: 75.36 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.25/24.54, allocations: 5.969 kB / 1.233 GB, free: 75.35 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_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_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe 2>&1)