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.001507/0.001507, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.2 MB / 219.4 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 86.7 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1544/0.1544, allocations: 37.97 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.477e-05/3.479e-05, allocations: 4 kB / 417.7 MB, free: 29.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 56.32 MB / 474.1 MB, free: 4.801 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3949/0.5108, allocations: 122.3 MB / 0.5824 GB, free: 12.85 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.5111, allocations: 91.89 kB / 0.5825 GB, free: 12.81 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09255/0.6037, allocations: 35.53 MB / 0.6172 GB, free: 14.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.6037, allocations: 0 / 0.6172 GB, free: 14.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.307e-05/0.6038, allocations: 31.94 kB / 0.6172 GB, free: 14.63 MB / 426.7 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.002453/0.6063, allocations: 1.314 MB / 0.6185 GB, free: 13.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.6063, allocations: 12.02 kB / 0.6185 GB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004782/0.6068, allocations: 162.3 kB / 0.6186 GB, free: 13.17 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00264/0.6094, allocations: 1.231 MB / 0.6198 GB, free: 12.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.426e-05/0.6095, allocations: 78.42 kB / 0.6199 GB, free: 12.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000274/0.6098, allocations: 127.6 kB / 0.62 GB, free: 12.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/0.6118, allocations: 1.312 MB / 0.6213 GB, free: 11.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.076e-05/0.6118, allocations: 7.484 kB / 0.6213 GB, free: 11.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.469e-05/0.6119, allocations: 42.44 kB / 0.6214 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/0.612, allocations: 64.36 kB / 0.6214 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001526/0.6136, allocations: 1.008 MB / 0.6224 GB, free: 10.31 MB / 426.7 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.006521/0.6201, allocations: 5.134 MB / 0.6274 GB, free: 5.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.6211, allocations: 0.7186 MB / 0.6281 GB, free: 5.074 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004528/0.6216, allocations: 332.2 kB / 0.6284 GB, free: 4.742 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.272e-05/0.6217, allocations: 8.562 kB / 0.6285 GB, free: 4.73 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.6217, allocations: 43.08 kB / 0.6285 GB, free: 4.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=64): time 2.816e-06/0.6217, allocations: 0 / 0.6285 GB, free: 4.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.004107/0.6258, allocations: 2.221 MB / 0.6307 GB, free: 2.383 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.744e-05/0.6259, allocations: 115.4 kB / 0.6308 GB, free: 2.246 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007832/0.6267, allocations: 0.6255 MB / 0.6314 GB, free: 1.617 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.203e-05/0.6268, allocations: 41.7 kB / 0.6314 GB, free: 1.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003847/0.6271, allocations: 0.5649 MB / 0.632 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/0.6274, allocations: 252.4 kB / 0.6322 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/0.6274, allocations: 16 kB / 0.6322 GB, free: 0.7305 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.6276, allocations: 349.9 kB / 0.6326 GB, free: 392 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004317/0.628, allocations: 262 kB / 0.6328 GB, free: 128 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005992/0.6286, allocations: 0.521 MB / 0.6333 GB, free: 15.49 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005748/0.6292, allocations: 382.2 kB / 0.6337 GB, free: 15.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.6292, allocations: 0 / 0.6337 GB, free: 15.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002512/0.6317, allocations: 1.257 MB / 0.6349 GB, free: 13.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001112/0.6328, allocations: 3.141 MB / 0.638 GB, free: 10.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.6329, allocations: 8 kB / 0.638 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001346/0.6342, allocations: 404.5 kB / 0.6384 GB, free: 10.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006518/0.6349, allocations: 167.7 kB / 0.6385 GB, free: 9.887 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001462/0.6364, allocations: 1.146 MB / 0.6397 GB, free: 8.711 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006062/0.637, allocations: 47.83 kB / 0.6397 GB, free: 8.664 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.418e-05/0.6371, allocations: 36 kB / 0.6397 GB, free: 8.629 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.6371, allocations: 6.5 kB / 0.6397 GB, free: 8.625 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002246/0.6393, allocations: 1.139 MB / 0.6409 GB, free: 7.484 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.6394, allocations: 8 kB / 0.6409 GB, free: 7.477 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001231/0.6406, allocations: 401.1 kB / 0.6412 GB, free: 7.082 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006161/0.6412, allocations: 167.7 kB / 0.6414 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00678/0.648, allocations: 4.602 MB / 0.6459 GB, free: 2.176 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006721/0.6487, allocations: 39.83 kB / 0.6459 GB, free: 2.137 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.274e-05/0.6488, allocations: 44 kB / 0.646 GB, free: 2.094 MB / 442.7 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 () * 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 (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.0002199/0.649, allocations: 157.6 kB / 0.6461 GB, free: 1.934 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.6492, allocations: 90.88 kB / 0.6462 GB, free: 1.844 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/0.6506, allocations: 0.8475 MB / 0.647 GB, free: 0.9648 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.6507, allocations: 8 kB / 0.647 GB, free: 0.957 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.6507, allocations: 0 / 0.647 GB, free: 0.957 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.6507, allocations: 3.984 kB / 0.6471 GB, free: 0.9531 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00308/0.6538, allocations: 1.802 MB / 0.6488 GB, free: 15.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.6538, allocations: 3.984 kB / 0.6488 GB, free: 15.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000855/0.6547, allocations: 167.8 kB / 0.649 GB, free: 14.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/0.6547, allocations: 4 kB / 0.649 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.173e-05/0.6547, allocations: 19.94 kB / 0.649 GB, free: 14.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.6548, allocations: 4 kB / 0.649 GB, free: 14.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.6548, allocations: 4 kB / 0.649 GB, free: 14.89 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.6565, allocations: 1.255 MB / 0.6502 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003557/0.6568, allocations: 227.8 kB / 0.6504 GB, free: 13.35 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.6569, allocations: 12 kB / 0.6505 GB, free: 13.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000417/0.6574, allocations: 23.98 kB / 0.6505 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.6575, allocations: 48.72 kB / 0.6505 GB, free: 13.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-05/0.6575, allocations: 16 kB / 0.6505 GB, free: 13.25 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006098/0.6581, allocations: 499.1 kB / 0.651 GB, free: 12.77 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6581, allocations: 0 / 0.651 GB, free: 12.77 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001367/0.6595, allocations: 433.3 kB / 0.6514 GB, free: 12.35 MB / 458.7 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.0003126/0.6598, allocations: 204.8 kB / 0.6516 GB, free: 12.14 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002953/0.6628, allocations: 1.577 MB / 0.6532 GB, free: 10.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.6628, allocations: 0 / 0.6532 GB, free: 10.54 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004705/0.6633, allocations: 336.4 kB / 0.6535 GB, free: 10.22 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.6643, allocations: 238.1 kB / 0.6537 GB, free: 9.988 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003278/0.6676, allocations: 1.966 MB / 0.6556 GB, free: 7.988 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008241/0.6684, allocations: 1.215 MB / 0.6568 GB, free: 6.742 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001082/0.6695, allocations: 315.3 kB / 0.6571 GB, free: 6.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.6697, allocations: 55.44 kB / 0.6572 GB, free: 6.375 MB / 458.7 MB Notification: Performance of SimCode: time 1.773e-06/0.6697, allocations: 0 / 0.6572 GB, free: 6.375 MB / 458.7 MB Notification: Performance of Templates: time 0.0257/0.6954, allocations: 16.82 MB / 0.6736 GB, free: 5.562 MB / 474.7 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