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.0008495/0.0008495, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008822/0.0008822, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8934/0.8934, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.2148/0.2148, allocations: 29.41 MB / 290.1 MB, free: 2.461 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.34e-05/2.542e-05, allocations: 2.281 kB / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.006844/0.006869, allocations: 7.045 MB / 437.3 MB, free: 6.516 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003592/0.01046, allocations: 2.85 MB / 440.1 MB, free: 3.66 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004256/0.01089, allocations: 35.69 kB / 440.1 MB, free: 3.625 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.01218, allocations: 0.7504 MB / 440.9 MB, free: 2.871 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001391/0.01357, allocations: 0.7148 MB / 441.6 MB, free: 2.152 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007893/0.01436, allocations: 402.8 kB / 442 MB, free: 1.758 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.01576, allocations: 1.359 MB / 443.4 MB, free: 404 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1591/0.1749, allocations: 0.5576 MB / 443.9 MB, free: 43.63 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009625/0.1758, allocations: 0.7583 MB / 444.7 MB, free: 43.63 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005895/0.1764, allocations: 0.5869 MB / 445.3 MB, free: 43.63 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.913e-05/0.1765, allocations: 78.97 kB / 445.3 MB, free: 43.63 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000601/0.1771, allocations: 0.5033 MB / 445.8 MB, free: 43.63 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000249/0.1773, allocations: 484.3 kB / 446.3 MB, free: 43.63 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002355/0.1776, allocations: 359.7 kB / 446.7 MB, free: 43.63 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.1786, allocations: 1.45 MB / 448.1 MB, free: 43.55 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1786, allocations: 0 / 448.1 MB, free: 43.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1786, allocations: 0 / 448.1 MB, free: 43.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.1786, allocations: 0 / 448.1 MB, free: 43.55 MB / 410.7 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.001319/0.1799, allocations: 1.217 MB / 449.3 MB, free: 42.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.18, allocations: 13.48 kB / 449.4 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.1801, allocations: 141.7 kB / 449.5 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006866/0.1808, allocations: 216.6 kB / 449.7 MB, free: 42.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000797/0.1816, allocations: 0.655 MB / 450.4 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.1816, allocations: 61 kB / 450.4 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.1817, allocations: 98.69 kB / 450.5 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009146/0.1826, allocations: 1.114 MB / 451.6 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.1827, allocations: 8.938 kB / 451.6 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.922e-05/0.1827, allocations: 33.56 kB / 451.7 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.091e-05/0.1828, allocations: 70.48 kB / 451.7 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008327/0.1836, allocations: 0.8859 MB / 452.6 MB, free: 42.41 MB / 410.7 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.002712/0.1864, allocations: 3.675 MB / 456.3 MB, free: 40.51 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004129/0.1868, allocations: 316.5 kB / 456.6 MB, free: 40.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.187, allocations: 252.7 kB / 456.9 MB, free: 40.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.187, allocations: 9.734 kB / 456.9 MB, free: 40.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.411e-05/0.187, allocations: 44.22 kB / 456.9 MB, free: 40.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=45): time 2.304e-06/0.187, allocations: 3.938 kB / 456.9 MB, free: 40.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.002253/0.1893, allocations: 1.933 MB / 458.8 MB, free: 39.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.091e-05/0.1893, allocations: 83.89 kB / 458.9 MB, free: 39.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003817/0.1897, allocations: 0.5802 MB / 459.5 MB, free: 38.99 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.1897, allocations: 36.95 kB / 459.5 MB, free: 38.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.1899, allocations: 482.5 kB / 460 MB, free: 38.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.734e-05/0.19, allocations: 196.8 kB / 460.2 MB, free: 38.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.1901, allocations: 149.4 kB / 460.4 MB, free: 38.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.894e-05/0.1901, allocations: 378.6 kB / 460.7 MB, free: 38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/0.1904, allocations: 268.8 kB / 461 MB, free: 37.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000301/0.1907, allocations: 0.5077 MB / 461.5 MB, free: 37.53 MB / 410.7 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.001546/0.1922, allocations: 1.405 MB / 462.9 MB, free: 36.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.1923, allocations: 3.156 kB / 462.9 MB, free: 36.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00103/0.1933, allocations: 1.02 MB / 463.9 MB, free: 36.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1933, allocations: 13.06 kB / 463.9 MB, free: 36.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006406/0.1939, allocations: 0.6812 MB / 464.6 MB, free: 36.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002815/0.1942, allocations: 161.6 kB / 464.8 MB, free: 36.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003126/0.1945, allocations: 175.7 kB / 464.9 MB, free: 36.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/0.1964, allocations: 4.529 MB / 469.5 MB, free: 32.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003442/0.1967, allocations: 38.61 kB / 469.5 MB, free: 32.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.951e-05/0.1967, allocations: 37.19 kB / 469.5 MB, free: 32.15 MB / 410.7 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.0003734/0.1971, allocations: 315.5 kB / 469.9 MB, free: 31.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.806e-05/0.1972, allocations: 71.25 kB / 469.9 MB, free: 31.92 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005833/0.1977, allocations: 0.6454 MB / 470.6 MB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1977, allocations: 10.47 kB / 470.6 MB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.1977, allocations: 11 kB / 470.6 MB, free: 31.65 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.1977, allocations: 0 / 470.6 MB, free: 31.65 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.199, allocations: 1.428 MB / 472 MB, free: 30.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.199, allocations: 5.938 kB / 472 MB, free: 30.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002877/0.1993, allocations: 132.8 kB / 472.2 MB, free: 30.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1993, allocations: 3.188 kB / 472.2 MB, free: 30.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.1993, allocations: 14.38 kB / 472.2 MB, free: 30.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1993, allocations: 6.672 kB / 472.2 MB, free: 30.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1993, allocations: 3.188 kB / 472.2 MB, free: 30.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006469/0.2, allocations: 0.9465 MB / 473.1 MB, free: 30.47 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001271/0.2001, allocations: 106.5 kB / 473.2 MB, free: 30.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.381e-05/0.2001, allocations: 17.73 kB / 473.2 MB, free: 30.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.2003, allocations: 27.95 kB / 473.3 MB, free: 30.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-05/0.2003, allocations: 37.97 kB / 473.3 MB, free: 30.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.2004, allocations: 20.44 kB / 473.3 MB, free: 30.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000248/0.2006, allocations: 410 kB / 473.7 MB, free: 30.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2006, allocations: 0 / 473.7 MB, free: 30.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005277/0.2011, allocations: 235.2 kB / 474 MB, free: 30.18 MB / 410.7 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.0009167/0.2021, allocations: 1.527 MB / 475.5 MB, free: 29.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008149/0.2029, allocations: 0.992 MB / 476.5 MB, free: 28.63 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2029, allocations: 0 / 476.5 MB, free: 28.63 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.2031, allocations: 252.8 kB / 476.7 MB, free: 28.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.2035, allocations: 161 kB / 476.9 MB, free: 28.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005307/0.2088, allocations: 6.866 MB / 483.8 MB, free: 24.76 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.2092, allocations: 496 kB / 484.2 MB, free: 24.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003601/0.2096, allocations: 202.9 kB / 484.4 MB, free: 24.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002471/0.2098, allocations: 325.4 kB / 484.8 MB, free: 24.33 MB / 410.7 MB Notification: Performance of SimCode: time 8.91e-07/0.2098, allocations: 0 / 484.8 MB, free: 24.33 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03432/0.2441, allocations: 17.22 MB / 0.4902 GB, free: 21.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.251/7.495, allocations: 5.172 kB / 0.4902 GB, free: 21.67 MB / 410.7 MB " [Timeout remaining time 652] (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] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PowerAngle.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.415132231079042]