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.001413/0.001413, allocations: 114.7 kB / 16.63 MB, free: 6.332 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.00157/0.00157, allocations: 187.2 kB / 17.55 MB, free: 5.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1724/0.1724, allocations: 38.04 MB / 329.4 MB, free: 9.055 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 69.28 kB / 398.3 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1096, allocations: 58.06 MB / 456.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01193/0.1215, allocations: 10.44 MB / 466.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006421/0.128, allocations: 3.627 MB / 470.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001402/0.1294, allocations: 63.62 kB / 470.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.1308, allocations: 362 kB / 470.8 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002205/0.133, allocations: 0.7195 MB / 471.6 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.1342, allocations: 422.4 kB / 472 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002531/0.1367, allocations: 1.87 MB / 473.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001465/0.1382, allocations: 1.132 MB / 475 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001403/0.1396, allocations: 0.7548 MB / 475.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001124/0.1408, allocations: 0.8446 MB / 476.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001862/0.141, allocations: 140 kB / 476.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006338/0.1416, allocations: 379.5 kB / 477.1 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004894/0.1421, allocations: 0.4947 MB / 477.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006625/0.1428, allocations: 0.6998 MB / 478.3 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001845/0.1446, allocations: 1.939 MB / 480.2 MB, free: 480 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1446, allocations: 0 / 480.2 MB, free: 480 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1446, allocations: 0 / 480.2 MB, free: 480 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.1447, allocations: 3.938 kB / 480.2 MB, free: 476 kB / 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.002929/0.1476, allocations: 1.632 MB / 481.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.1477, allocations: 15.89 kB / 481.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006994/0.1484, allocations: 191.2 kB / 482.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001414/0.1498, allocations: 0.9147 MB / 483 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.424e-05/0.1498, allocations: 82.05 kB / 483 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002646/0.1501, allocations: 123.9 kB / 483.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/0.1522, allocations: 1.333 MB / 484.5 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.1522, allocations: 7.984 kB / 484.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.1523, allocations: 43.98 kB / 484.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/0.1524, allocations: 73.92 kB / 484.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/0.1542, allocations: 1.07 MB / 485.7 MB, free: 10.8 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.007154/0.1613, allocations: 5.137 MB / 490.8 MB, free: 5.426 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/0.1628, allocations: 0.7586 MB / 491.6 MB, free: 4.621 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005286/0.1633, allocations: 348.2 kB / 491.9 MB, free: 4.277 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.867e-05/0.1634, allocations: 12.5 kB / 491.9 MB, free: 4.262 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.75e-05/0.1634, allocations: 51.11 kB / 492 MB, free: 4.203 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.104e-06/0.1634, allocations: 0 / 492 MB, free: 4.203 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.005821/0.1693, allocations: 2.666 MB / 494.7 MB, free: 1.441 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.741e-05/0.1694, allocations: 137.1 kB / 494.8 MB, free: 1.273 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.1704, allocations: 0.7509 MB / 495.5 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.449e-05/0.1705, allocations: 45.77 kB / 495.6 MB, free: 476 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003827/0.1708, allocations: 0.5596 MB / 496.1 MB, free: 15.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.1711, allocations: 252.3 kB / 496.4 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002263/0.1713, allocations: 162.6 kB / 496.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1714, allocations: 341.9 kB / 496.9 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005223/0.172, allocations: 296.7 kB / 497.2 MB, free: 14.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006851/0.1726, allocations: 0.5451 MB / 497.7 MB, free: 14.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.1739, allocations: 0.9014 MB / 498.6 MB, free: 13.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.1739, allocations: 7.938 kB / 498.6 MB, free: 13.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002857/0.1768, allocations: 1.344 MB / 500 MB, free: 11.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.1768, allocations: 8 kB / 500 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.1769, allocations: 8 kB / 500 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.1783, allocations: 420.8 kB / 0.4887 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006563/0.179, allocations: 171.7 kB / 0.4888 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008745/0.1877, allocations: 5.297 MB / 0.494 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007293/0.1885, allocations: 35.97 kB / 0.494 GB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.176e-05/0.1886, allocations: 40 kB / 0.4941 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008974/0.1895, allocations: 0.5565 MB / 0.4946 GB, free: 5.152 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006085/0.1901, allocations: 0.5334 MB / 0.4951 GB, free: 4.508 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001182/0.1913, allocations: 0.878 MB / 0.496 GB, free: 3.516 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.178e-06/0.1913, allocations: 0 / 0.496 GB, free: 3.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002572/0.1939, allocations: 1.266 MB / 0.4972 GB, free: 2.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1939, allocations: 8 kB / 0.4972 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1939, allocations: 8 kB / 0.4973 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001304/0.1952, allocations: 405.1 kB / 0.4976 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007225/0.1959, allocations: 171.7 kB / 0.4978 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007387/0.2033, allocations: 5.063 MB / 0.5027 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007171/0.2041, allocations: 39.92 kB / 0.5028 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.534e-05/0.2042, allocations: 36 kB / 0.5028 GB, free: 12.37 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.0002655/0.2044, allocations: 244 kB / 0.5031 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.2046, allocations: 94.81 kB / 0.5031 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001464/0.2061, allocations: 0.8751 MB / 0.504 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.2061, allocations: 8 kB / 0.504 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2061, allocations: 4 kB / 0.504 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.2061, allocations: 3.984 kB / 0.504 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002843/0.209, allocations: 1.849 MB / 0.5058 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.209, allocations: 0 / 0.5058 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008415/0.2098, allocations: 171.8 kB / 0.506 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.732e-06/0.2098, allocations: 3.984 kB / 0.506 GB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.087e-05/0.2099, allocations: 19.94 kB / 0.506 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.083e-06/0.2099, allocations: 4 kB / 0.506 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2099, allocations: 0 / 0.506 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.2117, allocations: 1.278 MB / 0.5073 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003152/0.212, allocations: 227.8 kB / 0.5075 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.2122, allocations: 19.94 kB / 0.5075 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004656/0.2126, allocations: 23.98 kB / 0.5075 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.724e-05/0.2127, allocations: 40.59 kB / 0.5076 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-05/0.2128, allocations: 28 kB / 0.5076 GB, free: 7.352 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006332/0.2134, allocations: 0.5107 MB / 0.5081 GB, free: 6.844 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2134, allocations: 0 / 0.5081 GB, free: 6.844 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001489/0.2149, allocations: 464 kB / 0.5085 GB, free: 6.391 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.0002771/0.2152, allocations: 145.4 kB / 0.5087 GB, free: 6.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003791/0.219, allocations: 2.058 MB / 0.5107 GB, free: 4.156 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.219, allocations: 4.5 kB / 0.5107 GB, free: 4.152 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005286/0.2196, allocations: 355.5 kB / 0.511 GB, free: 3.809 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.2207, allocations: 251.9 kB / 0.5113 GB, free: 3.574 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004064/0.2248, allocations: 2.981 MB / 0.5142 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1902/0.415, allocations: 1.196 MB / 0.5153 GB, free: 68.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001048/0.4161, allocations: 243 kB / 0.5156 GB, free: 68.17 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000248/0.4164, allocations: 67.2 kB / 0.5156 GB, free: 68.16 MB / 398.1 MB Notification: Performance of SimCode: time 1.472e-06/0.4164, allocations: 0.5625 kB / 0.5156 GB, free: 68.16 MB / 398.1 MB Notification: Performance of Templates: time 0.03118/0.4476, allocations: 17.87 MB / 0.5331 GB, free: 63.27 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.LocalGeneration.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches