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.001311/0.001311, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001463/0.001463, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.504/1.504, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.2328/0.2328, allocations: 38.53 MB / 353.2 MB, free: 12.52 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="cs",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.002164/0.002164, allocations: 59.91 kB / 493.3 MB, free: 4.859 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3217, allocations: 62.47 MB / 0.5428 GB, free: 424 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.009359/0.331, allocations: 7.658 MB / 0.5503 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005682/0.3367, allocations: 3.069 MB / 0.5533 GB, free: 7.961 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005641/0.3373, allocations: 36.12 kB / 0.5533 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002286/0.3395, allocations: 0.8003 MB / 0.5541 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002581/0.3421, allocations: 0.7135 MB / 0.5548 GB, free: 6.773 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001288/0.3434, allocations: 395.4 kB / 0.5551 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002167/0.3456, allocations: 1.327 MB / 0.5564 GB, free: 5.742 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001153/0.3467, allocations: 0.5662 MB / 0.557 GB, free: 5.359 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001294/0.348, allocations: 0.5734 MB / 0.5576 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00145/0.3495, allocations: 0.6688 MB / 0.5582 GB, free: 4.629 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002265/0.3497, allocations: 74.31 kB / 0.5583 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.351, allocations: 0.5459 MB / 0.5588 GB, free: 4.031 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000655/0.3517, allocations: 470.8 kB / 0.5593 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000692/0.3523, allocations: 0.5092 MB / 0.5598 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002281/0.3546, allocations: 1.436 MB / 0.5612 GB, free: 1.617 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3546, allocations: 4 kB / 0.5612 GB, free: 1.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3546, allocations: 0 / 0.5612 GB, free: 1.613 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.196e-05/0.3547, allocations: 0 / 0.5612 GB, free: 1.613 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.002685/0.3573, allocations: 1.224 MB / 0.5624 GB, free: 360 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.3574, allocations: 11.98 kB / 0.5624 GB, free: 348 kB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.405e-05/0.3574, allocations: 30.17 kB / 0.5624 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001772/0.3576, allocations: 139.7 kB / 0.5625 GB, free: 172 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001397/0.359, allocations: 212.1 kB / 0.5627 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001536/0.3605, allocations: 0.6538 MB / 0.5634 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.913e-05/0.3606, allocations: 69.88 kB / 0.5634 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002448/0.3608, allocations: 95.88 kB / 0.5635 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.3626, allocations: 1.111 MB / 0.5646 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/0.3626, allocations: 4 kB / 0.5646 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.072e-05/0.3627, allocations: 35.98 kB / 0.5647 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000169/0.3629, allocations: 69.95 kB / 0.5647 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.3644, allocations: 0.8938 MB / 0.5656 GB, free: 12.95 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.005782/0.3701, allocations: 3.972 MB / 0.5695 GB, free: 8.777 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006263/0.3708, allocations: 320.9 kB / 0.5698 GB, free: 8.445 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003897/0.3712, allocations: 249.6 kB / 0.57 GB, free: 8.195 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.187e-05/0.3712, allocations: 19.92 kB / 0.57 GB, free: 8.176 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/0.3712, allocations: 42.55 kB / 0.5701 GB, free: 8.125 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 1.943e-06/0.3712, allocations: 0 / 0.5701 GB, free: 8.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=52): time 0.004292/0.3755, allocations: 1.917 MB / 0.5719 GB, free: 6.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.3756, allocations: 89.55 kB / 0.572 GB, free: 6.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007212/0.3763, allocations: 0.5616 MB / 0.5726 GB, free: 5.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.554e-05/0.3764, allocations: 37.7 kB / 0.5726 GB, free: 5.457 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004569/0.3768, allocations: 483.7 kB / 0.5731 GB, free: 4.977 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.377, allocations: 194.4 kB / 0.5733 GB, free: 4.785 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002296/0.3772, allocations: 150.6 kB / 0.5734 GB, free: 4.629 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.3775, allocations: 386.7 kB / 0.5738 GB, free: 4.242 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004395/0.3779, allocations: 269.8 kB / 0.574 GB, free: 3.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006994/0.3786, allocations: 0.4964 MB / 0.5745 GB, free: 3.375 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.003281/0.3819, allocations: 1.422 MB / 0.5759 GB, free: 1.852 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.3819, allocations: 4 kB / 0.5759 GB, free: 1.848 MB / 414.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002118/0.384, allocations: 1.016 MB / 0.5769 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.384, allocations: 8 kB / 0.5769 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001245/0.3853, allocations: 0.6833 MB / 0.5776 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005682/0.3858, allocations: 154.4 kB / 0.5777 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006206/0.3865, allocations: 175.7 kB / 0.5779 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004487/0.3909, allocations: 4.55 MB / 0.5823 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005191/0.3915, allocations: 47.86 kB / 0.5824 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-05/0.3915, allocations: 39.98 kB / 0.5824 GB, free: 10.8 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.0005106/0.392, allocations: 313.5 kB / 0.5827 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.3922, allocations: 71.52 kB / 0.5828 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001116/0.3933, allocations: 0.6395 MB / 0.5834 GB, free: 9.762 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3933, allocations: 4 kB / 0.5834 GB, free: 9.758 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3933, allocations: 4 kB / 0.5834 GB, free: 9.754 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/0.3933, allocations: 3.984 kB / 0.5834 GB, free: 9.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002552/0.3958, allocations: 1.49 MB / 0.5849 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.3959, allocations: 4 kB / 0.5849 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006037/0.3965, allocations: 123.9 kB / 0.585 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.3965, allocations: 4 kB / 0.585 GB, free: 8.062 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.396e-05/0.3965, allocations: 15.98 kB / 0.585 GB, free: 8.047 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.034e-06/0.3965, allocations: 12.12 kB / 0.585 GB, free: 8.035 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.3965, allocations: 7.938 kB / 0.585 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.3978, allocations: 0.9549 MB / 0.586 GB, free: 7.035 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002691/0.3981, allocations: 111.5 kB / 0.5861 GB, free: 6.926 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.95e-05/0.3982, allocations: 20.06 kB / 0.5861 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003204/0.3985, allocations: 19.98 kB / 0.5861 GB, free: 6.887 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.652e-05/0.3986, allocations: 44.25 kB / 0.5862 GB, free: 6.844 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.3986, allocations: 16 kB / 0.5862 GB, free: 6.828 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000487/0.3991, allocations: 415 kB / 0.5866 GB, free: 6.426 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3991, allocations: 0 / 0.5866 GB, free: 6.426 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008083/0.3999, allocations: 231.9 kB / 0.5868 GB, free: 6.199 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.001807/0.4017, allocations: 1.537 MB / 0.5883 GB, free: 4.617 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.4034, allocations: 0.9807 MB / 0.5892 GB, free: 3.605 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.4034, allocations: 4.062 kB / 0.5893 GB, free: 3.602 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003972/0.4038, allocations: 254.3 kB / 0.5895 GB, free: 3.352 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008064/0.4046, allocations: 145 kB / 0.5896 GB, free: 3.211 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.415, allocations: 7.017 MB / 0.5965 GB, free: 11.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008025/0.4158, allocations: 1.078 MB / 0.5975 GB, free: 10.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005447/0.4164, allocations: 201.8 kB / 0.5977 GB, free: 10.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004567/0.4168, allocations: 323.3 kB / 0.598 GB, free: 10.21 MB / 446.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4168, allocations: 0 / 0.598 GB, free: 10.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04825/0.4651, allocations: 16.75 MB / 0.6144 GB, free: 9.641 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.42, allocations: 10.8 kB / 0.6144 GB, free: 9.633 MB / 462.1 MB " [Timeout remaining time 646] (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: 16.442868640995584] Failed to read output from testmodel.py, exit status != 0: 13.594878755975515 13.610795548 13.252699324 Calling exit ...