Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001919/0.001919, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002289/0.002289, allocations: 212.6 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.188/0.188, allocations: 38.55 MB / 352.4 MB, free: 12.41 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002057/0.002057, allocations: 75.88 kB / 492.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3496, allocations: 62.46 MB / 0.542 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.0105/0.3601, allocations: 7.091 MB / 0.5489 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005743/0.3659, allocations: 2.831 MB / 0.5516 GB, free: 8.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006511/0.3665, allocations: 41.41 kB / 0.5517 GB, free: 8.637 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002676/0.3692, allocations: 0.7467 MB / 0.5524 GB, free: 8.074 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002683/0.3719, allocations: 0.7091 MB / 0.5531 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001302/0.3732, allocations: 385.8 kB / 0.5535 GB, free: 7.238 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002197/0.3754, allocations: 1.334 MB / 0.5548 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001/0.3764, allocations: 0.5545 MB / 0.5553 GB, free: 6.125 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.3775, allocations: 0.5697 MB / 0.5559 GB, free: 5.801 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.3788, allocations: 0.6476 MB / 0.5565 GB, free: 5.316 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001893/0.379, allocations: 72 kB / 0.5566 GB, free: 5.246 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00111/0.3801, allocations: 0.4952 MB / 0.5571 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005503/0.3807, allocations: 478.7 kB / 0.5575 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006938/0.3813, allocations: 426.1 kB / 0.5579 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001902/0.3833, allocations: 1.44 MB / 0.5593 GB, free: 2.418 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3833, allocations: 0 / 0.5593 GB, free: 2.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3833, allocations: 4 kB / 0.5593 GB, free: 2.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.027e-05/0.3833, allocations: 0 / 0.5593 GB, free: 2.414 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002437/0.3857, allocations: 1.222 MB / 0.5605 GB, free: 1.156 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.3858, allocations: 15.98 kB / 0.5605 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001807/0.3859, allocations: 143.7 kB / 0.5607 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001308/0.3872, allocations: 212.1 kB / 0.5609 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001649/0.3889, allocations: 0.6498 MB / 0.5615 GB, free: 112 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.395e-05/0.389, allocations: 66.11 kB / 0.5616 GB, free: 44 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002522/0.3892, allocations: 103.9 kB / 0.5617 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001829/0.391, allocations: 1.104 MB / 0.5628 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/0.3911, allocations: 7.938 kB / 0.5628 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.928e-05/0.3912, allocations: 36 kB / 0.5628 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002008/0.3914, allocations: 73.95 kB / 0.5629 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001556/0.3929, allocations: 0.8743 MB / 0.5637 GB, free: 13.8 MB / 414.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.005949/0.3989, allocations: 3.685 MB / 0.5673 GB, free: 9.934 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006435/0.3995, allocations: 326.8 kB / 0.5676 GB, free: 9.598 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003865/0.3999, allocations: 253.6 kB / 0.5679 GB, free: 9.344 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/0.3999, allocations: 4 kB / 0.5679 GB, free: 9.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.4, allocations: 38.56 kB / 0.5679 GB, free: 9.293 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 4.218e-06/0.4, allocations: 3.984 kB / 0.5679 GB, free: 9.289 MB / 414.1 MB Notification: Performance of matching and sorting (n=52): time 0.004394/0.4044, allocations: 1.939 MB / 0.5698 GB, free: 7.324 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/0.4044, allocations: 85.48 kB / 0.5699 GB, free: 7.219 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007259/0.4052, allocations: 0.5809 MB / 0.5705 GB, free: 6.629 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.4052, allocations: 37.7 kB / 0.5705 GB, free: 6.586 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003769/0.4056, allocations: 483.7 kB / 0.571 GB, free: 6.105 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001868/0.4058, allocations: 202.3 kB / 0.5711 GB, free: 5.906 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002293/0.406, allocations: 142.6 kB / 0.5713 GB, free: 5.758 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002203/0.4062, allocations: 382.7 kB / 0.5716 GB, free: 5.375 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004545/0.4067, allocations: 273.8 kB / 0.5719 GB, free: 5.109 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006895/0.4074, allocations: 0.5081 MB / 0.5724 GB, free: 4.496 MB / 414.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.003315/0.4107, allocations: 1.406 MB / 0.5738 GB, free: 2.988 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.4107, allocations: 4 kB / 0.5738 GB, free: 2.984 MB / 414.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002152/0.4128, allocations: 1.01 MB / 0.5748 GB, free: 1.953 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.4129, allocations: 15.09 kB / 0.5748 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001307/0.4142, allocations: 0.6791 MB / 0.5754 GB, free: 1.254 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005572/0.4147, allocations: 158.4 kB / 0.5756 GB, free: 1.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006635/0.4154, allocations: 179.7 kB / 0.5758 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004707/0.4201, allocations: 4.534 MB / 0.5802 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006291/0.4207, allocations: 39.97 kB / 0.5802 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-05/0.4208, allocations: 31.98 kB / 0.5803 GB, free: 11.96 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005346/0.4213, allocations: 313.5 kB / 0.5806 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.4215, allocations: 79.45 kB / 0.5806 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001183/0.4226, allocations: 0.6473 MB / 0.5813 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.4226, allocations: 4 kB / 0.5813 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/0.4226, allocations: 0 / 0.5813 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4227, allocations: 7.984 kB / 0.5813 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002821/0.4255, allocations: 1.424 MB / 0.5827 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.4255, allocations: 7.984 kB / 0.5827 GB, free: 9.402 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006225/0.4261, allocations: 123.8 kB / 0.5828 GB, free: 9.281 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.687e-06/0.4261, allocations: 4 kB / 0.5828 GB, free: 9.277 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.524e-05/0.4262, allocations: 15.98 kB / 0.5828 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.4262, allocations: 4 kB / 0.5828 GB, free: 9.258 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.4262, allocations: 7.938 kB / 0.5828 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.4276, allocations: 0.9508 MB / 0.5838 GB, free: 8.262 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00035/0.428, allocations: 111.6 kB / 0.5839 GB, free: 8.152 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.368e-05/0.4281, allocations: 19.89 kB / 0.5839 GB, free: 8.133 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003184/0.4284, allocations: 19.98 kB / 0.5839 GB, free: 8.113 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.612e-05/0.4285, allocations: 40.31 kB / 0.5839 GB, free: 8.074 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.849e-05/0.4285, allocations: 19.98 kB / 0.584 GB, free: 8.055 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006118/0.4291, allocations: 411 kB / 0.5844 GB, free: 7.652 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4291, allocations: 0 / 0.5844 GB, free: 7.652 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008835/0.43, allocations: 227.9 kB / 0.5846 GB, free: 7.43 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00197/0.432, allocations: 1.541 MB / 0.5861 GB, free: 5.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.4338, allocations: 0.9756 MB / 0.587 GB, free: 4.832 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.555e-06/0.4338, allocations: 0 / 0.587 GB, free: 4.832 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004555/0.4343, allocations: 251.9 kB / 0.5873 GB, free: 4.586 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009393/0.4352, allocations: 150 kB / 0.5874 GB, free: 4.445 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01187/0.4471, allocations: 7.019 MB / 0.5943 GB, free: 13.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006988/0.4478, allocations: 494.5 kB / 0.5947 GB, free: 12.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006509/0.4484, allocations: 197.8 kB / 0.5949 GB, free: 12.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005291/0.449, allocations: 327.3 kB / 0.5952 GB, free: 12.04 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.449, allocations: 0 / 0.5952 GB, free: 12.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0585/0.5075, allocations: 17.07 MB / 0.6119 GB, free: 11.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.66, allocations: 8 kB / 0.6119 GB, free: 11.18 MB / 462.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.600024085957557] Failed to read output from testmodel.py, exit status != 0: 12.781564228702337 12.808434307 12.42022933 Calling exit ...