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.006485/0.006485, allocations: 95.44 kB / 15.73 MB, free: 6.051 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.326/1.326, allocations: 222.9 MB / 239.4 MB, free: 4.566 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.001358/0.001358, allocations: 192.4 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4529/0.4529, allocations: 78.53 MB / 418.4 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 75.89 kB / 0.5531 GB, free: 1.539 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3254, allocations: 68.16 MB / 0.6197 GB, free: 9.316 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR): time 0.01518/0.3407, allocations: 19.52 MB / 0.6388 GB, free: 6.633 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01173/0.3525, allocations: 6.395 MB / 0.645 GB, free: 228 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003644/0.3561, allocations: 40 kB / 0.645 GB, free: 188 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003485/0.3597, allocations: 0.9803 MB / 0.646 GB, free: 15.19 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009235/0.369, allocations: 2.845 MB / 0.6488 GB, free: 12.36 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005626/0.3746, allocations: 2.182 MB / 0.6509 GB, free: 10.19 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.009899/0.3845, allocations: 7.347 MB / 0.6581 GB, free: 2.824 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002286/0.3869, allocations: 1.315 MB / 0.6594 GB, free: 1.453 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004421/0.3913, allocations: 2.728 MB / 0.662 GB, free: 14.71 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005073/0.3964, allocations: 3.338 MB / 0.6653 GB, free: 11.36 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00242/0.3989, allocations: 0.6719 MB / 0.6659 GB, free: 10.69 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002702/0.4016, allocations: 0.9411 MB / 0.6669 GB, free: 9.75 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002046/0.4037, allocations: 1.483 MB / 0.6683 GB, free: 8.262 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004675/0.4084, allocations: 2.856 MB / 0.6711 GB, free: 5.391 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01008/0.4185, allocations: 8.246 MB / 0.6792 GB, free: 13.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.4185, allocations: 0 / 0.6792 GB, free: 13.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4186, allocations: 0 / 0.6792 GB, free: 13.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.000219/0.4188, allocations: 0 / 0.6792 GB, free: 13.11 MB / 494.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.04133/0.4601, allocations: 10.7 MB / 0.6896 GB, free: 2.32 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.4602, allocations: 12.03 kB / 0.6896 GB, free: 2.309 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009508/0.4611, allocations: 391.6 kB / 0.69 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01221/0.4734, allocations: 1.964 MB / 0.6919 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007492/0.4809, allocations: 3.394 MB / 0.6952 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001173/0.4821, allocations: 1.009 MB / 0.6962 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001008/0.4831, allocations: 323.9 kB / 0.6965 GB, free: 11 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008903/0.492, allocations: 3.96 MB / 0.7004 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.361e-05/0.4921, allocations: 0 / 0.7004 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003727/0.4925, allocations: 112 kB / 0.7005 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.866e-05/0.4926, allocations: 67.94 kB / 0.7006 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009233/0.5018, allocations: 3.8 MB / 0.7043 GB, free: 2.98 MB / 0.4981 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.03125/0.5331, allocations: 15.53 MB / 0.7194 GB, free: 2.859 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01605/0.5492, allocations: 6.457 MB / 0.7257 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005494/0.5547, allocations: 2.438 MB / 0.7281 GB, free: 9.703 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008848/0.5556, allocations: 0.7699 MB / 0.7289 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006748/0.5624, allocations: 2.867 MB / 0.7317 GB, free: 5.844 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=331): time 6.231e-06/0.5624, allocations: 0 / 0.7317 GB, free: 5.844 MB / 0.5294 GB Notification: Performance of matching and sorting (n=331): time 0.1082/0.6707, allocations: 25.88 MB / 0.7569 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/0.6709, allocations: 192.8 kB / 0.7571 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008987/0.6799, allocations: 4.54 MB / 0.7616 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001071/0.681, allocations: 101.7 kB / 0.7617 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001687/0.6827, allocations: 1.765 MB / 0.7634 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001986/0.6847, allocations: 1.263 MB / 0.7646 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0031/0.6878, allocations: 1.071 MB / 0.7657 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.24e-05/0.6879, allocations: 301.1 kB / 0.7659 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2796/0.9676, allocations: 3.012 MB / 0.7689 GB, free: 124.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008792/0.9764, allocations: 3.548 MB / 0.7724 GB, free: 124 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01511/0.9916, allocations: 6.102 MB / 0.7783 GB, free: 121.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-05/0.9916, allocations: 6 kB / 0.7783 GB, free: 121.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=739) (initialization): time 0.02113/1.013, allocations: 9.418 MB / 0.7875 GB, free: 118 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/1.013, allocations: 7.75 kB / 0.7875 GB, free: 118 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.053e-05/1.013, allocations: 7.719 kB / 0.7875 GB, free: 118 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02331/1.036, allocations: 10.29 MB / 0.7976 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004915/1.041, allocations: 0.9875 MB / 0.7985 GB, free: 113.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01536/1.057, allocations: 6.298 MB / 0.8047 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007493/1.064, allocations: 0.7429 MB / 0.8054 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001229/1.065, allocations: 191.5 kB / 0.8056 GB, free: 107.3 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.002379/1.068, allocations: 0.7754 MB / 0.8064 GB, free: 106.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/1.069, allocations: 489.3 kB / 0.8068 GB, free: 106.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0342/1.103, allocations: 11.6 MB / 0.8182 GB, free: 96.14 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.078e-05/1.103, allocations: 39.94 kB / 0.8182 GB, free: 96.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/1.103, allocations: 5.375 kB / 0.8182 GB, free: 96.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.698e-05/1.104, allocations: 15.94 kB / 0.8182 GB, free: 96.09 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.04446/1.148, allocations: 17.67 MB / 0.8355 GB, free: 78.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.177e-05/1.148, allocations: 4.031 kB / 0.8355 GB, free: 78.31 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002847/1.151, allocations: 435.4 kB / 0.8359 GB, free: 77.89 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01514/1.166, allocations: 4.753 MB / 0.8405 GB, free: 73.12 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009186/1.167, allocations: 83.91 kB / 0.8406 GB, free: 73.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04992/1.217, allocations: 21.49 MB / 0.8616 GB, free: 51.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.217, allocations: 0 / 0.8616 GB, free: 51.45 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04222/1.259, allocations: 14.8 MB / 0.8761 GB, free: 36.56 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001775/1.261, allocations: 0.716 MB / 0.8768 GB, free: 35.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001919/1.263, allocations: 75.92 kB / 0.8768 GB, free: 35.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005526/1.269, allocations: 383.5 kB / 0.8772 GB, free: 35.42 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002766/1.271, allocations: 0.616 MB / 0.8778 GB, free: 34.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000723/1.272, allocations: 95.97 kB / 0.8779 GB, free: 34.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005564/1.278, allocations: 2.996 MB / 0.8808 GB, free: 31.72 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.4e-07/1.278, allocations: 1.875 kB / 0.8808 GB, free: 31.72 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005666/1.283, allocations: 1.44 MB / 0.8822 GB, free: 30.32 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.04305/1.326, allocations: 15.26 MB / 0.8971 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02245/1.349, allocations: 7.943 MB / 0.9049 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.349, allocations: 0 / 0.9049 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01344/1.362, allocations: 4.515 MB / 0.9093 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005478/1.368, allocations: 412.1 kB / 0.9097 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.14/1.508, allocations: 49.96 MB / 0.9585 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003131/1.511, allocations: 2.333 MB / 0.9608 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002784/1.514, allocations: 461.1 kB / 0.9612 GB, free: 12.91 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004101/1.518, allocations: 1.995 MB / 0.9631 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of SimCode: time 1.323e-06/1.518, allocations: 0 / 0.9631 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4647/1.983, allocations: 121.5 MB / 1.082 GB, free: 190.6 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.72/24.7, allocations: 9.531 kB / 1.082 GB, free: 190.6 MB / 0.67 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)