Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_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.001383/0.001383, 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.495/1.495, allocations: 222.9 MB / 239 MB, free: 4.711 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.001688/0.001688, allocations: 192.5 kB / 289.3 MB, free: 2.453 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5525/0.5525, allocations: 91.89 MB / 431.3 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 79.88 kB / 0.5015 GB, free: 7.918 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3997/0.4012, allocations: 71.26 MB / 0.5711 GB, free: 36.65 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII): time 0.01764/0.4189, allocations: 23.29 MB / 0.5938 GB, free: 20.5 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01345/0.4324, allocations: 5.137 MB / 0.5989 GB, free: 16.76 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006555/0.4391, allocations: 50.78 kB / 0.5989 GB, free: 16.76 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003986/0.4431, allocations: 0.6725 MB / 0.5996 GB, free: 16.5 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009735/0.4529, allocations: 1.727 MB / 0.6012 GB, free: 15.29 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006229/0.4591, allocations: 1.905 MB / 0.6031 GB, free: 14.2 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01031/0.4695, allocations: 5.671 MB / 0.6086 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003555/0.4731, allocations: 1.313 MB / 0.6099 GB, free: 10.65 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005447/0.4785, allocations: 2.336 MB / 0.6122 GB, free: 9.434 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005706/0.4843, allocations: 2.934 MB / 0.6151 GB, free: 7.945 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002645/0.4869, allocations: 437 kB / 0.6155 GB, free: 7.945 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004077/0.491, allocations: 0.5834 MB / 0.6161 GB, free: 7.898 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00268/0.4938, allocations: 1.147 MB / 0.6172 GB, free: 7.113 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007049/0.5008, allocations: 2.621 MB / 0.6197 GB, free: 5.359 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.5123, allocations: 6.158 MB / 0.6257 GB, free: 2.477 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.5124, allocations: 0 / 0.6257 GB, free: 2.477 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.696e-06/0.5124, allocations: 0 / 0.6257 GB, free: 2.477 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002989/0.5127, allocations: 1.125 kB / 0.6257 GB, free: 2.477 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: 892 * Number of variables: 892 Notification: Performance of Generate backend data structure: time 0.03798/0.5507, allocations: 9.148 MB / 0.6347 GB, free: 13.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.734e-05/0.5508, allocations: 12.03 kB / 0.6347 GB, free: 13.51 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008985/0.5517, allocations: 488.8 kB / 0.6352 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02808/0.5798, allocations: 4.009 MB / 0.6391 GB, free: 9 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007182/0.587, allocations: 2.658 MB / 0.6417 GB, free: 6.258 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001125/0.5882, allocations: 0.9495 MB / 0.6426 GB, free: 5.172 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001649/0.5899, allocations: 347.9 kB / 0.6429 GB, free: 4.832 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01134/0.6012, allocations: 4.731 MB / 0.6476 GB, free: 72 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.815e-05/0.6013, allocations: 0 / 0.6476 GB, free: 72 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004565/0.6018, allocations: 140.1 kB / 0.6477 GB, free: 15.93 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-05/0.6019, allocations: 91.88 kB / 0.6478 GB, free: 15.84 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009813/0.6117, allocations: 4.248 MB / 0.6519 GB, free: 11.59 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.03994/0.6517, allocations: 18.31 MB / 0.6698 GB, free: 8.102 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01339/0.6651, allocations: 4.996 MB / 0.6747 GB, free: 3.027 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006818/0.672, allocations: 2.779 MB / 0.6774 GB, free: 244 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000583/0.6726, allocations: 74.89 kB / 0.6775 GB, free: 168 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007332/0.6799, allocations: 3.165 MB / 0.6806 GB, free: 12.96 MB / 494.1 MB Notification: Performance of pre-optimization done (n=382): time 9.709e-06/0.68, allocations: 0 / 0.6806 GB, free: 12.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.3048/0.9848, allocations: 68.21 MB / 0.7472 GB, free: 8.551 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.821e-05/0.9849, allocations: 145.8 kB / 0.7473 GB, free: 8.383 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005163/0.9901, allocations: 3.218 MB / 0.7504 GB, free: 5.145 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001257/0.9914, allocations: 93.7 kB / 0.7505 GB, free: 5.047 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001697/0.9931, allocations: 1.97 MB / 0.7525 GB, free: 3.062 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002659/0.9957, allocations: 1.309 MB / 0.7537 GB, free: 1.734 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001702/0.9975, allocations: 0.6703 MB / 0.7544 GB, free: 1.051 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.9976, allocations: 305.1 kB / 0.7547 GB, free: 0.75 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006008/1.004, allocations: 2.577 MB / 0.7572 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007034/1.011, allocations: 3.205 MB / 0.7603 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3721/1.383, allocations: 18.81 MB / 0.7787 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.529e-05/1.383, allocations: 7.906 kB / 0.7787 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=534) (initialization): time 0.05785/1.441, allocations: 16.93 MB / 0.7952 GB, free: 152.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.386e-05/1.441, allocations: 63.25 kB / 0.7953 GB, free: 152.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.733e-05/1.441, allocations: 14.12 kB / 0.7953 GB, free: 152.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02796/1.469, allocations: 7.246 MB / 0.8024 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00376/1.473, allocations: 0.6634 MB / 0.803 GB, free: 151.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0874/1.56, allocations: 33.76 MB / 0.836 GB, free: 132 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00655/1.567, allocations: 0.6251 MB / 0.8366 GB, free: 131.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004485/1.567, allocations: 148 kB / 0.8368 GB, free: 131.3 MB / 0.5606 GB Warning: Assuming fixed start value for the following 4 variables: order3_1.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 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 (398): * Single equations (assignments): 395 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(92,45)} Notification: Performance of prepare postOptimizeDAE: time 0.001868/1.569, allocations: 0.6676 MB / 0.8374 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007957/1.57, allocations: 454.4 kB / 0.8378 GB, free: 130.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04948/1.619, allocations: 16.84 MB / 0.8543 GB, free: 113.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-05/1.619, allocations: 36 kB / 0.8543 GB, free: 113.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.128e-05/1.619, allocations: 28 kB / 0.8544 GB, free: 113.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001001/1.62, allocations: 15.94 kB / 0.8544 GB, free: 113.2 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.05624/1.676, allocations: 21.83 MB / 0.8757 GB, free: 91.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.557e-05/1.676, allocations: 3.938 kB / 0.8757 GB, free: 91.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002283/1.678, allocations: 387.5 kB / 0.8761 GB, free: 90.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02326/1.701, allocations: 7.39 MB / 0.8833 GB, free: 83.55 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000978/1.702, allocations: 75.98 kB / 0.8834 GB, free: 83.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07328/1.776, allocations: 31.83 MB / 0.9144 GB, free: 51.35 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.776, allocations: 0 / 0.9144 GB, free: 51.35 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05971/1.836, allocations: 20.2 MB / 0.9342 GB, free: 31.06 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/1.837, allocations: 0.5493 MB / 0.9347 GB, free: 30.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001915/1.839, allocations: 64 kB / 0.9348 GB, free: 30.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005604/1.845, allocations: 379.5 kB / 0.9351 GB, free: 30.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003784/1.849, allocations: 0.7844 MB / 0.9359 GB, free: 29.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008465/1.849, allocations: 95.98 kB / 0.936 GB, free: 29.18 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003449/1.853, allocations: 2.109 MB / 0.938 GB, free: 27.06 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.91e-07/1.853, allocations: 0 / 0.938 GB, free: 27.06 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007605/1.861, allocations: 1.801 MB / 0.9398 GB, free: 25.26 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order3.delta,order3.w,order3.e1q,order3_1.delta,order3_1.w,order3_1.e1q,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 (246): * Single equations (assignments): 243 * 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.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.06093/1.921, allocations: 20.85 MB / 0.9602 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.03262/1.954, allocations: 9.421 MB / 0.9694 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.954, allocations: 4 kB / 0.9694 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.02059/1.975, allocations: 6.187 MB / 0.9754 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005677/1.98, allocations: 378.9 kB / 0.9758 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4257/2.406, allocations: 69.36 MB / 1.044 GB, free: 173 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002335/2.409, allocations: 2.446 MB / 1.046 GB, free: 171.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002337/2.411, allocations: 376.5 kB / 1.046 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002399/2.413, allocations: 2.018 MB / 1.048 GB, free: 169.5 MB / 0.5919 GB Notification: Performance of SimCode: time 1.933e-06/2.413, allocations: 0 / 1.048 GB, free: 169.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6462/3.06, allocations: 124.3 MB / 1.17 GB, free: 45.94 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/3.06, allocations: 240.2 kB / 1.17 GB, free: 45.68 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.349/9.409, allocations: 0 / 1.17 GB, free: 45.68 MB / 0.5919 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe 2>&1)