Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_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.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_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.001142/0.001142, allocations: 108 kB / 15.6 MB, free: 132 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.309/1.309, allocations: 222.9 MB / 239.2 MB, free: 4.59 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.00164/0.00164, allocations: 184.5 kB / 289.6 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4976/0.4976, allocations: 91.9 MB / 431.6 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 75.88 kB / 0.502 GB, free: 7.613 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3126, allocations: 71.27 MB / 0.5716 GB, free: 36.58 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01415/0.3268, allocations: 21.81 MB / 0.5929 GB, free: 21.48 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.3383, allocations: 4.872 MB / 0.5976 GB, free: 17.96 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005435/0.3438, allocations: 46.56 kB / 0.5977 GB, free: 17.95 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003042/0.3469, allocations: 0.8732 MB / 0.5985 GB, free: 17.48 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007577/0.3545, allocations: 2.053 MB / 0.6005 GB, free: 16.04 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005468/0.36, allocations: 2.051 MB / 0.6025 GB, free: 14.96 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008768/0.3688, allocations: 5.672 MB / 0.6081 GB, free: 12.05 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0024/0.3712, allocations: 1.319 MB / 0.6094 GB, free: 11.41 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004804/0.376, allocations: 2.314 MB / 0.6116 GB, free: 10.22 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005265/0.3813, allocations: 2.938 MB / 0.6145 GB, free: 8.727 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001957/0.3833, allocations: 436 kB / 0.6149 GB, free: 8.727 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002771/0.3861, allocations: 0.5755 MB / 0.6155 GB, free: 8.688 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001233/0.3874, allocations: 1.15 MB / 0.6166 GB, free: 7.898 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005021/0.3924, allocations: 2.609 MB / 0.6191 GB, free: 6.145 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009845/0.4023, allocations: 6.15 MB / 0.6251 GB, free: 3.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.086e-06/0.4023, allocations: 1.25 kB / 0.6251 GB, free: 3.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4023, allocations: 0 / 0.6251 GB, free: 3.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003152/0.4026, allocations: 3.938 kB / 0.6252 GB, free: 3.266 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: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.0344/0.4371, allocations: 9.151 MB / 0.6341 GB, free: 14.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.4371, allocations: 8.031 kB / 0.6341 GB, free: 14.47 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008339/0.438, allocations: 492.8 kB / 0.6346 GB, free: 13.98 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02783/0.4658, allocations: 4.009 MB / 0.6385 GB, free: 9.961 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006809/0.4727, allocations: 2.654 MB / 0.6411 GB, free: 7.223 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001113/0.4738, allocations: 0.9573 MB / 0.642 GB, free: 6.129 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001504/0.4753, allocations: 348 kB / 0.6423 GB, free: 5.789 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01051/0.4858, allocations: 4.727 MB / 0.647 GB, free: 1.031 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.589e-05/0.4859, allocations: 0 / 0.647 GB, free: 1.031 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004246/0.4864, allocations: 140 kB / 0.6471 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.516e-05/0.4864, allocations: 87.94 kB / 0.6472 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009169/0.4956, allocations: 4.244 MB / 0.6513 GB, free: 12.56 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.03894/0.5346, allocations: 18.36 MB / 0.6692 GB, free: 9.023 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0128/0.5474, allocations: 4.996 MB / 0.6741 GB, free: 3.949 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006093/0.5535, allocations: 2.785 MB / 0.6768 GB, free: 1.156 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004574/0.554, allocations: 74.89 kB / 0.6769 GB, free: 1.082 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00727/0.5613, allocations: 3.173 MB / 0.68 GB, free: 13.86 MB / 494.1 MB Notification: Performance of pre-optimization done (n=383): time 6.662e-06/0.5613, allocations: 0 / 0.68 GB, free: 13.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=383): time 0.3093/0.8706, allocations: 68.04 MB / 0.7465 GB, free: 9.625 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.176e-05/0.8708, allocations: 145.8 kB / 0.7466 GB, free: 9.457 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004777/0.8756, allocations: 3.218 MB / 0.7497 GB, free: 6.219 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009615/0.8766, allocations: 93.7 kB / 0.7498 GB, free: 6.121 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001404/0.878, allocations: 1.963 MB / 0.7517 GB, free: 4.145 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001833/0.8798, allocations: 1.317 MB / 0.753 GB, free: 2.809 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0015/0.8813, allocations: 0.6704 MB / 0.7537 GB, free: 2.125 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.461e-05/0.8814, allocations: 305.1 kB / 0.754 GB, free: 1.824 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00584/0.8873, allocations: 2.585 MB / 0.7565 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006115/0.8934, allocations: 3.217 MB / 0.7596 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2736/1.167, allocations: 18.84 MB / 0.778 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.067e-05/1.167, allocations: 8.219 kB / 0.778 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.05659/1.224, allocations: 17.25 MB / 0.7949 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.332e-05/1.224, allocations: 64.91 kB / 0.795 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-05/1.224, allocations: 15.69 kB / 0.795 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02508/1.249, allocations: 7.167 MB / 0.802 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003372/1.252, allocations: 0.6725 MB / 0.8026 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07945/1.332, allocations: 33.33 MB / 0.8352 GB, free: 133.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006181/1.338, allocations: 0.6115 MB / 0.8358 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007048/1.339, allocations: 156 kB / 0.8359 GB, free: 132.5 MB / 0.5606 GB Warning: Assuming fixed start value for the following 5 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.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 (403): * Single equations (assignments): 400 * 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.001846/1.341, allocations: 0.6675 MB / 0.8366 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/1.342, allocations: 454.4 kB / 0.837 GB, free: 131.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05085/1.393, allocations: 16.85 MB / 0.8535 GB, free: 114.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.607e-05/1.393, allocations: 40 kB / 0.8535 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.969e-05/1.393, allocations: 28 kB / 0.8535 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.864e-05/1.393, allocations: 23.92 kB / 0.8535 GB, free: 114.4 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.05707/1.45, allocations: 21.85 MB / 0.8749 GB, free: 92.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.787e-05/1.45, allocations: 0 / 0.8749 GB, free: 92.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002453/1.453, allocations: 391.5 kB / 0.8753 GB, free: 92.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0237/1.476, allocations: 7.364 MB / 0.8824 GB, free: 84.72 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008746/1.477, allocations: 67.98 kB / 0.8825 GB, free: 84.65 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07262/1.55, allocations: 31.84 MB / 0.9136 GB, free: 52.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/1.55, allocations: 4 kB / 0.9136 GB, free: 52.52 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05683/1.607, allocations: 20.21 MB / 0.9333 GB, free: 32.23 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/1.608, allocations: 0.5532 MB / 0.9339 GB, free: 31.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001092/1.609, allocations: 66.91 kB / 0.9339 GB, free: 31.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004385/1.614, allocations: 383.5 kB / 0.9343 GB, free: 31.21 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002686/1.616, allocations: 0.7805 MB / 0.9351 GB, free: 30.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003188/1.617, allocations: 92.8 kB / 0.9352 GB, free: 30.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002542/1.619, allocations: 2.109 MB / 0.9372 GB, free: 28.23 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.21e-07/1.619, allocations: 0 / 0.9372 GB, free: 28.23 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00506/1.624, allocations: 1.797 MB / 0.939 GB, free: 26.43 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,order4.delta,order4.w,order4.e1q,order4.e1d,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 (247): * Single equations (assignments): 244 * 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 {(98,38,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.05708/1.681, allocations: 20.87 MB / 0.9594 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.03058/1.712, allocations: 9.284 MB / 0.9684 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/1.712, allocations: 0 / 0.9684 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.02004/1.732, allocations: 6.154 MB / 0.9744 GB, free: 5.934 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004085/1.736, allocations: 383.7 kB / 0.9748 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3782/2.114, allocations: 68.34 MB / 1.042 GB, free: 174.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001481/2.116, allocations: 2.447 MB / 1.044 GB, free: 173.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001678/2.118, allocations: 370.9 kB / 1.044 GB, free: 173.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002/2.12, allocations: 1.981 MB / 1.046 GB, free: 171.9 MB / 0.5919 GB Notification: Performance of SimCode: time 6.71e-07/2.12, allocations: 4 kB / 1.046 GB, free: 171.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1543/2.274, allocations: 124.5 MB / 1.168 GB, free: 49.03 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.84/17.11, allocations: 18.73 kB / 1.168 GB, free: 49.02 MB / 0.5919 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)