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.001382/0.001382, 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.41/1.41, allocations: 222.9 MB / 239.3 MB, free: 4.605 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.001661/0.001661, allocations: 196.4 kB / 289.6 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.575/0.575, allocations: 91.89 MB / 431.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 84.11 kB / 0.502 GB, free: 7.66 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4176/0.4194, allocations: 71.26 MB / 0.5716 GB, free: 36.48 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR): time 0.0144/0.4339, allocations: 19.54 MB / 0.5906 GB, free: 23.06 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0124/0.4463, allocations: 6.396 MB / 0.5969 GB, free: 18.42 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005469/0.4518, allocations: 43.09 kB / 0.5969 GB, free: 18.42 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00376/0.4556, allocations: 0.9694 MB / 0.5979 GB, free: 17.89 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008046/0.4637, allocations: 2.409 MB / 0.6002 GB, free: 16.23 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005269/0.469, allocations: 2.175 MB / 0.6024 GB, free: 14.99 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.479, allocations: 6.999 MB / 0.6092 GB, free: 11.37 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003009/0.4821, allocations: 1.312 MB / 0.6105 GB, free: 10.71 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005253/0.4873, allocations: 2.668 MB / 0.6131 GB, free: 9.289 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007596/0.495, allocations: 3.286 MB / 0.6163 GB, free: 7.605 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003645/0.4987, allocations: 0.6721 MB / 0.6169 GB, free: 7.605 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004317/0.503, allocations: 0.9555 MB / 0.6179 GB, free: 7.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003373/0.5064, allocations: 1.464 MB / 0.6193 GB, free: 6.5 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007897/0.5143, allocations: 2.844 MB / 0.6221 GB, free: 4.473 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01578/0.5301, allocations: 8.07 MB / 0.63 GB, free: 28 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.5302, allocations: 1.094 kB / 0.63 GB, free: 28 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5302, allocations: 0 / 0.63 GB, free: 28 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003741/0.5305, allocations: 3.938 kB / 0.63 GB, free: 24 kB / 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.04252/0.5731, allocations: 9.725 MB / 0.6395 GB, free: 8.965 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.5731, allocations: 8.031 kB / 0.6395 GB, free: 8.957 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006238/0.5738, allocations: 395.5 kB / 0.6399 GB, free: 8.559 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01208/0.5859, allocations: 1.933 MB / 0.6417 GB, free: 6.617 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007521/0.5934, allocations: 3.351 MB / 0.645 GB, free: 3.191 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001109/0.5945, allocations: 1.009 MB / 0.646 GB, free: 2.023 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008828/0.5954, allocations: 327.8 kB / 0.6463 GB, free: 1.703 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009197/0.6047, allocations: 3.952 MB / 0.6502 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-05/0.6047, allocations: 0 / 0.6502 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004474/0.6052, allocations: 112 kB / 0.6503 GB, free: 13.57 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.589e-05/0.6053, allocations: 67.94 kB / 0.6503 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009399/0.6147, allocations: 3.804 MB / 0.6541 GB, free: 9.684 MB / 462.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.03641/0.6511, allocations: 15.59 MB / 0.6693 GB, free: 9.504 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01669/0.6678, allocations: 6.463 MB / 0.6756 GB, free: 2.805 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00583/0.6737, allocations: 2.434 MB / 0.678 GB, free: 364 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001062/0.6748, allocations: 0.766 MB / 0.6787 GB, free: 15.42 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007501/0.6823, allocations: 2.868 MB / 0.6815 GB, free: 12.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=331): time 1.229e-05/0.6824, allocations: 0 / 0.6815 GB, free: 12.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=331): time 0.1121/0.7945, allocations: 25.85 MB / 0.7068 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.7946, allocations: 200.7 kB / 0.707 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01356/0.8082, allocations: 4.533 MB / 0.7114 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001501/0.8098, allocations: 97.7 kB / 0.7115 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002233/0.812, allocations: 1.743 MB / 0.7132 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002756/0.8148, allocations: 1.206 MB / 0.7144 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005125/0.8199, allocations: 1.063 MB / 0.7154 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.8201, allocations: 309.1 kB / 0.7157 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007145/0.8272, allocations: 3.014 MB / 0.7186 GB, free: 6.309 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008113/0.8354, allocations: 3.541 MB / 0.7221 GB, free: 2.672 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01512/0.8505, allocations: 6.106 MB / 0.728 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.041e-05/0.8506, allocations: 4 kB / 0.7281 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=739) (initialization): time 0.0309/0.8815, allocations: 9.397 MB / 0.7372 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.094e-05/0.8816, allocations: 8 kB / 0.7372 GB, free: 2.965 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-05/0.8817, allocations: 8 kB / 0.7372 GB, free: 2.957 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02697/0.9087, allocations: 10.3 MB / 0.7473 GB, free: 8.645 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00584/0.9146, allocations: 0.9869 MB / 0.7483 GB, free: 7.656 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01909/0.9337, allocations: 6.291 MB / 0.7544 GB, free: 1.332 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008473/0.9422, allocations: 0.737 MB / 0.7551 GB, free: 0.5898 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001209/0.9434, allocations: 192 kB / 0.7553 GB, free: 412 kB / 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.003643/0.9471, allocations: 0.7704 MB / 0.7561 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002123/0.9492, allocations: 466.1 kB / 0.7565 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04053/0.9898, allocations: 11.61 MB / 0.7679 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.328e-05/0.9899, allocations: 32 kB / 0.7679 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.967e-05/0.9899, allocations: 4 kB / 0.7679 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001339/0.99, allocations: 19.94 kB / 0.7679 GB, free: 3.426 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.3584/1.348, allocations: 17.69 MB / 0.7852 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-05/1.348, allocations: 1.094 kB / 0.7852 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003241/1.352, allocations: 436.3 kB / 0.7856 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01692/1.369, allocations: 4.765 MB / 0.7902 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007945/1.369, allocations: 81.09 kB / 0.7903 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05532/1.425, allocations: 21.49 MB / 0.8113 GB, free: 145.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.425, allocations: 0 / 0.8113 GB, free: 145.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0432/1.468, allocations: 14.76 MB / 0.8257 GB, free: 140.4 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002839/1.471, allocations: 0.6978 MB / 0.8264 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001983/1.473, allocations: 71.94 kB / 0.8265 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005193/1.478, allocations: 386 kB / 0.8268 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002531/1.481, allocations: 0.6159 MB / 0.8274 GB, free: 139 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003629/1.481, allocations: 95.69 kB / 0.8275 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006836/1.488, allocations: 2.988 MB / 0.8305 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.71e-07/1.488, allocations: 0 / 0.8305 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007388/1.495, allocations: 1.438 MB / 0.8319 GB, free: 135 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.04419/1.54, allocations: 15.24 MB / 0.8467 GB, free: 120.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02792/1.568, allocations: 8.157 MB / 0.8547 GB, free: 112.1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.48e-05/1.568, allocations: 4 kB / 0.8547 GB, free: 112.1 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01529/1.583, allocations: 4.499 MB / 0.8591 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005121/1.588, allocations: 411.1 kB / 0.8595 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1315/1.72, allocations: 63.24 MB / 0.9212 GB, free: 40.27 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002366/1.722, allocations: 2.349 MB / 0.9235 GB, free: 37.88 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003231/1.725, allocations: 453.1 kB / 0.924 GB, free: 37.44 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003672/1.729, allocations: 1.991 MB / 0.9259 GB, free: 35.45 MB / 0.5606 GB Notification: Performance of SimCode: time 9.22e-07/1.729, allocations: 0 / 0.9259 GB, free: 35.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5062/2.235, allocations: 122.1 MB / 1.045 GB, free: 198.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.6/16.83, allocations: 5.5 kB / 1.045 GB, free: 198.7 MB / 0.6075 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=0.001 OpenIPSL_dev_OpenIPSL_Examples_TwoAreas_Two_Areas_PSSE_AVR.fmu > OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSSE_AVR.pipe 2>&1)