Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008312/0.0008312, allocations: 183.2 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.198/1.198, allocations: 225.7 MB / 243.2 MB, free: 8.492 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007395/0.0007395, allocations: 98.28 kB / 294.4 MB, free: 9.496 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2731/0.2731, allocations: 38.19 MB / 383.7 MB, free: 40.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002872/0.0002872, allocations: 8 kB / 453.5 MB, free: 8.793 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2727, allocations: 59.16 MB / 0.5007 GB, free: 38.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007528/0.2803, allocations: 7.903 MB / 0.5084 GB, free: 36.25 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005086/0.2854, allocations: 4.596 MB / 0.5129 GB, free: 32.33 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008439/0.2863, allocations: 46.94 kB / 0.5129 GB, free: 32.31 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005667/0.2868, allocations: 186.5 kB / 0.5131 GB, free: 32.21 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001576/0.2884, allocations: 0.6372 MB / 0.5137 GB, free: 31.89 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008528/0.2893, allocations: 331.8 kB / 0.5141 GB, free: 31.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001655/0.291, allocations: 2.004 MB / 0.516 GB, free: 31.1 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001268/0.2922, allocations: 1.434 MB / 0.5174 GB, free: 30.06 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006063/0.2929, allocations: 455 kB / 0.5178 GB, free: 29.89 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008649/0.2937, allocations: 0.605 MB / 0.5184 GB, free: 29.68 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.2939, allocations: 37.78 kB / 0.5185 GB, free: 29.68 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009059/0.2948, allocations: 450.3 kB / 0.5189 GB, free: 29.55 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004603/0.2953, allocations: 412.9 kB / 0.5193 GB, free: 29.43 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004531/0.2957, allocations: 479.5 kB / 0.5198 GB, free: 29.15 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001138/0.2969, allocations: 1.361 MB / 0.5211 GB, free: 28.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.2969, allocations: 0 / 0.5211 GB, free: 28.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2969, allocations: 0 / 0.5211 GB, free: 28.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.2969, allocations: 0 / 0.5211 GB, free: 28.77 MB / 378.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.001749/0.2987, allocations: 1.078 MB / 0.5221 GB, free: 28.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.2987, allocations: 15.75 kB / 0.5221 GB, free: 28.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001199/0.2999, allocations: 205 kB / 0.5223 GB, free: 27.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.3011, allocations: 0.6822 MB / 0.523 GB, free: 27.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.244e-05/0.3012, allocations: 62.39 kB / 0.5231 GB, free: 27.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002109/0.3014, allocations: 98.05 kB / 0.5232 GB, free: 27.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.3029, allocations: 1.111 MB / 0.5242 GB, free: 27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/0.3029, allocations: 6.938 kB / 0.5243 GB, free: 27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.498e-05/0.303, allocations: 32.78 kB / 0.5243 GB, free: 26.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001552/0.3032, allocations: 71.31 kB / 0.5244 GB, free: 26.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/0.3045, allocations: 0.8788 MB / 0.5252 GB, free: 26.68 MB / 378.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.004469/0.309, allocations: 4.101 MB / 0.5292 GB, free: 23.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004514/0.3094, allocations: 418.4 kB / 0.5296 GB, free: 23.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002846/0.3097, allocations: 263.4 kB / 0.5299 GB, free: 23.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.3098, allocations: 10.25 kB / 0.5299 GB, free: 23.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.3098, allocations: 41.66 kB / 0.5299 GB, free: 23.56 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.404e-06/0.3098, allocations: 0 / 0.5299 GB, free: 23.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.003433/0.3133, allocations: 1.986 MB / 0.5319 GB, free: 22.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.3133, allocations: 87.2 kB / 0.5319 GB, free: 22.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005045/0.3138, allocations: 0.5547 MB / 0.5325 GB, free: 22.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.942e-05/0.3138, allocations: 41.08 kB / 0.5325 GB, free: 22.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.314, allocations: 473 kB / 0.533 GB, free: 21.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.942e-05/0.3141, allocations: 189.9 kB / 0.5332 GB, free: 21.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.043e-05/0.3142, allocations: 15.03 kB / 0.5332 GB, free: 21.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.339e-05/0.3143, allocations: 380.2 kB / 0.5335 GB, free: 21.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003285/0.3146, allocations: 263.2 kB / 0.5338 GB, free: 21.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004114/0.315, allocations: 0.5048 MB / 0.5343 GB, free: 20.84 MB / 378.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.002919/0.318, allocations: 1.729 MB / 0.536 GB, free: 19.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.318, allocations: 3.281 kB / 0.536 GB, free: 19.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001887/0.3199, allocations: 1.156 MB / 0.5371 GB, free: 19.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.3199, allocations: 9.625 kB / 0.5371 GB, free: 19.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001378/0.3213, allocations: 0.8365 MB / 0.5379 GB, free: 19.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005513/0.3218, allocations: 211.6 kB / 0.5381 GB, free: 19.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004825/0.3223, allocations: 171.2 kB / 0.5383 GB, free: 19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004241/0.3266, allocations: 6.246 MB / 0.5444 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005454/0.3272, allocations: 49.11 kB / 0.5444 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.91e-05/0.3272, allocations: 33.22 kB / 0.5445 GB, free: 13.35 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: infBus.V = 20000.0 * infBus.v0. 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 (85): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004004/0.3276, allocations: 319.6 kB / 0.5448 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.3278, allocations: 69.91 kB / 0.5448 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008671/0.3286, allocations: 0.6391 MB / 0.5455 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.3286, allocations: 6.25 kB / 0.5455 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.3287, allocations: 0 / 0.5455 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3287, allocations: 3.328 kB / 0.5455 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002201/0.3309, allocations: 1.515 MB / 0.5469 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.3309, allocations: 6.688 kB / 0.547 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000568/0.3315, allocations: 126.8 kB / 0.5471 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.3315, allocations: 2.969 kB / 0.5471 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.276e-05/0.3315, allocations: 20.14 kB / 0.5471 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.3315, allocations: 10.25 kB / 0.5471 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3316, allocations: 0 / 0.5471 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.3327, allocations: 0.9499 MB / 0.548 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002825/0.333, allocations: 184.6 kB / 0.5482 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.3331, allocations: 17.59 kB / 0.5482 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003125/0.3334, allocations: 17.08 kB / 0.5482 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.909e-05/0.3335, allocations: 43.94 kB / 0.5483 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/0.3335, allocations: 9.375 kB / 0.5483 GB, free: 11.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003846/0.3339, allocations: 410.3 kB / 0.5487 GB, free: 11.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3339, allocations: 0 / 0.5487 GB, free: 11.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009649/0.3349, allocations: 241.8 kB / 0.5489 GB, free: 11.17 MB / 378.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.0003151/0.3352, allocations: 140 kB / 0.549 GB, free: 11.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001713/0.3369, allocations: 1.153 MB / 0.5502 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.3369, allocations: 0 / 0.5502 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003787/0.3373, allocations: 268.1 kB / 0.5504 GB, free: 10.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008574/0.3382, allocations: 149 kB / 0.5506 GB, free: 10.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/0.3413, allocations: 2.448 MB / 0.553 GB, free: 8.723 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006938/0.342, allocations: 1.083 MB / 0.554 GB, free: 7.969 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006337/0.3427, allocations: 204.4 kB / 0.5542 GB, free: 7.934 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001803/0.3429, allocations: 56.42 kB / 0.5543 GB, free: 7.926 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3429, allocations: 0 / 0.5543 GB, free: 7.926 MB / 378.7 MB Notification: Performance of Templates: time 0.01765/0.3605, allocations: 8.8 MB / 0.5629 GB, free: 5.105 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PowerAngle.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches