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.005346/0.005346, allocations: 98.73 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.309/1.309, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001533/0.001533, allocations: 192.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4959/0.4959, allocations: 91.9 MB / 431.8 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001438, allocations: 78.94 kB / 0.5724 GB, free: 33.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.115, allocations: 71.28 MB / 0.642 GB, free: 4.074 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII): time 0.0186/0.1337, allocations: 21.93 MB / 0.6634 GB, free: 14.05 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.1445, allocations: 4.876 MB / 0.6682 GB, free: 9.156 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003419/0.1479, allocations: 44 kB / 0.6682 GB, free: 9.113 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002851/0.1508, allocations: 0.8867 MB / 0.6691 GB, free: 8.219 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007552/0.1584, allocations: 2.296 MB / 0.6713 GB, free: 5.914 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005475/0.1639, allocations: 2.067 MB / 0.6733 GB, free: 3.879 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.008643/0.1725, allocations: 5.767 MB / 0.679 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003087/0.1756, allocations: 1.33 MB / 0.6803 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004376/0.18, allocations: 2.353 MB / 0.6826 GB, free: 10.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004409/0.1845, allocations: 2.959 MB / 0.6854 GB, free: 7.371 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001696/0.1862, allocations: 444 kB / 0.6859 GB, free: 6.938 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002275/0.1885, allocations: 0.5897 MB / 0.6864 GB, free: 6.348 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001764/0.1903, allocations: 1.155 MB / 0.6876 GB, free: 5.188 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004004/0.1943, allocations: 2.629 MB / 0.6901 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008947/0.2032, allocations: 6.297 MB / 0.6963 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.2033, allocations: 4 kB / 0.6963 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.455e-06/0.2033, allocations: 3.938 kB / 0.6963 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0002958/0.2036, allocations: 0 / 0.6963 GB, free: 12.21 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.03195/0.2356, allocations: 9.38 MB / 0.7055 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.2356, allocations: 8.031 kB / 0.7055 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001243/0.2369, allocations: 484.9 kB / 0.7059 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02648/0.2634, allocations: 4.051 MB / 0.7099 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006169/0.2696, allocations: 2.705 MB / 0.7125 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001058/0.2707, allocations: 0.9612 MB / 0.7135 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001286/0.272, allocations: 352 kB / 0.7138 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01221/0.2842, allocations: 4.739 MB / 0.7184 GB, free: 5.184 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.482e-05/0.2843, allocations: 3.938 kB / 0.7184 GB, free: 5.18 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008255/0.2851, allocations: 144 kB / 0.7186 GB, free: 5.039 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-05/0.2852, allocations: 84 kB / 0.7186 GB, free: 4.957 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009759/0.295, allocations: 4.252 MB / 0.7228 GB, free: 0.6992 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.03474/0.3297, allocations: 18.28 MB / 0.7407 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01248/0.3423, allocations: 5.024 MB / 0.7456 GB, free: 8.133 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005811/0.3481, allocations: 2.794 MB / 0.7483 GB, free: 5.328 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006152/0.3487, allocations: 66.94 kB / 0.7484 GB, free: 5.262 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006923/0.3557, allocations: 3.185 MB / 0.7515 GB, free: 2.035 MB / 0.545 GB Notification: Performance of pre-optimization done (n=384): time 6.993e-06/0.3557, allocations: 4 kB / 0.7515 GB, free: 2.031 MB / 0.545 GB Notification: Performance of matching and sorting (n=384): time 0.5337/0.8894, allocations: 67.78 MB / 0.8177 GB, free: 82.62 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.576e-05/0.8895, allocations: 145.9 kB / 0.8178 GB, free: 82.46 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003573/0.8931, allocations: 3.261 MB / 0.821 GB, free: 80.07 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007052/0.8938, allocations: 87.52 kB / 0.8211 GB, free: 80.02 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009602/0.8948, allocations: 2.006 MB / 0.823 GB, free: 78.75 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001157/0.896, allocations: 1.382 MB / 0.8244 GB, free: 77.58 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001201/0.8972, allocations: 0.6824 MB / 0.825 GB, free: 76.88 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.502e-05/0.8972, allocations: 309.1 kB / 0.8253 GB, free: 76.58 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004593/0.9018, allocations: 2.601 MB / 0.8279 GB, free: 73.97 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004843/0.9067, allocations: 3.229 MB / 0.831 GB, free: 70.52 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06139/0.9681, allocations: 18.99 MB / 0.8496 GB, free: 51.27 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.919e-05/0.9681, allocations: 8 kB / 0.8496 GB, free: 51.26 MB / 0.5606 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.04994/1.018, allocations: 17.32 MB / 0.8665 GB, free: 33.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.465e-05/1.018, allocations: 67.41 kB / 0.8666 GB, free: 33.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.529e-05/1.018, allocations: 16 kB / 0.8666 GB, free: 33.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02275/1.041, allocations: 7.157 MB / 0.8736 GB, free: 26.64 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003274/1.044, allocations: 0.6865 MB / 0.8742 GB, free: 25.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07511/1.119, allocations: 33.34 MB / 0.9068 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005632/1.125, allocations: 0.6287 MB / 0.9074 GB, free: 7.922 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006075/1.126, allocations: 156 kB / 0.9076 GB, free: 7.77 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.001734/1.128, allocations: 0.6737 MB / 0.9082 GB, free: 7.098 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009696/1.128, allocations: 484.8 kB / 0.9087 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05379/1.182, allocations: 16.87 MB / 0.9252 GB, free: 5.688 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.006e-05/1.182, allocations: 40 kB / 0.9252 GB, free: 5.648 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.455e-05/1.182, allocations: 35.94 kB / 0.9252 GB, free: 5.613 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-05/1.183, allocations: 22.36 kB / 0.9252 GB, free: 5.594 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.06098/1.244, allocations: 21.88 MB / 0.9466 GB, free: 15.69 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-05/1.244, allocations: 0 / 0.9466 GB, free: 15.69 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002317/1.246, allocations: 395.5 kB / 0.947 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0251/1.271, allocations: 7.371 MB / 0.9542 GB, free: 7.914 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008796/1.272, allocations: 75.91 kB / 0.9543 GB, free: 7.84 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07741/1.349, allocations: 31.82 MB / 0.9853 GB, free: 7.746 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/1.349, allocations: 0 / 0.9853 GB, free: 7.746 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06102/1.41, allocations: 20.28 MB / 1.005 GB, free: 3.383 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00142/1.412, allocations: 0.5846 MB / 1.006 GB, free: 2.832 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001259/1.413, allocations: 67.94 kB / 1.006 GB, free: 2.766 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004652/1.418, allocations: 383.5 kB / 1.006 GB, free: 2.391 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003049/1.421, allocations: 0.7844 MB / 1.007 GB, free: 1.605 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005074/1.421, allocations: 91.98 kB / 1.007 GB, free: 1.516 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.003061/1.424, allocations: 2.137 MB / 1.009 GB, free: 15.38 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.11e-07/1.424, allocations: 0 / 1.009 GB, free: 15.38 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.005011/1.43, allocations: 1.808 MB / 1.011 GB, free: 13.63 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.06046/1.49, allocations: 20.94 MB / 1.031 GB, free: 8.594 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.2802/1.77, allocations: 9.217 MB / 1.04 GB, free: 241.8 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/1.77, allocations: 1 kB / 1.04 GB, free: 241.8 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.01833/1.789, allocations: 6.216 MB / 1.046 GB, free: 241.1 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/1.791, allocations: 392.1 kB / 1.047 GB, free: 241.1 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1357/1.927, allocations: 59.22 MB / 1.105 GB, free: 206.7 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001611/1.929, allocations: 2.451 MB / 1.107 GB, free: 204.2 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001441/1.93, allocations: 379.1 kB / 1.107 GB, free: 203.8 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00193/1.932, allocations: 2.026 MB / 1.109 GB, free: 201.8 MB / 0.7012 GB Notification: Performance of SimCode: time 1.022e-06/1.932, allocations: 0 / 1.109 GB, free: 201.8 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1817/2.114, allocations: 126.7 MB / 1.233 GB, free: 75.35 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.35/23.46, allocations: 13.72 kB / 1.233 GB, free: 75.34 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)