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.007586/0.007586, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.455/1.455, allocations: 222.9 MB / 239.4 MB, free: 4.402 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.001566/0.001566, allocations: 188.5 kB / 289.7 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.536/0.536, allocations: 91.9 MB / 431.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002268/0.002268, allocations: 86.3 kB / 0.5722 GB, free: 33.51 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1136, allocations: 71.28 MB / 0.6418 GB, free: 4.102 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR): time 0.02041/0.134, allocations: 19.55 MB / 0.6609 GB, free: 480 kB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.1468, allocations: 6.384 MB / 0.6672 GB, free: 10.07 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003378/0.1502, allocations: 43.94 kB / 0.6672 GB, free: 10.02 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003141/0.1534, allocations: 0.9724 MB / 0.6682 GB, free: 9.043 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007657/0.1611, allocations: 2.407 MB / 0.6705 GB, free: 6.629 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005283/0.1664, allocations: 2.162 MB / 0.6726 GB, free: 4.484 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.00998/0.1764, allocations: 7.035 MB / 0.6795 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002458/0.1789, allocations: 1.322 MB / 0.6808 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004246/0.1832, allocations: 2.681 MB / 0.6834 GB, free: 9.359 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004807/0.188, allocations: 3.287 MB / 0.6866 GB, free: 6.059 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001783/0.1898, allocations: 0.6758 MB / 0.6873 GB, free: 5.383 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002069/0.1919, allocations: 0.945 MB / 0.6882 GB, free: 4.438 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001512/0.1934, allocations: 1.475 MB / 0.6896 GB, free: 2.957 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003712/0.1971, allocations: 2.841 MB / 0.6924 GB, free: 104 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009684/0.2068, allocations: 8.2 MB / 0.7004 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2069, allocations: 0 / 0.7004 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2069, allocations: 0 / 0.7004 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001953/0.2071, allocations: 0 / 0.7004 GB, free: 7.871 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.03682/0.2439, allocations: 9.898 MB / 0.7101 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.244, allocations: 8.031 kB / 0.7101 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006753/0.2447, allocations: 395.6 kB / 0.7105 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01237/0.257, allocations: 1.96 MB / 0.7124 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00771/0.2648, allocations: 3.406 MB / 0.7157 GB, free: 8.035 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0012/0.266, allocations: 1.001 MB / 0.7167 GB, free: 6.879 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001013/0.267, allocations: 323.9 kB / 0.717 GB, free: 6.562 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009086/0.2761, allocations: 3.949 MB / 0.7208 GB, free: 2.539 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.603e-05/0.2762, allocations: 8 kB / 0.7209 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003677/0.2766, allocations: 108 kB / 0.721 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.027e-05/0.2767, allocations: 75.92 kB / 0.721 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009655/0.2863, allocations: 3.796 MB / 0.7247 GB, free: 14.54 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.03088/0.3173, allocations: 15.53 MB / 0.7399 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01649/0.3338, allocations: 6.455 MB / 0.7462 GB, free: 7.734 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006318/0.3402, allocations: 2.438 MB / 0.7486 GB, free: 5.281 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009552/0.3412, allocations: 0.766 MB / 0.7493 GB, free: 4.348 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006604/0.3478, allocations: 2.862 MB / 0.7521 GB, free: 1.43 MB / 0.545 GB Notification: Performance of pre-optimization done (n=331): time 5.691e-06/0.3478, allocations: 0 / 0.7521 GB, free: 1.43 MB / 0.545 GB Notification: Performance of matching and sorting (n=331): time 0.373/0.7208, allocations: 25.88 MB / 0.7774 GB, free: 109.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.046e-05/0.7209, allocations: 188.8 kB / 0.7776 GB, free: 109.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007965/0.7289, allocations: 4.537 MB / 0.782 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009878/0.7299, allocations: 103.5 kB / 0.7821 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001257/0.7312, allocations: 1.767 MB / 0.7838 GB, free: 108.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001435/0.7326, allocations: 1.263 MB / 0.7851 GB, free: 107.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001828/0.7345, allocations: 1.068 MB / 0.7861 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.443e-05/0.7345, allocations: 301.1 kB / 0.7864 GB, free: 107 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005361/0.7399, allocations: 3.015 MB / 0.7893 GB, free: 105.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005853/0.7458, allocations: 3.548 MB / 0.7928 GB, free: 104 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/0.7573, allocations: 6.111 MB / 0.7988 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-05/0.7573, allocations: 0 / 0.7988 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=739) (initialization): time 0.01914/0.7765, allocations: 9.415 MB / 0.808 GB, free: 92.45 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.224e-05/0.7765, allocations: 13.23 kB / 0.808 GB, free: 92.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.213e-05/0.7766, allocations: 8.125 kB / 0.808 GB, free: 92.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02191/0.7985, allocations: 10.3 MB / 0.8181 GB, free: 82.13 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004693/0.8032, allocations: 0.9753 MB / 0.819 GB, free: 81.15 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/0.8169, allocations: 6.308 MB / 0.8252 GB, free: 74.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007133/0.824, allocations: 0.7412 MB / 0.8259 GB, free: 74.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009901/0.825, allocations: 190.4 kB / 0.8261 GB, free: 74 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.001743/0.8268, allocations: 0.7722 MB / 0.8268 GB, free: 73.22 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000971/0.8278, allocations: 488.8 kB / 0.8273 GB, free: 72.74 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03198/0.8598, allocations: 11.6 MB / 0.8386 GB, free: 61.08 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.673e-05/0.8598, allocations: 36 kB / 0.8387 GB, free: 61.04 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.8598, allocations: 0.6094 kB / 0.8387 GB, free: 61.04 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.215e-05/0.8599, allocations: 23.94 kB / 0.8387 GB, free: 61.02 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.04033/0.9003, allocations: 17.69 MB / 0.856 GB, free: 43.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.388e-05/0.9003, allocations: 4.875 kB / 0.856 GB, free: 43.24 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002766/0.9031, allocations: 432.7 kB / 0.8564 GB, free: 42.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.014/0.9171, allocations: 4.753 MB / 0.861 GB, free: 38.06 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009916/0.9181, allocations: 79.98 kB / 0.8611 GB, free: 37.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0452/0.9634, allocations: 21.48 MB / 0.8821 GB, free: 16.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.9634, allocations: 3.938 kB / 0.8821 GB, free: 16.39 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03924/1.003, allocations: 14.79 MB / 0.8965 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/1.004, allocations: 0.7174 MB / 0.8972 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/1.005, allocations: 72 kB / 0.8973 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004393/1.01, allocations: 385 kB / 0.8977 GB, free: 372 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002209/1.012, allocations: 0.6237 MB / 0.8983 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003393/1.012, allocations: 91.91 kB / 0.8984 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005737/1.018, allocations: 2.988 MB / 0.9013 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.61e-07/1.018, allocations: 1.031 kB / 0.9013 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006956/1.025, allocations: 1.443 MB / 0.9027 GB, free: 11.27 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.04671/1.072, allocations: 15.27 MB / 0.9176 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02303/1.095, allocations: 7.941 MB / 0.9254 GB, free: 3.949 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.095, allocations: 384 / 0.9254 GB, free: 3.949 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01327/1.108, allocations: 4.517 MB / 0.9298 GB, free: 15.43 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003966/1.112, allocations: 406.9 kB / 0.9302 GB, free: 15.03 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1275/1.24, allocations: 49.97 MB / 0.979 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002114/1.242, allocations: 2.337 MB / 0.9812 GB, free: 10.34 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.002378/1.244, allocations: 449.2 kB / 0.9817 GB, free: 9.895 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003326/1.248, allocations: 1.995 MB / 0.9836 GB, free: 7.898 MB / 0.6544 GB Notification: Performance of SimCode: time 9.52e-07/1.248, allocations: 0 / 0.9836 GB, free: 7.898 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5806/1.828, allocations: 121.5 MB / 1.102 GB, free: 199.7 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.19/25.01, allocations: 10.56 kB / 1.102 GB, free: 199.7 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)