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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001423/0.001423, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.529/1.529, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009898/0.0009899, allocations: 92.3 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1671/0.1671, allocations: 37.99 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.655e-05/1.658e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1218, allocations: 56.33 MB / 466.9 MB, free: 6.555 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4456/0.5675, allocations: 121.6 MB / 0.5747 GB, free: 5.254 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003353/0.5679, allocations: 95.94 kB / 0.5748 GB, free: 5.16 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.09599/0.6639, allocations: 35.16 MB / 0.6092 GB, free: 1.648 MB / 443.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.6639, allocations: 0 / 0.6092 GB, free: 1.648 MB / 443.1 MB Notification: Performance of Transformations before backend: time 8.644e-05/0.664, allocations: 32 kB / 0.6092 GB, free: 1.617 MB / 443.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.002892/0.6669, allocations: 1.323 MB / 0.6105 GB, free: 248 kB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.667, allocations: 8.031 kB / 0.6105 GB, free: 240 kB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005622/0.6676, allocations: 162.3 kB / 0.6106 GB, free: 76 kB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003027/0.6706, allocations: 1.222 MB / 0.6118 GB, free: 14.81 MB / 459.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.508e-05/0.6707, allocations: 39.94 kB / 0.6119 GB, free: 14.77 MB / 459.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002699/0.6709, allocations: 83.89 kB / 0.612 GB, free: 14.69 MB / 459.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001701/0.6727, allocations: 0.9296 MB / 0.6129 GB, free: 13.75 MB / 459.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/0.6746, allocations: 1.153 MB / 0.614 GB, free: 12.52 MB / 459.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.98e-05/0.6746, allocations: 7.938 kB / 0.614 GB, free: 12.51 MB / 459.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.374e-05/0.6747, allocations: 4 kB / 0.614 GB, free: 12.5 MB / 459.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001279/0.6749, allocations: 69.97 kB / 0.6141 GB, free: 12.43 MB / 459.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.007067/0.6819, allocations: 4.863 MB / 0.6188 GB, free: 7.355 MB / 459.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009921/0.6829, allocations: 0.6919 MB / 0.6195 GB, free: 6.617 MB / 459.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004224/0.6834, allocations: 307.5 kB / 0.6198 GB, free: 6.312 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.707e-05/0.6835, allocations: 4.562 kB / 0.6198 GB, free: 6.309 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/0.6835, allocations: 39.12 kB / 0.6198 GB, free: 6.258 MB / 459.1 MB Notification: Performance of pre-optimization done (n=64): time 3.647e-06/0.6835, allocations: 4 kB / 0.6198 GB, free: 6.254 MB / 459.1 MB Notification: Performance of matching and sorting (n=71): time 0.003729/0.6872, allocations: 2.04 MB / 0.6218 GB, free: 4.133 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.6873, allocations: 111.4 kB / 0.6219 GB, free: 4 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006599/0.688, allocations: 0.5234 MB / 0.6224 GB, free: 3.473 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 4.74e-05/0.6881, allocations: 29.7 kB / 0.6225 GB, free: 3.438 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003937/0.6885, allocations: 0.5648 MB / 0.623 GB, free: 2.863 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002401/0.6887, allocations: 248.3 kB / 0.6233 GB, free: 2.617 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-05/0.6887, allocations: 0 / 0.6233 GB, free: 2.617 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.6889, allocations: 402.7 kB / 0.6236 GB, free: 2.215 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003861/0.6893, allocations: 258.6 kB / 0.6239 GB, free: 1.961 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005531/0.6899, allocations: 0.4989 MB / 0.6244 GB, free: 1.352 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005283/0.6904, allocations: 360.3 kB / 0.6247 GB, free: 1 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.6904, allocations: 0 / 0.6247 GB, free: 1 MB / 459.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002419/0.6929, allocations: 1.16 MB / 0.6259 GB, free: 15.82 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001268/0.6941, allocations: 3.224 MB / 0.629 GB, free: 12.35 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.6942, allocations: 8 kB / 0.629 GB, free: 12.34 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/0.6955, allocations: 400.5 kB / 0.6294 GB, free: 11.95 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006819/0.6962, allocations: 163.8 kB / 0.6295 GB, free: 11.79 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/0.6978, allocations: 1.185 MB / 0.6307 GB, free: 10.57 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006683/0.6985, allocations: 15.98 kB / 0.6307 GB, free: 10.55 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.937e-05/0.6986, allocations: 40 kB / 0.6308 GB, free: 10.52 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.6986, allocations: 8.766 kB / 0.6308 GB, free: 10.51 MB / 475.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002175/0.7008, allocations: 1.018 MB / 0.6318 GB, free: 9.488 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.7008, allocations: 15.89 kB / 0.6318 GB, free: 9.473 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.702, allocations: 372.8 kB / 0.6321 GB, free: 9.105 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006336/0.7027, allocations: 171.7 kB / 0.6323 GB, free: 8.938 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006447/0.7091, allocations: 4.427 MB / 0.6366 GB, free: 4.387 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007658/0.7099, allocations: 19.98 kB / 0.6366 GB, free: 4.367 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.134e-05/0.71, allocations: 40 kB / 0.6367 GB, free: 4.328 MB / 475.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: PMgen.term.i[1]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] PMgen.generator.psi_s[1]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real PMgen.inverter.vDC1:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) type: Real PMgen.generator.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] $DER.zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003421/0.7104, allocations: 154.4 kB / 0.6368 GB, free: 4.172 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.7105, allocations: 86.88 kB / 0.6369 GB, free: 4.086 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001425/0.712, allocations: 0.777 MB / 0.6377 GB, free: 3.277 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.712, allocations: 8 kB / 0.6377 GB, free: 3.27 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.712, allocations: 7.938 kB / 0.6377 GB, free: 3.262 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.712, allocations: 7.984 kB / 0.6377 GB, free: 3.254 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002841/0.7149, allocations: 1.603 MB / 0.6392 GB, free: 1.605 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.7149, allocations: 4 kB / 0.6393 GB, free: 1.602 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008526/0.7157, allocations: 163.8 kB / 0.6394 GB, free: 1.441 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.164e-05/0.7158, allocations: 8.031 kB / 0.6394 GB, free: 1.434 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.326e-05/0.7158, allocations: 4 kB / 0.6394 GB, free: 1.43 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.438e-06/0.7158, allocations: 4 kB / 0.6394 GB, free: 1.426 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.7158, allocations: 0 / 0.6394 GB, free: 1.426 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.7174, allocations: 1.204 MB / 0.6406 GB, free: 176 kB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2986/1.016, allocations: 214.6 kB / 0.6408 GB, free: 131.1 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002818/1.016, allocations: 4.469 kB / 0.6408 GB, free: 131.1 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005937/1.017, allocations: 10.19 kB / 0.6408 GB, free: 131.1 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/1.017, allocations: 46.83 kB / 0.6409 GB, free: 131.1 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.06e-05/1.017, allocations: 20.62 kB / 0.6409 GB, free: 131.1 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.000857/1.018, allocations: 406 kB / 0.6413 GB, free: 131 MB / 475.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.018, allocations: 0 / 0.6413 GB, free: 131 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.001998/1.02, allocations: 373.2 kB / 0.6416 GB, free: 131 MB / 475.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003536/1.02, allocations: 177 kB / 0.6418 GB, free: 130.9 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.003712/1.024, allocations: 1.51 MB / 0.6433 GB, free: 130.7 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/1.024, allocations: 7.562 kB / 0.6433 GB, free: 130.7 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005534/1.025, allocations: 318.9 kB / 0.6436 GB, free: 130.7 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009876/1.026, allocations: 165 kB / 0.6437 GB, free: 130.7 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003725/1.029, allocations: 1.92 MB / 0.6456 GB, free: 130.3 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009312/1.03, allocations: 1.213 MB / 0.6468 GB, free: 129.5 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.001194/1.032, allocations: 284.8 kB / 0.6471 GB, free: 129.5 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/1.032, allocations: 52.97 kB / 0.6471 GB, free: 129.5 MB / 475.1 MB Notification: Performance of SimCode: time 1.112e-06/1.032, allocations: 3.844 kB / 0.6471 GB, free: 129.5 MB / 475.1 MB Notification: Performance of Templates: time 0.0317/1.063, allocations: 14.15 MB / 0.6609 GB, free: 128.7 MB / 475.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.LocalGeneration.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches