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.001246/0.001246, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.49/1.49, allocations: 222.9 MB / 238.9 MB, free: 4.727 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.001528/0.001528, allocations: 180.5 kB / 289.1 MB, free: 2.484 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5628/0.5628, allocations: 91.9 MB / 431.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 79.88 kB / 0.5013 GB, free: 8.066 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4489/0.4508, allocations: 71.27 MB / 0.5709 GB, free: 36.55 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII): time 0.01828/0.4691, allocations: 23.29 MB / 0.5937 GB, free: 20.44 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01446/0.4836, allocations: 5.151 MB / 0.5987 GB, free: 16.69 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008152/0.4918, allocations: 55.22 kB / 0.5987 GB, free: 16.69 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004433/0.4963, allocations: 0.6685 MB / 0.5994 GB, free: 16.43 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01278/0.5092, allocations: 1.733 MB / 0.6011 GB, free: 15.21 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007946/0.5171, allocations: 1.905 MB / 0.6029 GB, free: 14.12 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01242/0.5296, allocations: 5.423 MB / 0.6082 GB, free: 11.38 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003357/0.533, allocations: 1.148 MB / 0.6094 GB, free: 10.79 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006125/0.5391, allocations: 2.16 MB / 0.6115 GB, free: 9.734 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007263/0.5464, allocations: 2.81 MB / 0.6142 GB, free: 8.367 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002773/0.5492, allocations: 290.2 kB / 0.6145 GB, free: 8.363 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004275/0.5535, allocations: 429.9 kB / 0.6149 GB, free: 8.316 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002432/0.556, allocations: 0.9961 MB / 0.6159 GB, free: 7.684 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007423/0.5634, allocations: 2.454 MB / 0.6183 GB, free: 6.094 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0104/0.5738, allocations: 5.987 MB / 0.6241 GB, free: 3.324 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.5739, allocations: 0 / 0.6241 GB, free: 3.324 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.5739, allocations: 1.188 kB / 0.6241 GB, free: 3.324 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003239/0.5742, allocations: 0 / 0.6241 GB, free: 3.324 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.04188/0.6161, allocations: 9.155 MB / 0.6331 GB, free: 15.04 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.195e-05/0.6162, allocations: 16.03 kB / 0.6331 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001429/0.6176, allocations: 492.8 kB / 0.6335 GB, free: 14.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02821/0.6458, allocations: 4.001 MB / 0.6375 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007864/0.6537, allocations: 2.651 MB / 0.64 GB, free: 7.789 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001093/0.6549, allocations: 0.9573 MB / 0.641 GB, free: 6.695 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00175/0.6566, allocations: 355.9 kB / 0.6413 GB, free: 6.348 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/0.6676, allocations: 4.731 MB / 0.6459 GB, free: 1.586 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.769e-05/0.6677, allocations: 0 / 0.6459 GB, free: 1.586 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004135/0.6681, allocations: 140 kB / 0.6461 GB, free: 1.449 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.212e-05/0.6682, allocations: 84 kB / 0.6461 GB, free: 1.367 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0105/0.6787, allocations: 4.24 MB / 0.6503 GB, free: 13.12 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.04469/0.7234, allocations: 18.31 MB / 0.6682 GB, free: 9.629 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01324/0.7367, allocations: 4.996 MB / 0.673 GB, free: 4.555 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006419/0.7432, allocations: 2.78 MB / 0.6758 GB, free: 1.766 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008627/0.7441, allocations: 66.92 kB / 0.6758 GB, free: 1.699 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008187/0.7523, allocations: 3.169 MB / 0.6789 GB, free: 14.49 MB / 494.1 MB Notification: Performance of pre-optimization done (n=382): time 1.237e-05/0.7523, allocations: 0 / 0.6789 GB, free: 14.49 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.3698/1.122, allocations: 68.2 MB / 0.7455 GB, free: 10.09 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/1.122, allocations: 149.8 kB / 0.7457 GB, free: 9.918 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006507/1.129, allocations: 3.222 MB / 0.7488 GB, free: 6.676 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001215/1.13, allocations: 93.7 kB / 0.7489 GB, free: 6.578 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001727/1.132, allocations: 1.97 MB / 0.7508 GB, free: 4.594 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002363/1.134, allocations: 1.309 MB / 0.7521 GB, free: 3.266 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003626/1.138, allocations: 0.6664 MB / 0.7528 GB, free: 2.586 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.481e-05/1.138, allocations: 309.1 kB / 0.7531 GB, free: 2.281 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006356/1.144, allocations: 2.585 MB / 0.7556 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006636/1.151, allocations: 3.201 MB / 0.7587 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3413/1.492, allocations: 18.76 MB / 0.777 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.207e-05/1.492, allocations: 5.219 kB / 0.777 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=534) (initialization): time 0.05805/1.55, allocations: 16.93 MB / 0.7936 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.03e-05/1.551, allocations: 71.17 kB / 0.7936 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.58e-05/1.551, allocations: 13.75 kB / 0.7936 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02622/1.577, allocations: 7.223 MB / 0.8007 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003817/1.581, allocations: 0.6665 MB / 0.8013 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08191/1.663, allocations: 31.02 MB / 0.8316 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006284/1.669, allocations: 0.6103 MB / 0.8322 GB, free: 135.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000968/1.67, allocations: 160 kB / 0.8324 GB, free: 135.7 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.00276/1.673, allocations: 0.6607 MB / 0.833 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001676/1.674, allocations: 458.2 kB / 0.8335 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05164/1.726, allocations: 16.84 MB / 0.8499 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.167e-05/1.726, allocations: 36 kB / 0.85 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.94e-05/1.726, allocations: 31.94 kB / 0.85 GB, free: 117.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001049/1.726, allocations: 24.95 kB / 0.85 GB, free: 117.6 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.05999/1.786, allocations: 21.83 MB / 0.8713 GB, free: 95.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.225e-05/1.786, allocations: 0 / 0.8713 GB, free: 95.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003577/1.79, allocations: 383.5 kB / 0.8717 GB, free: 95.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03986/1.83, allocations: 7.382 MB / 0.8789 GB, free: 87.98 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001304/1.831, allocations: 75.92 kB / 0.879 GB, free: 87.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08891/1.92, allocations: 28.94 MB / 0.9072 GB, free: 58.67 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.92, allocations: 3.938 kB / 0.9072 GB, free: 58.67 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05781/1.978, allocations: 20.18 MB / 0.927 GB, free: 38.4 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/1.98, allocations: 0.5572 MB / 0.9275 GB, free: 37.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00157/1.981, allocations: 68 kB / 0.9276 GB, free: 37.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004993/1.986, allocations: 379.5 kB / 0.9279 GB, free: 37.38 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003237/1.989, allocations: 0.7607 MB / 0.9287 GB, free: 36.62 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005707/1.99, allocations: 95.98 kB / 0.9288 GB, free: 36.53 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003384/1.993, allocations: 2.109 MB / 0.9308 GB, free: 34.41 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.11e-07/1.993, allocations: 0 / 0.9308 GB, free: 34.41 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006703/2, allocations: 1.802 MB / 0.9326 GB, free: 32.61 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.05839/2.059, allocations: 20.87 MB / 0.953 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02585/2.084, allocations: 9.109 MB / 0.9619 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/2.085, allocations: 0 / 0.9619 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01978/2.104, allocations: 6.175 MB / 0.9679 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005461/2.11, allocations: 386 kB / 0.9682 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4348/2.545, allocations: 69.35 MB / 1.036 GB, free: 176.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00166/2.546, allocations: 2.448 MB / 1.038 GB, free: 176.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001826/2.548, allocations: 371.8 kB / 1.039 GB, free: 176 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002084/2.55, allocations: 2.008 MB / 1.041 GB, free: 174.4 MB / 0.5919 GB Notification: Performance of SimCode: time 1.162e-06/2.55, allocations: 0 / 1.041 GB, free: 174.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1604/2.711, allocations: 119.5 MB / 1.157 GB, free: 59.64 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/2.711, allocations: 251.8 kB / 1.158 GB, free: 59.37 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.406/9.117, allocations: 0 / 1.158 GB, free: 59.37 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)