Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.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.TwoAreas.Two_Areas_PSSE_AVR,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR",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.007207/0.007207, allocations: 97 kB / 15.73 MB, free: 5.949 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.428/1.428, allocations: 222.9 MB / 239.4 MB, free: 4.328 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.001691/0.001691, allocations: 196.4 kB / 289.7 MB, free: 2.066 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5251/0.5251, allocations: 91.91 MB / 431.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 83.48 kB / 0.5722 GB, free: 33.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1359, allocations: 71.29 MB / 0.6419 GB, free: 4.07 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR): time 0.01963/0.1556, allocations: 19.54 MB / 0.6609 GB, free: 456 kB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01422/0.1699, allocations: 6.384 MB / 0.6672 GB, free: 10.04 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005055/0.175, allocations: 43.94 kB / 0.6672 GB, free: 10 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003645/0.1787, allocations: 0.9724 MB / 0.6682 GB, free: 9.02 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008438/0.1872, allocations: 2.576 MB / 0.6707 GB, free: 6.434 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005341/0.1925, allocations: 2.175 MB / 0.6728 GB, free: 4.277 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.00985/0.2024, allocations: 7.035 MB / 0.6797 GB, free: 13.22 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002764/0.2052, allocations: 1.326 MB / 0.681 GB, free: 11.84 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004882/0.2101, allocations: 2.681 MB / 0.6836 GB, free: 9.148 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005358/0.2154, allocations: 3.291 MB / 0.6868 GB, free: 5.844 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002255/0.2177, allocations: 0.6719 MB / 0.6875 GB, free: 5.172 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002904/0.2206, allocations: 0.9489 MB / 0.6884 GB, free: 4.223 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002446/0.2231, allocations: 1.479 MB / 0.6898 GB, free: 2.738 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00489/0.228, allocations: 2.833 MB / 0.6926 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01112/0.2391, allocations: 8.196 MB / 0.7006 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.187e-06/0.2392, allocations: 4 kB / 0.7006 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.425e-06/0.2392, allocations: 0 / 0.7006 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.000292/0.2395, allocations: 0 / 0.7006 GB, free: 7.66 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: 691 * Number of variables: 691 Notification: Performance of Generate backend data structure: time 0.04134/0.2809, allocations: 9.898 MB / 0.7103 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.2809, allocations: 8.031 kB / 0.7103 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001569/0.2825, allocations: 391.6 kB / 0.7106 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01335/0.2959, allocations: 1.963 MB / 0.7126 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008714/0.3046, allocations: 3.402 MB / 0.7159 GB, free: 7.828 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001353/0.306, allocations: 1.001 MB / 0.7169 GB, free: 6.672 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001473/0.3075, allocations: 327.9 kB / 0.7172 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01255/0.3201, allocations: 3.949 MB / 0.721 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001017/0.3202, allocations: 0 / 0.721 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009405/0.3212, allocations: 120 kB / 0.7211 GB, free: 2.211 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.61e-05/0.3213, allocations: 71.94 kB / 0.7212 GB, free: 2.141 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01113/0.3324, allocations: 3.792 MB / 0.7249 GB, free: 14.34 MB / 0.5294 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.03947/0.3719, allocations: 15.53 MB / 0.7401 GB, free: 14.21 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0183/0.3903, allocations: 6.466 MB / 0.7464 GB, free: 7.516 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0064/0.3967, allocations: 2.432 MB / 0.7488 GB, free: 5.066 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001137/0.3979, allocations: 0.766 MB / 0.7495 GB, free: 4.133 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008242/0.4061, allocations: 2.859 MB / 0.7523 GB, free: 1.219 MB / 0.545 GB Notification: Performance of pre-optimization done (n=331): time 1.03e-05/0.4062, allocations: 0 / 0.7523 GB, free: 1.219 MB / 0.545 GB Notification: Performance of matching and sorting (n=331): time 0.3905/0.7967, allocations: 25.88 MB / 0.7776 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.553e-05/0.7968, allocations: 189.4 kB / 0.7778 GB, free: 109.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00844/0.8052, allocations: 4.535 MB / 0.7822 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009895/0.8063, allocations: 103.1 kB / 0.7823 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001369/0.8076, allocations: 1.774 MB / 0.784 GB, free: 108.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001672/0.8093, allocations: 1.257 MB / 0.7853 GB, free: 107.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001984/0.8113, allocations: 1.067 MB / 0.7863 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.978e-05/0.8114, allocations: 309.1 kB / 0.7866 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005733/0.8171, allocations: 3.015 MB / 0.7895 GB, free: 105.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006066/0.8232, allocations: 3.543 MB / 0.793 GB, free: 103.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/0.8345, allocations: 6.109 MB / 0.799 GB, free: 100.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.785e-05/0.8346, allocations: 4 kB / 0.799 GB, free: 100.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=739) (initialization): time 0.01928/0.8539, allocations: 9.426 MB / 0.8082 GB, free: 92.25 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.8539, allocations: 8 kB / 0.8082 GB, free: 92.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.4e-05/0.854, allocations: 8 kB / 0.8082 GB, free: 92.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02418/0.8782, allocations: 10.29 MB / 0.8182 GB, free: 81.94 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00505/0.8832, allocations: 0.983 MB / 0.8192 GB, free: 80.96 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01647/0.8998, allocations: 6.299 MB / 0.8253 GB, free: 74.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007951/0.9077, allocations: 0.7404 MB / 0.8261 GB, free: 74 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001297/0.9091, allocations: 192 kB / 0.8263 GB, free: 73.81 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3,$whenCondition6,$whenCondition5,$whenCondition8,$whenCondition7,g4.eSDC1A.rotatingExciterLimited.sISO.local_reset,g2.eSDC1A.rotatingExciterLimited.sISO.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (584): * Single equations (assignments): 581 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(80,72)} Notification: Performance of prepare postOptimizeDAE: time 0.003082/0.9122, allocations: 0.7732 MB / 0.827 GB, free: 73.04 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002037/0.9142, allocations: 488.8 kB / 0.8275 GB, free: 72.55 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03709/0.9513, allocations: 11.61 MB / 0.8388 GB, free: 60.89 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.275e-05/0.9514, allocations: 36 kB / 0.8388 GB, free: 60.85 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.9514, allocations: 0 / 0.8388 GB, free: 60.85 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.268e-05/0.9515, allocations: 15.94 kB / 0.8389 GB, free: 60.84 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.04643/0.9979, allocations: 17.68 MB / 0.8561 GB, free: 43.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-05/0.998, allocations: 0 / 0.8561 GB, free: 43.06 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00299/1.001, allocations: 440.2 kB / 0.8566 GB, free: 42.63 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01543/1.016, allocations: 4.753 MB / 0.8612 GB, free: 37.87 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009561/1.017, allocations: 79.97 kB / 0.8613 GB, free: 37.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05208/1.07, allocations: 21.49 MB / 0.8823 GB, free: 16.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/1.07, allocations: 0 / 0.8823 GB, free: 16.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04754/1.117, allocations: 14.8 MB / 0.8967 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002001/1.119, allocations: 0.7142 MB / 0.8974 GB, free: 0.6211 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001638/1.121, allocations: 75.92 kB / 0.8975 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006583/1.127, allocations: 383.5 kB / 0.8978 GB, free: 176 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002541/1.13, allocations: 0.6176 MB / 0.8984 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003415/1.13, allocations: 94.59 kB / 0.8985 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.006699/1.137, allocations: 2.992 MB / 0.9015 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.112e-06/1.137, allocations: 0 / 0.9015 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008906/1.146, allocations: 1.441 MB / 0.9029 GB, free: 11.08 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 38 (g1.g1.w,g1.g1.delta,g1.g1.Epd,g1.g1.Epq,g1.g1.PSIkd,g1.g1.PSIkq,g1.sEXS.simpleLagLim.state,g1.sEXS.leadLag.TF.x_scaled[1],g2.g2.w,g2.g2.delta,g2.g2.Epd,g2.g2.Epq,g2.g2.PSIkd,g2.g2.PSIkq,g2.eSDC1A.imDerivativeLag.x,g2.eSDC1A.imLeadLag.TF.x_scaled[1],g2.eSDC1A.simpleLagLim.state,g2.eSDC1A.rotatingExciterLimited.sISO.y,g2.eSDC1A.TransducerDelay.state,g3.g3.w,g3.g3.delta,g3.g3.Epd,g3.g3.Epq,g3.g3.PSIkd,g3.g3.PSIkq,g3.sEXS.simpleLagLim.state,g3.sEXS.leadLag.TF.x_scaled[1],g4.gENSAL.w,g4.gENSAL.delta,g4.gENSAL.Epd,g4.gENSAL.Epq,g4.gENSAL.PSIkd,g4.gENSAL.PSIkq,g4.eSDC1A.imDerivativeLag.x,g4.eSDC1A.imLeadLag.TF.x_scaled[1],g4.eSDC1A.simpleLagLim.state,g4.eSDC1A.rotatingExciterLimited.sISO.y,g4.eSDC1A.TransducerDelay.state) * Number of discrete variables: 8 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 0 * 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 {(54,52)} Notification: Performance of Backend phase and start with SimCode phase: time 0.07424/1.22, allocations: 15.27 MB / 0.9178 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02676/1.247, allocations: 7.942 MB / 0.9255 GB, free: 3.766 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.247, allocations: 1.375 kB / 0.9255 GB, free: 3.766 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01529/1.262, allocations: 4.522 MB / 0.9299 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006085/1.269, allocations: 403.6 kB / 0.9303 GB, free: 14.85 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.142/1.411, allocations: 49.98 MB / 0.9791 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003331/1.414, allocations: 2.345 MB / 0.9814 GB, free: 10.14 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.003015/1.417, allocations: 457.1 kB / 0.9819 GB, free: 9.691 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004027/1.421, allocations: 1.991 MB / 0.9838 GB, free: 7.699 MB / 0.6544 GB Notification: Performance of SimCode: time 1.172e-06/1.421, allocations: 0 / 0.9838 GB, free: 7.699 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5149/1.936, allocations: 121.5 MB / 1.102 GB, free: 199.6 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.59/24.52, allocations: 7.828 kB / 1.102 GB, free: 199.6 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 0.001 --interface-type ModelExchange --solver CVode --output-interval 0.004 OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR.fmu > OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.pipe 2>&1)