Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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/Complex 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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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: translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="DCpower.p|DCvoltage.v|Time",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="DCpower.p|DCvoltage.v|Time",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 108 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002273/0.002273, allocations: 193.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.58/2.58, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3539/0.3539, allocations: 38.03 MB / 330.1 MB, free: 9.039 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002526/0.002526, allocations: 65.75 kB / 398.9 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1672/0.1698, allocations: 58.05 MB / 457 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01994/0.1898, allocations: 10.46 MB / 467.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01189/0.2017, allocations: 3.619 MB / 471.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002605/0.2044, allocations: 63.62 kB / 471.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002626/0.2071, allocations: 362 kB / 471.5 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004056/0.2112, allocations: 0.7156 MB / 472.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002284/0.2135, allocations: 434.3 kB / 472.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004416/0.2179, allocations: 1.87 MB / 474.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002657/0.2206, allocations: 1.132 MB / 475.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002077/0.2227, allocations: 0.751 MB / 476.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001991/0.2248, allocations: 0.8445 MB / 477.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003367/0.2251, allocations: 144 kB / 477.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001137/0.2263, allocations: 379.5 kB / 477.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009982/0.2273, allocations: 498.7 kB / 478.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001234/0.2285, allocations: 0.7037 MB / 478.9 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002975/0.2315, allocations: 1.575 MB / 480.5 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.037e-05/0.2316, allocations: 0 / 480.5 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2316, allocations: 0 / 480.5 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.914e-05/0.2317, allocations: 0 / 480.5 MB, free: 0.8203 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.006219/0.2379, allocations: 1.64 MB / 482.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.265e-05/0.238, allocations: 15.89 kB / 482.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.2393, allocations: 183.2 kB / 482.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002912/0.2423, allocations: 0.9186 MB / 483.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.2424, allocations: 78.06 kB / 483.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005019/0.243, allocations: 120 kB / 483.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003956/0.2469, allocations: 1.345 MB / 484.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.607e-05/0.247, allocations: 7.906 kB / 484.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001792/0.2472, allocations: 43.98 kB / 484.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001866/0.2474, allocations: 69.97 kB / 484.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003425/0.2509, allocations: 1.07 MB / 486 MB, free: 11.16 MB / 366.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01853/0.2695, allocations: 5.141 MB / 491.1 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002423/0.2719, allocations: 0.7586 MB / 491.9 MB, free: 4.973 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.273, allocations: 342.9 kB / 492.2 MB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001032/0.2732, allocations: 8.562 kB / 492.2 MB, free: 4.621 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001073/0.2733, allocations: 47.06 kB / 492.3 MB, free: 4.566 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 6.051e-06/0.2733, allocations: 0 / 492.3 MB, free: 4.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.01097/0.2843, allocations: 2.671 MB / 494.9 MB, free: 1.805 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/0.2845, allocations: 145 kB / 495.1 MB, free: 1.629 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001976/0.2865, allocations: 0.7509 MB / 495.8 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001604/0.2867, allocations: 37.7 kB / 495.9 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006984/0.2874, allocations: 0.5651 MB / 496.4 MB, free: 260 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000388/0.2878, allocations: 252.4 kB / 496.7 MB, free: 4 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000448/0.2883, allocations: 166.5 kB / 496.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.2885, allocations: 337.9 kB / 497.2 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009454/0.2895, allocations: 296.7 kB / 497.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.2907, allocations: 0.5451 MB / 498 MB, free: 14.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002195/0.2929, allocations: 0.9053 MB / 498.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/0.2929, allocations: 7.938 kB / 498.9 MB, free: 13.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.005089/0.298, allocations: 1.336 MB / 0.4885 GB, free: 12.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.649e-05/0.2981, allocations: 15.92 kB / 0.4886 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.793e-05/0.2982, allocations: 8 kB / 0.4886 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002391/0.3006, allocations: 416.7 kB / 0.489 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.3018, allocations: 167.7 kB / 0.4891 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01473/0.3166, allocations: 5.296 MB / 0.4943 GB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.318, allocations: 39.89 kB / 0.4943 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001536/0.3182, allocations: 39.98 kB / 0.4944 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001634/0.3198, allocations: 0.5565 MB / 0.4949 GB, free: 5.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001064/0.3209, allocations: 0.5334 MB / 0.4954 GB, free: 4.859 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002052/0.323, allocations: 0.878 MB / 0.4963 GB, free: 3.867 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.057e-06/0.323, allocations: 0 / 0.4963 GB, free: 3.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.004668/0.3277, allocations: 1.266 MB / 0.4975 GB, free: 2.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.3278, allocations: 8 kB / 0.4975 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.356e-05/0.3278, allocations: 8 kB / 0.4975 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/0.33, allocations: 405.1 kB / 0.4979 GB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.3312, allocations: 171.7 kB / 0.4981 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/0.3439, allocations: 5.065 MB / 0.503 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.3453, allocations: 31.98 kB / 0.5031 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001577/0.3455, allocations: 43.98 kB / 0.5031 GB, free: 12.73 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,25)} Notification: Performance of prepare postOptimizeDAE: time 0.000453/0.346, allocations: 235 kB / 0.5033 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003803/0.3464, allocations: 98.81 kB / 0.5034 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002596/0.349, allocations: 0.8636 MB / 0.5043 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.826e-05/0.3491, allocations: 8 kB / 0.5043 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.3491, allocations: 0 / 0.5043 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/0.3491, allocations: 7.984 kB / 0.5043 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005379/0.3545, allocations: 1.861 MB / 0.5061 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/0.3546, allocations: 0 / 0.5061 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001413/0.356, allocations: 167.8 kB / 0.5063 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.632e-05/0.356, allocations: 0 / 0.5063 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.3562, allocations: 27.92 kB / 0.5063 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.158e-05/0.3562, allocations: 7.938 kB / 0.5063 GB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3562, allocations: 0 / 0.5063 GB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003153/0.3593, allocations: 1.274 MB / 0.5075 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007163/0.3601, allocations: 223.8 kB / 0.5078 GB, free: 7.828 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002238/0.3604, allocations: 19.94 kB / 0.5078 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008625/0.3612, allocations: 35.97 kB / 0.5078 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.3614, allocations: 44.58 kB / 0.5079 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.08e-05/0.3615, allocations: 20 kB / 0.5079 GB, free: 7.711 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001173/0.3627, allocations: 0.5107 MB / 0.5084 GB, free: 7.203 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3627, allocations: 0 / 0.5084 GB, free: 7.203 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003152/0.3658, allocations: 472 kB / 0.5088 GB, free: 6.742 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * 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 (77): * Single equations (assignments): 76 * 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.0005325/0.3664, allocations: 139.8 kB / 0.509 GB, free: 6.594 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006862/0.3733, allocations: 2.053 MB / 0.511 GB, free: 4.516 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/0.3734, allocations: 4 kB / 0.511 GB, free: 4.512 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.3744, allocations: 355.9 kB / 0.5113 GB, free: 4.168 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002344/0.3768, allocations: 259.4 kB / 0.5115 GB, free: 3.926 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007882/0.3847, allocations: 3.05 MB / 0.5145 GB, free: 0.832 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2852/0.67, allocations: 1.196 MB / 0.5157 GB, free: 68.1 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004466/0.6704, allocations: 69.58 kB / 0.5158 GB, free: 68.1 MB / 398.1 MB Notification: Performance of SimCode: time 1.173e-06/0.6705, allocations: 0.6875 kB / 0.5158 GB, free: 68.1 MB / 398.1 MB Notification: Performance of Templates: time 0.03862/0.7091, allocations: 17.14 MB / 0.5325 GB, free: 63.23 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.LocalGeneration.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches