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.001888/0.001888, allocations: 176.3 kB / 17.4 MB, free: 4.305 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.753/1.753, allocations: 205.4 MB / 223.5 MB, free: 9.023 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.0007814/0.0007814, allocations: 90.42 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1865/0.1865, allocations: 38.06 MB / 358.2 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003926/0.0003928, allocations: 12 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4227/0.4231, allocations: 56.32 MB / 481.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1875/0.6106, allocations: 122.4 MB / 0.5899 GB, free: 11.76 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004309/0.6112, allocations: 99.81 kB / 0.59 GB, free: 11.66 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1042/0.7154, allocations: 35.38 MB / 0.6245 GB, free: 7.906 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.7155, allocations: 0 / 0.6245 GB, free: 7.906 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002059/0.7157, allocations: 28 kB / 0.6245 GB, free: 7.879 MB / 458.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.00556/0.7213, allocations: 1.447 MB / 0.6259 GB, free: 6.375 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/0.7213, allocations: 12.03 kB / 0.6259 GB, free: 6.363 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001138/0.7225, allocations: 163.1 kB / 0.6261 GB, free: 6.203 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003731/0.7262, allocations: 1.075 MB / 0.6272 GB, free: 5.086 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.7264, allocations: 82.42 kB / 0.6272 GB, free: 5.004 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006002/0.727, allocations: 128.6 kB / 0.6274 GB, free: 4.879 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003547/0.7306, allocations: 1.329 MB / 0.6287 GB, free: 3.461 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.681e-05/0.7307, allocations: 15.92 kB / 0.6287 GB, free: 3.445 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001819/0.7309, allocations: 40 kB / 0.6287 GB, free: 3.406 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001599/0.731, allocations: 65.97 kB / 0.6288 GB, free: 3.34 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002617/0.7337, allocations: 1.042 MB / 0.6298 GB, free: 2.301 MB / 458.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.009493/0.7432, allocations: 5.137 MB / 0.6348 GB, free: 12.92 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.7445, allocations: 0.7383 MB / 0.6355 GB, free: 12.13 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005728/0.7451, allocations: 336.1 kB / 0.6358 GB, free: 11.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.604e-05/0.7452, allocations: 12.55 kB / 0.6359 GB, free: 11.78 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.087e-05/0.7453, allocations: 47.12 kB / 0.6359 GB, free: 11.72 MB / 474.7 MB Notification: Performance of pre-optimization done (n=64): time 4.84e-06/0.7453, allocations: 0 / 0.6359 GB, free: 11.72 MB / 474.7 MB Notification: Performance of matching and sorting (n=71): time 0.006365/0.7516, allocations: 2.667 MB / 0.6385 GB, free: 8.969 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.376e-05/0.7518, allocations: 107.4 kB / 0.6386 GB, free: 8.836 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001351/0.7532, allocations: 0.7276 MB / 0.6393 GB, free: 8.098 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.306e-05/0.7532, allocations: 41.64 kB / 0.6394 GB, free: 8.051 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004818/0.7537, allocations: 0.5611 MB / 0.6399 GB, free: 7.48 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00028/0.754, allocations: 264.3 kB / 0.6402 GB, free: 7.219 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-05/0.7541, allocations: 16 kB / 0.6402 GB, free: 7.203 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.7542, allocations: 338 kB / 0.6405 GB, free: 6.867 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005429/0.7548, allocations: 281.8 kB / 0.6408 GB, free: 6.594 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007409/0.7555, allocations: 0.5363 MB / 0.6413 GB, free: 5.945 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.757, allocations: 0.8779 MB / 0.6421 GB, free: 4.957 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.757, allocations: 8 kB / 0.6422 GB, free: 4.949 MB / 474.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.003155/0.7602, allocations: 1.285 MB / 0.6434 GB, free: 3.652 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004299/0.7606, allocations: 329.9 kB / 0.6437 GB, free: 3.215 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-05/0.7606, allocations: 8 kB / 0.6437 GB, free: 3.207 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001631/0.7623, allocations: 420.5 kB / 0.6441 GB, free: 2.793 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006792/0.763, allocations: 171.7 kB / 0.6443 GB, free: 2.625 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2933/1.056, allocations: 4.706 MB / 0.6489 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009718/1.057, allocations: 42.78 kB / 0.6489 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.799e-05/1.057, allocations: 37.94 kB / 0.649 GB, free: 127.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/1.057, allocations: 6.141 kB / 0.649 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002591/1.06, allocations: 1.149 MB / 0.6501 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/1.06, allocations: 7.75 kB / 0.6501 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/1.061, allocations: 399.2 kB / 0.6505 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006596/1.062, allocations: 167.1 kB / 0.6506 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007438/1.07, allocations: 4.633 MB / 0.6552 GB, free: 126.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008038/1.07, allocations: 34.33 kB / 0.6552 GB, free: 126.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.318e-05/1.07, allocations: 40.64 kB / 0.6552 GB, free: 126.2 MB / 474.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 () * 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 (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.0009234/1.071, allocations: 444.4 kB / 0.6557 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002999/1.072, allocations: 90.88 kB / 0.6558 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001607/1.073, allocations: 0.8606 MB / 0.6566 GB, free: 125.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/1.073, allocations: 14.91 kB / 0.6566 GB, free: 125.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/1.073, allocations: 1.594 kB / 0.6566 GB, free: 125.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/1.073, allocations: 5.656 kB / 0.6566 GB, free: 125.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00347/1.077, allocations: 1.814 MB / 0.6584 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/1.077, allocations: 5.469 kB / 0.6584 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008492/1.078, allocations: 160.6 kB / 0.6585 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.867e-06/1.078, allocations: 3.75 kB / 0.6585 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-05/1.078, allocations: 20.44 kB / 0.6586 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/1.078, allocations: 4.469 kB / 0.6586 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.078, allocations: 0.8438 kB / 0.6586 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002029/1.08, allocations: 1.246 MB / 0.6598 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003605/1.08, allocations: 219.6 kB / 0.66 GB, free: 125.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.759e-05/1.08, allocations: 19.94 kB / 0.66 GB, free: 125.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004276/1.081, allocations: 17.38 kB / 0.66 GB, free: 125.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/1.081, allocations: 54.45 kB / 0.6601 GB, free: 125.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-05/1.081, allocations: 19.62 kB / 0.6601 GB, free: 125.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008752/1.082, allocations: 0.4956 MB / 0.6606 GB, free: 125 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.082, allocations: 0 / 0.6606 GB, free: 125 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002148/1.084, allocations: 457.4 kB / 0.661 GB, free: 125 MB / 474.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 () * 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 (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.0003523/1.084, allocations: 184.5 kB / 0.6612 GB, free: 125 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004266/1.089, allocations: 1.852 MB / 0.663 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/1.089, allocations: 1.25 kB / 0.663 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000673/1.089, allocations: 342.6 kB / 0.6633 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001619/1.091, allocations: 235.2 kB / 0.6636 GB, free: 124.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006334/1.097, allocations: 3.03 MB / 0.6665 GB, free: 122.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001651/1.099, allocations: 1.207 MB / 0.6677 GB, free: 122.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001164/1.1, allocations: 237.3 kB / 0.6679 GB, free: 122.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003285/1.101, allocations: 69.09 kB / 0.668 GB, free: 122.1 MB / 474.7 MB Notification: Performance of SimCode: time 2.044e-06/1.101, allocations: 0 / 0.668 GB, free: 122.1 MB / 474.7 MB Notification: Performance of Templates: time 0.03437/1.135, allocations: 16.5 MB / 0.6841 GB, free: 121.2 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/jenkins1/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