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.001244/0.001244, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.374/1.374, allocations: 222.9 MB / 239 MB, free: 4.82 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.001412/0.001412, allocations: 192.5 kB / 289.3 MB, free: 2.555 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5174/0.5174, allocations: 91.89 MB / 431.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 75.88 kB / 0.5015 GB, free: 8.027 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.385/0.3866, allocations: 71.26 MB / 0.5711 GB, free: 36.71 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01616/0.4028, allocations: 23.39 MB / 0.5939 GB, free: 20.47 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01306/0.4159, allocations: 5.142 MB / 0.5989 GB, free: 16.73 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00704/0.423, allocations: 55.31 kB / 0.599 GB, free: 16.73 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004303/0.4274, allocations: 0.6696 MB / 0.5997 GB, free: 16.47 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009478/0.4369, allocations: 1.732 MB / 0.6013 GB, free: 15.25 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006072/0.443, allocations: 1.908 MB / 0.6032 GB, free: 14.16 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01005/0.4531, allocations: 5.67 MB / 0.6087 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003403/0.4565, allocations: 1.32 MB / 0.61 GB, free: 10.61 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004858/0.4614, allocations: 2.333 MB / 0.6123 GB, free: 9.398 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005226/0.4666, allocations: 2.937 MB / 0.6152 GB, free: 7.906 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002491/0.4692, allocations: 436.2 kB / 0.6156 GB, free: 7.906 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00375/0.4729, allocations: 0.5782 MB / 0.6162 GB, free: 7.863 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002543/0.4755, allocations: 1.147 MB / 0.6173 GB, free: 7.078 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006437/0.4819, allocations: 2.613 MB / 0.6198 GB, free: 5.332 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01198/0.4939, allocations: 6.157 MB / 0.6258 GB, free: 2.449 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.494, allocations: 1.125 kB / 0.6258 GB, free: 2.449 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.494, allocations: 4 kB / 0.6259 GB, free: 2.445 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003485/0.4944, allocations: 0 / 0.6259 GB, free: 2.445 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.03932/0.5337, allocations: 9.153 MB / 0.6348 GB, free: 13.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.679e-05/0.5338, allocations: 8.031 kB / 0.6348 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002006/0.5358, allocations: 488.8 kB / 0.6353 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02755/0.5634, allocations: 4.013 MB / 0.6392 GB, free: 8.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007548/0.5709, allocations: 2.647 MB / 0.6418 GB, free: 6.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00117/0.5722, allocations: 0.9651 MB / 0.6427 GB, free: 5.148 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001909/0.5741, allocations: 344 kB / 0.643 GB, free: 4.812 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01128/0.5854, allocations: 4.727 MB / 0.6477 GB, free: 56 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.726e-05/0.5855, allocations: 0 / 0.6477 GB, free: 56 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004538/0.586, allocations: 140.1 kB / 0.6478 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.955e-05/0.5861, allocations: 84 kB / 0.6479 GB, free: 15.83 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009323/0.5954, allocations: 4.252 MB / 0.652 GB, free: 11.57 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.04158/0.637, allocations: 18.36 MB / 0.6699 GB, free: 8.039 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01367/0.6507, allocations: 4.992 MB / 0.6748 GB, free: 2.969 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006843/0.6576, allocations: 2.783 MB / 0.6775 GB, free: 180 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008478/0.6585, allocations: 66.91 kB / 0.6776 GB, free: 112 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008541/0.6671, allocations: 3.177 MB / 0.6807 GB, free: 12.89 MB / 494.1 MB Notification: Performance of pre-optimization done (n=383): time 9.728e-06/0.6671, allocations: 4 kB / 0.6807 GB, free: 12.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=383): time 0.3037/0.9708, allocations: 68.04 MB / 0.7472 GB, free: 8.648 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.971, allocations: 149.8 kB / 0.7473 GB, free: 8.477 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006432/0.9774, allocations: 3.214 MB / 0.7504 GB, free: 5.242 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001149/0.9786, allocations: 89.69 kB / 0.7505 GB, free: 5.148 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001766/0.9804, allocations: 1.963 MB / 0.7524 GB, free: 3.172 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002569/0.9829, allocations: 1.321 MB / 0.7537 GB, free: 1.832 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003483/0.9864, allocations: 0.6743 MB / 0.7544 GB, free: 1.145 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.881e-05/0.9866, allocations: 312.9 kB / 0.7547 GB, free: 0.8398 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006288/0.9929, allocations: 2.585 MB / 0.7572 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006751/0.9996, allocations: 3.209 MB / 0.7603 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3956/1.395, allocations: 18.84 MB / 0.7787 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.499e-05/1.395, allocations: 5.719 kB / 0.7787 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.05905/1.454, allocations: 17.25 MB / 0.7956 GB, free: 153 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.243e-05/1.455, allocations: 66.77 kB / 0.7957 GB, free: 152.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-05/1.455, allocations: 14 kB / 0.7957 GB, free: 152.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02641/1.481, allocations: 7.171 MB / 0.8027 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003697/1.485, allocations: 0.6716 MB / 0.8033 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07737/1.562, allocations: 33.32 MB / 0.8359 GB, free: 132.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006731/1.569, allocations: 0.6174 MB / 0.8365 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009711/1.57, allocations: 152 kB / 0.8366 GB, free: 131.8 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.00215/1.572, allocations: 0.6802 MB / 0.8373 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001313/1.573, allocations: 456.2 kB / 0.8377 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05015/1.624, allocations: 16.84 MB / 0.8542 GB, free: 113.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.167e-05/1.624, allocations: 36 kB / 0.8542 GB, free: 113.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.61e-05/1.624, allocations: 28 kB / 0.8542 GB, free: 113.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001099/1.624, allocations: 19.92 kB / 0.8542 GB, free: 113.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.0563/1.68, allocations: 21.84 MB / 0.8756 GB, free: 91.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.295e-05/1.68, allocations: 4 kB / 0.8756 GB, free: 91.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002243/1.682, allocations: 391.5 kB / 0.8759 GB, free: 91.35 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02359/1.706, allocations: 7.354 MB / 0.8831 GB, free: 83.98 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00108/1.707, allocations: 71.98 kB / 0.8832 GB, free: 83.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06923/1.776, allocations: 31.85 MB / 0.9143 GB, free: 51.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/1.776, allocations: 3.281 kB / 0.9143 GB, free: 51.77 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05628/1.833, allocations: 20.2 MB / 0.934 GB, free: 31.48 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001598/1.834, allocations: 0.5532 MB / 0.9346 GB, free: 30.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00129/1.836, allocations: 64 kB / 0.9346 GB, free: 30.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004257/1.84, allocations: 379.6 kB / 0.935 GB, free: 30.47 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003028/1.843, allocations: 0.7844 MB / 0.9358 GB, free: 29.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003268/1.843, allocations: 103.9 kB / 0.9359 GB, free: 29.58 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00248/1.846, allocations: 2.105 MB / 0.9379 GB, free: 27.47 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.21e-07/1.846, allocations: 3.938 kB / 0.9379 GB, free: 27.47 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004711/1.85, allocations: 1.793 MB / 0.9397 GB, free: 25.68 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.0555/1.906, allocations: 20.88 MB / 0.9601 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0292/1.935, allocations: 9.281 MB / 0.9691 GB, free: 11.38 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/1.935, allocations: 4.875 kB / 0.9691 GB, free: 11.38 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.01895/1.954, allocations: 6.148 MB / 0.9751 GB, free: 5.188 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003687/1.958, allocations: 381.3 kB / 0.9755 GB, free: 4.812 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4337/2.392, allocations: 70.05 MB / 1.044 GB, free: 174 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/2.393, allocations: 2.447 MB / 1.046 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001856/2.395, allocations: 374.3 kB / 1.047 GB, free: 172.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002157/2.397, allocations: 1.982 MB / 1.049 GB, free: 170.2 MB / 0.5919 GB Notification: Performance of SimCode: time 8.62e-07/2.397, allocations: 0 / 1.049 GB, free: 170.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2319/2.629, allocations: 121.6 MB / 1.167 GB, free: 49.93 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000155/2.629, allocations: 248.9 kB / 1.168 GB, free: 49.67 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.966/8.595, allocations: 4 kB / 1.168 GB, free: 49.66 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)