Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.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.PSATSystems.TwoArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII",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.001101/0.001101, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.388/1.388, allocations: 222.9 MB / 239 MB, free: 4.75 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.001576/0.001577, allocations: 196.2 kB / 289.3 MB, free: 2.477 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5461/0.5461, allocations: 91.89 MB / 431.3 MB, free: 9.402 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 83.88 kB / 0.5015 GB, free: 7.957 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4191/0.4205, allocations: 71.26 MB / 0.5711 GB, free: 36.61 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII): time 0.01579/0.4364, allocations: 23.48 MB / 0.594 GB, free: 20.32 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01237/0.4488, allocations: 5.17 MB / 0.5991 GB, free: 16.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006247/0.4551, allocations: 54.94 kB / 0.5991 GB, free: 16.56 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003742/0.4589, allocations: 0.6721 MB / 0.5998 GB, free: 16.3 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008586/0.4675, allocations: 1.741 MB / 0.6015 GB, free: 15.07 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006058/0.4736, allocations: 1.905 MB / 0.6033 GB, free: 13.99 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01036/0.4839, allocations: 5.738 MB / 0.6089 GB, free: 11.04 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003897/0.4879, allocations: 1.325 MB / 0.6102 GB, free: 10.4 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005453/0.4934, allocations: 2.359 MB / 0.6125 GB, free: 9.172 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005404/0.4988, allocations: 2.968 MB / 0.6154 GB, free: 7.668 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002626/0.5014, allocations: 443.6 kB / 0.6159 GB, free: 7.668 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004037/0.5055, allocations: 0.5863 MB / 0.6164 GB, free: 7.625 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002724/0.5083, allocations: 1.16 MB / 0.6176 GB, free: 6.832 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006947/0.5152, allocations: 2.639 MB / 0.6201 GB, free: 5.066 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0123/0.5275, allocations: 6.198 MB / 0.6262 GB, free: 2.176 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.5276, allocations: 0 / 0.6262 GB, free: 2.176 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5276, allocations: 0 / 0.6262 GB, free: 2.176 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003422/0.5279, allocations: 1.375 kB / 0.6262 GB, free: 2.176 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: 894 * Number of variables: 894 Notification: Performance of Generate backend data structure: time 0.04144/0.5694, allocations: 9.221 MB / 0.6352 GB, free: 13.01 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.745e-05/0.5695, allocations: 12.03 kB / 0.6352 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002166/0.5716, allocations: 492.9 kB / 0.6357 GB, free: 12.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02789/0.5996, allocations: 4.005 MB / 0.6396 GB, free: 8.484 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007964/0.6076, allocations: 2.674 MB / 0.6422 GB, free: 5.73 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001187/0.6088, allocations: 0.9651 MB / 0.6431 GB, free: 4.629 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001985/0.6108, allocations: 348 kB / 0.6435 GB, free: 4.289 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01493/0.6257, allocations: 4.739 MB / 0.6481 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001266/0.6259, allocations: 4 kB / 0.6481 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001163/0.6271, allocations: 144 kB / 0.6482 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-05/0.6272, allocations: 84 kB / 0.6483 GB, free: 15.29 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01076/0.6379, allocations: 4.255 MB / 0.6525 GB, free: 11.03 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.03928/0.6773, allocations: 18.38 MB / 0.6704 GB, free: 7.477 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01326/0.6906, allocations: 5.016 MB / 0.6753 GB, free: 2.383 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006431/0.697, allocations: 2.79 MB / 0.6781 GB, free: 15.58 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008048/0.6978, allocations: 74.83 kB / 0.6781 GB, free: 15.51 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007972/0.7058, allocations: 3.181 MB / 0.6812 GB, free: 12.29 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 8.135e-06/0.7059, allocations: 0 / 0.6812 GB, free: 12.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=384): time 0.3068/1.013, allocations: 67.77 MB / 0.7474 GB, free: 8.32 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/1.013, allocations: 145.8 kB / 0.7475 GB, free: 8.152 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006529/1.019, allocations: 3.25 MB / 0.7507 GB, free: 4.883 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001271/1.021, allocations: 89.7 kB / 0.7508 GB, free: 4.789 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001783/1.023, allocations: 1.982 MB / 0.7527 GB, free: 2.793 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002744/1.025, allocations: 1.317 MB / 0.754 GB, free: 1.457 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003951/1.029, allocations: 0.6783 MB / 0.7547 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001192/1.029, allocations: 305.1 kB / 0.755 GB, free: 476 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007106/1.037, allocations: 2.612 MB / 0.7575 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007442/1.044, allocations: 3.233 MB / 0.7607 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3693/1.413, allocations: 19.06 MB / 0.7793 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.35e-05/1.413, allocations: 8.375 kB / 0.7793 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.0589/1.472, allocations: 17.3 MB / 0.7962 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.71e-05/1.473, allocations: 63.53 kB / 0.7963 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.392e-05/1.473, allocations: 15.19 kB / 0.7963 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02613/1.499, allocations: 7.168 MB / 0.8033 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004032/1.503, allocations: 0.691 MB / 0.804 GB, free: 151.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07982/1.583, allocations: 33.34 MB / 0.8365 GB, free: 131.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007037/1.59, allocations: 0.6216 MB / 0.8371 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001125/1.591, allocations: 152 kB / 0.8373 GB, free: 130.9 MB / 0.5606 GB Warning: Assuming fixed start value for the following 5 variables: order5.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (407): * Single equations (assignments): 404 * Array equations: 0 * Algorithm blocks: 2 * 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): 1 system {(92,44,5.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002624/1.593, allocations: 0.6678 MB / 0.8379 GB, free: 130.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001689/1.595, allocations: 450.4 kB / 0.8384 GB, free: 129.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.053/1.648, allocations: 16.88 MB / 0.8548 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-05/1.648, allocations: 36 kB / 0.8549 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.203e-05/1.648, allocations: 28 kB / 0.8549 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001526/1.649, allocations: 23.86 kB / 0.8549 GB, free: 112.8 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.06076/1.709, allocations: 21.89 MB / 0.8763 GB, free: 90.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-05/1.709, allocations: 0 / 0.8763 GB, free: 90.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002437/1.712, allocations: 395.3 kB / 0.8767 GB, free: 90.44 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02401/1.736, allocations: 7.386 MB / 0.8839 GB, free: 83.04 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001102/1.737, allocations: 75.98 kB / 0.884 GB, free: 82.97 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07099/1.808, allocations: 31.82 MB / 0.915 GB, free: 50.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.808, allocations: 4 kB / 0.915 GB, free: 50.84 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05711/1.865, allocations: 20.24 MB / 0.9348 GB, free: 30.52 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001604/1.867, allocations: 0.5493 MB / 0.9353 GB, free: 29.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009701/1.868, allocations: 71.98 kB / 0.9354 GB, free: 29.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004096/1.872, allocations: 379.5 kB / 0.9358 GB, free: 29.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002995/1.875, allocations: 0.7805 MB / 0.9365 GB, free: 28.72 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003012/1.875, allocations: 99.98 kB / 0.9366 GB, free: 28.62 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002501/1.878, allocations: 2.133 MB / 0.9387 GB, free: 26.49 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.91e-07/1.878, allocations: 0 / 0.9387 GB, free: 26.49 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004739/1.882, allocations: 1.813 MB / 0.9405 GB, free: 24.68 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order3.delta,order3.w,order3.e1q,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 245 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(100,36,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.05796/1.94, allocations: 20.92 MB / 0.9609 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.03087/1.971, allocations: 9.334 MB / 0.97 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.888e-05/1.971, allocations: 0 / 0.97 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.02/1.991, allocations: 6.188 MB / 0.9761 GB, free: 4.051 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004127/1.996, allocations: 385.2 kB / 0.9764 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4603/2.456, allocations: 70.52 MB / 1.045 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001579/2.458, allocations: 2.45 MB / 1.048 GB, free: 170.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001855/2.459, allocations: 374.8 kB / 1.048 GB, free: 170.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002209/2.462, allocations: 2.033 MB / 1.05 GB, free: 168.5 MB / 0.5919 GB Notification: Performance of SimCode: time 2.936e-06/2.462, allocations: 3.938 kB / 1.05 GB, free: 168.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1666/2.628, allocations: 122.4 MB / 1.17 GB, free: 47.38 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/2.628, allocations: 238.7 kB / 1.17 GB, free: 47.13 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.046/8.675, allocations: 4 kB / 1.17 GB, free: 47.12 MB / 0.5919 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe 2>&1)