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.0008674/0.0008674, allocations: 95.67 kB / 16.3 MB, free: 5.539 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.0009284/0.0009285, allocations: 180.5 kB / 17.2 MB, free: 5.473 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.188/1.188, allocations: 223.2 MB / 241.1 MB, free: 14.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1564/0.1564, allocations: 38.08 MB / 330.3 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002904/0.0002904, allocations: 8 kB / 400 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09257, allocations: 59.16 MB / 459.1 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01024/0.1028, allocations: 8.967 MB / 468.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005777/0.1087, allocations: 3.439 MB / 471.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009102/0.1096, allocations: 59.62 kB / 471.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007598/0.1104, allocations: 282.2 kB / 471.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001581/0.112, allocations: 0.6815 MB / 472.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009709/0.1129, allocations: 426.4 kB / 473 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001446/0.1144, allocations: 1.015 MB / 474 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001073/0.1155, allocations: 0.8684 MB / 474.8 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000678/0.1162, allocations: 0.5253 MB / 475.4 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007506/0.1169, allocations: 0.5525 MB / 475.9 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.787e-05/0.117, allocations: 52 kB / 476 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004538/0.1175, allocations: 271.7 kB / 476.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003402/0.1179, allocations: 374.9 kB / 476.6 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.1181, allocations: 265 kB / 476.9 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001291/0.1194, allocations: 1.527 MB / 478.4 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.1194, allocations: 0 / 478.4 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1194, allocations: 0 / 478.4 MB, free: 4.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.1194, allocations: 0 / 478.4 MB, free: 4.039 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.002693/0.1221, allocations: 1.414 MB / 479.8 MB, free: 2.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.1222, allocations: 16.02 kB / 479.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006543/0.1228, allocations: 186.2 kB / 480 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001439/0.1243, allocations: 0.883 MB / 480.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.1244, allocations: 78 kB / 481 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000243/0.1246, allocations: 131.8 kB / 481.1 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001898/0.1265, allocations: 1.333 MB / 482.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.1265, allocations: 7.938 kB / 482.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.605e-05/0.1267, allocations: 43.91 kB / 482.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.993e-05/0.1268, allocations: 73.97 kB / 482.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.1284, allocations: 1.066 MB / 483.6 MB, free: 14.64 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.000124777475384046 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006021/0.1344, allocations: 5.149 MB / 488.8 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.1355, allocations: 0.7625 MB / 489.5 MB, free: 8.438 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.533e-05/0.1355, allocations: 16.56 kB / 489.5 MB, free: 8.422 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.1356, allocations: 39.12 kB / 489.6 MB, free: 8.375 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.074e-06/0.1356, allocations: 0 / 489.6 MB, free: 8.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.004819/0.1404, allocations: 2.692 MB / 492.3 MB, free: 5.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.164e-05/0.1405, allocations: 141.1 kB / 492.4 MB, free: 5.422 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008062/0.1413, allocations: 0.7431 MB / 493.2 MB, free: 4.668 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.795e-05/0.1414, allocations: 41.7 kB / 493.2 MB, free: 4.621 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003745/0.1418, allocations: 0.565 MB / 493.8 MB, free: 4.047 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001738/0.1419, allocations: 244.4 kB / 494 MB, free: 3.805 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-05/0.142, allocations: 20 kB / 494 MB, free: 3.785 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.1421, allocations: 345.9 kB / 494.4 MB, free: 3.441 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004646/0.1426, allocations: 293.8 kB / 494.6 MB, free: 3.152 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006138/0.1432, allocations: 0.5412 MB / 495.2 MB, free: 2.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005774/0.1438, allocations: 395 kB / 495.6 MB, free: 2.113 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1438, allocations: 0 / 495.6 MB, free: 2.113 MB / 366.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002566/0.1464, allocations: 1.356 MB / 496.9 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001099/0.1475, allocations: 3.143 MB / 0.4883 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.1475, allocations: 8 kB / 0.4884 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.1489, allocations: 440.5 kB / 0.4888 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006151/0.1495, allocations: 171.7 kB / 0.4889 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007712/0.1572, allocations: 5.108 MB / 0.4939 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006757/0.1579, allocations: 39.92 kB / 0.494 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.777e-05/0.158, allocations: 40 kB / 0.494 GB, free: 7.434 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.235e-06/0.158, allocations: 4 kB / 0.494 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002122/0.1601, allocations: 1.14 MB / 0.4951 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.1602, allocations: 8 kB / 0.4951 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/0.1614, allocations: 405 kB / 0.4955 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006139/0.162, allocations: 171.7 kB / 0.4957 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006615/0.1686, allocations: 4.772 MB / 0.5003 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008122/0.1695, allocations: 35.98 kB / 0.5004 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.979e-05/0.1695, allocations: 40.31 kB / 0.5004 GB, free: 0.7227 MB / 382.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 (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.0009568/0.1705, allocations: 436.7 kB / 0.5008 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.1707, allocations: 94.88 kB / 0.5009 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1769/0.3476, allocations: 0.8667 MB / 0.5018 GB, free: 53.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.788e-05/0.3476, allocations: 10.06 kB / 0.5018 GB, free: 53.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.3477, allocations: 0.875 kB / 0.5018 GB, free: 53.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.3477, allocations: 8.781 kB / 0.5018 GB, free: 53.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003428/0.3511, allocations: 1.863 MB / 0.5036 GB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3511, allocations: 2.125 kB / 0.5036 GB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007944/0.3519, allocations: 168.5 kB / 0.5038 GB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.767e-06/0.352, allocations: 4.281 kB / 0.5038 GB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.352, allocations: 18.27 kB / 0.5038 GB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.762e-06/0.352, allocations: 5.125 kB / 0.5038 GB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.352, allocations: 2.094 kB / 0.5038 GB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/0.3537, allocations: 1.311 MB / 0.5051 GB, free: 53.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003782/0.3541, allocations: 226.3 kB / 0.5053 GB, free: 53.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.3542, allocations: 23.34 kB / 0.5053 GB, free: 53.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004372/0.3547, allocations: 28.81 kB / 0.5053 GB, free: 53.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.3548, allocations: 46.69 kB / 0.5054 GB, free: 53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.404e-05/0.3548, allocations: 22.09 kB / 0.5054 GB, free: 53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007125/0.3556, allocations: 0.5074 MB / 0.5059 GB, free: 52.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.072e-06/0.3556, allocations: 0 / 0.5059 GB, free: 52.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00162/0.3572, allocations: 467.6 kB / 0.5063 GB, free: 52.73 MB / 382.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 (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.0003101/0.3575, allocations: 142.6 kB / 0.5065 GB, free: 52.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003201/0.3607, allocations: 1.91 MB / 0.5083 GB, free: 51.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.3607, allocations: 1.125 kB / 0.5084 GB, free: 51.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005522/0.3613, allocations: 352.2 kB / 0.5087 GB, free: 51.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009969/0.3623, allocations: 226.8 kB / 0.5089 GB, free: 51.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003856/0.3662, allocations: 3.031 MB / 0.5119 GB, free: 50 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008716/0.3671, allocations: 1.231 MB / 0.5131 GB, free: 49.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008598/0.3679, allocations: 246.8 kB / 0.5133 GB, free: 49.17 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001906/0.3681, allocations: 71.94 kB / 0.5134 GB, free: 49.16 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3681, allocations: 0 / 0.5134 GB, free: 49.16 MB / 382.1 MB Notification: Performance of Templates: time 0.02294/0.3911, allocations: 16.38 MB / 0.5294 GB, free: 41.43 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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