Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR,fileNamePrefix="OpenIPSL_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.002097/0.002097, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.521/1.521, allocations: 222.9 MB / 239.3 MB, free: 4.637 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.001713/0.001713, allocations: 195.5 kB / 289.6 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5547/0.5547, allocations: 78.52 MB / 418.2 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001768, allocations: 79.89 kB / 497.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1677, allocations: 68.17 MB / 0.5525 GB, free: 2.133 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR): time 0.334/0.5018, allocations: 19.5 MB / 0.5715 GB, free: 27.77 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01578/0.5177, allocations: 6.399 MB / 0.5778 GB, free: 25.66 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006651/0.5244, allocations: 41.69 kB / 0.5778 GB, free: 25.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004413/0.5288, allocations: 0.9769 MB / 0.5787 GB, free: 25.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01107/0.5399, allocations: 2.681 MB / 0.5814 GB, free: 24.07 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006115/0.5461, allocations: 2.167 MB / 0.5835 GB, free: 23.09 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01217/0.5583, allocations: 7.307 MB / 0.5906 GB, free: 19.39 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003755/0.5621, allocations: 1.318 MB / 0.5919 GB, free: 18.8 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006299/0.5684, allocations: 2.714 MB / 0.5946 GB, free: 17.36 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00626/0.5747, allocations: 3.325 MB / 0.5978 GB, free: 15.67 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003434/0.5781, allocations: 0.6729 MB / 0.5985 GB, free: 15.67 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004514/0.5827, allocations: 0.9444 MB / 0.5994 GB, free: 15.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00303/0.5857, allocations: 1.485 MB / 0.6008 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006577/0.5923, allocations: 2.858 MB / 0.6036 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0155/0.6078, allocations: 8.111 MB / 0.6115 GB, free: 9.223 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.001e-05/0.6079, allocations: 5.375 kB / 0.6115 GB, free: 9.219 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.6079, allocations: 0 / 0.6115 GB, free: 9.219 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004229/0.6083, allocations: 0 / 0.6115 GB, free: 9.219 MB / 430.1 MB 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.05218/0.6605, allocations: 10.54 MB / 0.6218 GB, free: 4.688 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.25e-05/0.6606, allocations: 11.38 kB / 0.6219 GB, free: 4.688 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002199/0.6628, allocations: 383.1 kB / 0.6222 GB, free: 4.395 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01401/0.6768, allocations: 1.938 MB / 0.6241 GB, free: 3.559 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01131/0.6882, allocations: 3.357 MB / 0.6274 GB, free: 1.023 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001615/0.6899, allocations: 1.002 MB / 0.6284 GB, free: 76 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002406/0.6923, allocations: 332.5 kB / 0.6287 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01611/0.7084, allocations: 3.949 MB / 0.6325 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001525/0.7086, allocations: 3.938 kB / 0.6325 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001337/0.71, allocations: 112 kB / 0.6327 GB, free: 12.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-05/0.7101, allocations: 74.7 kB / 0.6327 GB, free: 12.87 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01178/0.7219, allocations: 3.8 MB / 0.6364 GB, free: 9.059 MB / 446.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.03966/0.7616, allocations: 15.57 MB / 0.6516 GB, free: 8.902 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01771/0.7793, allocations: 6.471 MB / 0.658 GB, free: 2.234 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006578/0.7859, allocations: 2.436 MB / 0.6603 GB, free: 15.78 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001237/0.7872, allocations: 0.7621 MB / 0.6611 GB, free: 14.85 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008258/0.7955, allocations: 2.858 MB / 0.6639 GB, free: 11.94 MB / 478.1 MB Notification: Performance of pre-optimization done (n=331): time 1.281e-05/0.7956, allocations: 1.875 kB / 0.6639 GB, free: 11.94 MB / 478.1 MB Notification: Performance of matching and sorting (n=331): time 0.1146/0.9102, allocations: 25.86 MB / 0.6891 GB, free: 1.984 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.9104, allocations: 196.9 kB / 0.6893 GB, free: 1.754 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01239/0.9228, allocations: 4.534 MB / 0.6937 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001642/0.9245, allocations: 101.7 kB / 0.6938 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002519/0.927, allocations: 1.751 MB / 0.6956 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002922/0.9299, allocations: 1.202 MB / 0.6967 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006396/0.9364, allocations: 1.059 MB / 0.6978 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.9365, allocations: 305.1 kB / 0.698 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008581/0.9451, allocations: 3.022 MB / 0.701 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009207/0.9543, allocations: 3.537 MB / 0.7045 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01585/0.9702, allocations: 6.106 MB / 0.7104 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.658e-05/0.9703, allocations: 0 / 0.7104 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of matching and sorting (n=739) (initialization): time 0.0306/1.001, allocations: 9.401 MB / 0.7196 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/1.001, allocations: 9.188 kB / 0.7196 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.939e-05/1.001, allocations: 9.125 kB / 0.7196 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02792/1.029, allocations: 10.3 MB / 0.7297 GB, free: 8.086 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005757/1.035, allocations: 0.9831 MB / 0.7306 GB, free: 7.102 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01962/1.054, allocations: 6.291 MB / 0.7368 GB, free: 0.7812 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009499/1.064, allocations: 0.7292 MB / 0.7375 GB, free: 48 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001664/1.066, allocations: 193.8 kB / 0.7377 GB, free: 15.86 MB / 0.545 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.004341/1.07, allocations: 0.7718 MB / 0.7384 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002641/1.073, allocations: 466.1 kB / 0.7389 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0414/1.114, allocations: 11.62 MB / 0.7502 GB, free: 2.93 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.948e-05/1.114, allocations: 32 kB / 0.7502 GB, free: 2.898 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.026e-05/1.114, allocations: 0 / 0.7502 GB, free: 2.898 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001332/1.114, allocations: 19.94 kB / 0.7503 GB, free: 2.879 MB / 0.545 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.05955/1.174, allocations: 17.69 MB / 0.7675 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.29e-05/1.174, allocations: 7.922 kB / 0.7676 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003408/1.177, allocations: 442.1 kB / 0.768 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3691/1.547, allocations: 4.751 MB / 0.7726 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001236/1.548, allocations: 82.67 kB / 0.7727 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05356/1.602, allocations: 21.47 MB / 0.7937 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/1.602, allocations: 1.672 kB / 0.7937 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05046/1.652, allocations: 14.77 MB / 0.8081 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002691/1.655, allocations: 0.69 MB / 0.8088 GB, free: 155 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001481/1.656, allocations: 77.48 kB / 0.8088 GB, free: 155 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004814/1.661, allocations: 386 kB / 0.8092 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00241/1.664, allocations: 0.6142 MB / 0.8098 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003296/1.664, allocations: 88.97 kB / 0.8099 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005811/1.67, allocations: 2.99 MB / 0.8128 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.3e-07/1.67, allocations: 3 kB / 0.8128 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006778/1.677, allocations: 1.44 MB / 0.8142 GB, free: 153.4 MB / 0.5606 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.04264/1.719, allocations: 15.24 MB / 0.8291 GB, free: 146.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02935/1.749, allocations: 8.164 MB / 0.8371 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/1.749, allocations: 0.5625 kB / 0.8371 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01491/1.764, allocations: 4.499 MB / 0.8415 GB, free: 135.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009003/1.773, allocations: 405.8 kB / 0.8419 GB, free: 134.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1405/1.913, allocations: 63.24 MB / 0.9036 GB, free: 68.31 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002932/1.916, allocations: 2.341 MB / 0.9059 GB, free: 65.93 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003841/1.92, allocations: 452.8 kB / 0.9063 GB, free: 65.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004404/1.924, allocations: 1.996 MB / 0.9083 GB, free: 63.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.152e-06/1.924, allocations: 0 / 0.9083 GB, free: 63.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4934/2.418, allocations: 122.1 MB / 1.028 GB, free: 173.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/17.32, allocations: 9.156 kB / 1.028 GB, free: 173.9 MB / 0.5762 GB (rm -f OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.sim & python3 -m fmpy simulate --output-file OpenIPSL_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_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR.fmu > OpenIPSL_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.pipe 2>&1)