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.001125/0.001125, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.433/1.433, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008588/0.0008591, allocations: 95.12 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1698/0.1698, allocations: 38.06 MB / 357.2 MB, free: 1.875 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.000311, allocations: 8 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3271, allocations: 56.32 MB / 480.3 MB, free: 9.535 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1711/0.4982, allocations: 122.4 MB / 0.5886 GB, free: 11.97 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003269/0.4985, allocations: 99.95 kB / 0.5887 GB, free: 11.88 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0958/0.5944, allocations: 35.54 MB / 0.6234 GB, free: 7.957 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5944, allocations: 0 / 0.6234 GB, free: 7.957 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.286e-05/0.5945, allocations: 35.92 kB / 0.6234 GB, free: 7.922 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.003449/0.598, allocations: 1.455 MB / 0.6248 GB, free: 6.41 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.598, allocations: 11.97 kB / 0.6248 GB, free: 6.398 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00059/0.5986, allocations: 166.2 kB / 0.625 GB, free: 6.234 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003437/0.6021, allocations: 1.234 MB / 0.6262 GB, free: 4.953 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.533e-05/0.6022, allocations: 78.06 kB / 0.6263 GB, free: 4.875 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003263/0.6025, allocations: 135.8 kB / 0.6264 GB, free: 4.742 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002272/0.6048, allocations: 1.329 MB / 0.6277 GB, free: 3.324 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/0.6049, allocations: 0 / 0.6277 GB, free: 3.324 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.605, allocations: 44 kB / 0.6277 GB, free: 3.281 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/0.6051, allocations: 61.98 kB / 0.6278 GB, free: 3.223 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001856/0.607, allocations: 1.046 MB / 0.6288 GB, free: 2.172 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.007701/0.6147, allocations: 5.141 MB / 0.6338 GB, free: 12.79 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.6158, allocations: 0.7303 MB / 0.6346 GB, free: 12.01 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.843e-05/0.6159, allocations: 20.55 kB / 0.6346 GB, free: 11.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.6159, allocations: 43.12 kB / 0.6346 GB, free: 11.94 MB / 474.7 MB Notification: Performance of pre-optimization done (n=64): time 2.986e-06/0.6159, allocations: 0 / 0.6346 GB, free: 11.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=71): time 0.005525/0.6215, allocations: 2.659 MB / 0.6372 GB, free: 9.184 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/0.6215, allocations: 111.4 kB / 0.6373 GB, free: 9.051 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008429/0.6224, allocations: 0.6343 MB / 0.6379 GB, free: 8.414 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.778e-05/0.6225, allocations: 41.7 kB / 0.638 GB, free: 8.367 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004324/0.6229, allocations: 0.5573 MB / 0.6385 GB, free: 7.801 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/0.6231, allocations: 264.4 kB / 0.6388 GB, free: 7.539 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.983e-05/0.6232, allocations: 16 kB / 0.6388 GB, free: 7.523 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.6233, allocations: 345.9 kB / 0.6391 GB, free: 7.18 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005164/0.6239, allocations: 277.9 kB / 0.6394 GB, free: 6.91 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007287/0.6246, allocations: 0.5324 MB / 0.6399 GB, free: 6.266 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006482/0.6253, allocations: 379 kB / 0.6403 GB, free: 5.895 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.6253, allocations: 8 kB / 0.6403 GB, free: 5.887 MB / 474.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002811/0.6281, allocations: 1.285 MB / 0.6415 GB, free: 4.59 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001373/0.6295, allocations: 3.127 MB / 0.6446 GB, free: 1.215 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.6295, allocations: 11.94 kB / 0.6446 GB, free: 1.203 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001546/0.6311, allocations: 420.5 kB / 0.645 GB, free: 0.7891 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008056/0.6319, allocations: 171.7 kB / 0.6452 GB, free: 0.6211 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2411/0.8731, allocations: 1.151 MB / 0.6463 GB, free: 128.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009825/0.8741, allocations: 34.27 kB / 0.6463 GB, free: 128.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.405e-05/0.8742, allocations: 37.06 kB / 0.6464 GB, free: 128.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.8742, allocations: 4.594 kB / 0.6464 GB, free: 128.1 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002579/0.8768, allocations: 1.154 MB / 0.6475 GB, free: 128.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/0.8768, allocations: 8.969 kB / 0.6475 GB, free: 128.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001433/0.8783, allocations: 398.7 kB / 0.6479 GB, free: 128.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006923/0.879, allocations: 172.1 kB / 0.648 GB, free: 128.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007591/0.8866, allocations: 4.772 MB / 0.6527 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008572/0.8875, allocations: 32.05 kB / 0.6527 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.074e-05/0.8876, allocations: 44.44 kB / 0.6528 GB, free: 126.7 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.0008843/0.8885, allocations: 435.9 kB / 0.6532 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.8886, allocations: 91.84 kB / 0.6533 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001619/0.8903, allocations: 0.8671 MB / 0.6541 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.8903, allocations: 8.25 kB / 0.6541 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.8903, allocations: 4.25 kB / 0.6541 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.8903, allocations: 3.656 kB / 0.6541 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00333/0.8936, allocations: 1.815 MB / 0.6559 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.8937, allocations: 1.375 kB / 0.6559 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009155/0.8946, allocations: 159.6 kB / 0.6561 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.141e-05/0.8946, allocations: 5.188 kB / 0.6561 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-05/0.8947, allocations: 19.45 kB / 0.6561 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/0.8947, allocations: 4.25 kB / 0.6561 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.8947, allocations: 4.016 kB / 0.6561 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001953/0.8967, allocations: 1.283 MB / 0.6573 GB, free: 125.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004015/0.8971, allocations: 222.4 kB / 0.6576 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.8972, allocations: 14.64 kB / 0.6576 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000458/0.8977, allocations: 20.64 kB / 0.6576 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.8978, allocations: 52.09 kB / 0.6576 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.964e-05/0.8978, allocations: 18.72 kB / 0.6577 GB, free: 125.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008726/0.8987, allocations: 0.4956 MB / 0.6581 GB, free: 125.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8987, allocations: 0 / 0.6581 GB, free: 125.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001907/0.9006, allocations: 431.6 kB / 0.6586 GB, free: 125.5 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.000345/0.901, allocations: 195.4 kB / 0.6587 GB, free: 125.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003673/0.9047, allocations: 1.588 MB / 0.6603 GB, free: 125.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.9047, allocations: 0 / 0.6603 GB, free: 125.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006215/0.9053, allocations: 349.2 kB / 0.6606 GB, free: 125.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.9066, allocations: 231.7 kB / 0.6608 GB, free: 125.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005333/0.912, allocations: 3.019 MB / 0.6638 GB, free: 123.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00105/0.913, allocations: 1.212 MB / 0.665 GB, free: 123.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001316/0.9144, allocations: 245.9 kB / 0.6652 GB, free: 123.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000238/0.9146, allocations: 63.09 kB / 0.6653 GB, free: 123.1 MB / 474.7 MB Notification: Performance of SimCode: time 2.254e-06/0.9146, allocations: 0.6562 kB / 0.6653 GB, free: 123.1 MB / 474.7 MB Notification: Performance of Templates: time 0.02398/0.9386, allocations: 14.96 MB / 0.6799 GB, free: 122.3 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