Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source") translateModel(PowerSystems.Examples.AC3ph.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00147/0.00147, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.676/1.676, allocations: 205.1 MB / 223.1 MB, free: 8.477 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.001021/0.001021, allocations: 96.05 kB / 270.5 MB, free: 8.453 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1692/0.1692, allocations: 38 MB / 355.8 MB, free: 2.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001051/0.001052, allocations: 51.91 kB / 421.9 MB, free: 37.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3541, allocations: 55.24 MB / 477.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006838/0.361, allocations: 5.047 MB / 482.1 MB, free: 6.34 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003295/0.3644, allocations: 1.766 MB / 483.9 MB, free: 5.105 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004564/0.3649, allocations: 30.66 kB / 483.9 MB, free: 5.09 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008764/0.3658, allocations: 259 kB / 484.2 MB, free: 4.938 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007538/0.3666, allocations: 263.6 kB / 484.5 MB, free: 4.797 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007297/0.3673, allocations: 214.7 kB / 484.7 MB, free: 4.703 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001356/0.3687, allocations: 0.9589 MB / 485.6 MB, free: 4.402 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005028/0.3692, allocations: 225.2 kB / 485.8 MB, free: 4.312 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000519/0.3697, allocations: 238.9 kB / 486.1 MB, free: 4.211 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007534/0.3705, allocations: 374.9 kB / 486.4 MB, free: 4.105 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.788e-05/0.3706, allocations: 23.38 kB / 486.5 MB, free: 4.105 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006617/0.3712, allocations: 243.6 kB / 486.7 MB, free: 4.035 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003363/0.3716, allocations: 218.9 kB / 486.9 MB, free: 3.969 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003012/0.3719, allocations: 242.6 kB / 487.2 MB, free: 3.832 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000969/0.3729, allocations: 0.645 MB / 487.8 MB, free: 3.609 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.3729, allocations: 4 kB / 487.8 MB, free: 3.605 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3729, allocations: 0 / 487.8 MB, free: 3.605 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.3729, allocations: 1.125 kB / 487.8 MB, free: 3.605 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.00177/0.3747, allocations: 0.7695 MB / 488.6 MB, free: 3.027 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.3748, allocations: 10.28 kB / 488.6 MB, free: 3.027 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006707/0.3754, allocations: 90.11 kB / 488.7 MB, free: 3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007453/0.3762, allocations: 408.2 kB / 489.1 MB, free: 2.699 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.345e-05/0.3762, allocations: 28.14 kB / 489.1 MB, free: 2.684 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.3764, allocations: 51.86 kB / 489.1 MB, free: 2.664 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.3776, allocations: 0.6909 MB / 489.8 MB, free: 2.352 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.3776, allocations: 5.219 kB / 489.8 MB, free: 2.348 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.468e-05/0.3777, allocations: 21.08 kB / 489.9 MB, free: 2.332 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002379/0.3779, allocations: 65.78 kB / 489.9 MB, free: 2.324 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.379, allocations: 0.6668 MB / 490.6 MB, free: 2.125 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003852/0.3829, allocations: 2.652 MB / 493.2 MB, free: 348 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006834/0.3836, allocations: 317.2 kB / 493.6 MB, free: 204 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003386/0.384, allocations: 216.6 kB / 493.8 MB, free: 108 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.894e-05/0.384, allocations: 4.125 kB / 493.8 MB, free: 108 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.3841, allocations: 34.05 kB / 493.8 MB, free: 68 kB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 3.857e-06/0.3841, allocations: 0 / 493.8 MB, free: 68 kB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.002483/0.3866, allocations: 1.295 MB / 495.1 MB, free: 15.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/0.3866, allocations: 85.39 kB / 495.2 MB, free: 15.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003736/0.387, allocations: 294.5 kB / 495.5 MB, free: 15.11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.765e-05/0.3871, allocations: 31.14 kB / 495.5 MB, free: 15.08 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.3873, allocations: 248.3 kB / 495.7 MB, free: 14.88 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.3874, allocations: 136.4 kB / 495.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.3876, allocations: 95.03 kB / 496 MB, free: 14.71 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.3877, allocations: 346.5 kB / 496.3 MB, free: 14.38 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000314/0.3881, allocations: 191.4 kB / 496.5 MB, free: 14.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004179/0.3885, allocations: 324.9 kB / 496.8 MB, free: 14.1 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008184/0.3893, allocations: 0.5563 MB / 497.4 MB, free: 13.77 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.3893, allocations: 2.062 kB / 497.4 MB, free: 13.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001414/0.3907, allocations: 0.6775 MB / 498 MB, free: 13.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.3908, allocations: 7.031 kB / 498.1 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009252/0.3917, allocations: 494.6 kB / 498.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004523/0.3922, allocations: 114.7 kB / 498.6 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002999/0.3925, allocations: 77.08 kB / 498.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002783/0.3953, allocations: 3.033 MB / 0.49 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003024/0.3956, allocations: 23.47 kB / 0.49 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.859e-05/0.3957, allocations: 23.41 kB / 0.49 GB, free: 10.25 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * 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 initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003983/0.3961, allocations: 217 kB / 0.4902 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.3962, allocations: 39.25 kB / 0.4903 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009285/0.3971, allocations: 466.6 kB / 0.4907 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.064e-05/0.3972, allocations: 13.19 kB / 0.4907 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.3972, allocations: 1.125 kB / 0.4907 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.3972, allocations: 9.078 kB / 0.4908 GB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.3991, allocations: 1.019 MB / 0.4917 GB, free: 9.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.3991, allocations: 1.375 kB / 0.4917 GB, free: 9.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003602/0.3994, allocations: 65.11 kB / 0.4918 GB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.3995, allocations: 2.75 kB / 0.4918 GB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.874e-05/0.3995, allocations: 11.92 kB / 0.4918 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.3995, allocations: 6.281 kB / 0.4918 GB, free: 9.062 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.3995, allocations: 1.625 kB / 0.4918 GB, free: 9.062 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003122/0.4027, allocations: 2.318 MB / 0.4941 GB, free: 7.297 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.4028, allocations: 133 kB / 0.4942 GB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.524e-05/0.4029, allocations: 12.27 kB / 0.4942 GB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.4031, allocations: 19.23 kB / 0.4943 GB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/0.4032, allocations: 16.62 kB / 0.4943 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.232e-05/0.4032, allocations: 11.69 kB / 0.4943 GB, free: 7.141 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002794/0.4035, allocations: 208.4 kB / 0.4945 GB, free: 7.004 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4035, allocations: 0 / 0.4945 GB, free: 7.004 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000765/0.4043, allocations: 132 kB / 0.4946 GB, free: 6.992 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.0002582/0.4045, allocations: 142.5 kB / 0.4947 GB, free: 6.871 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.4057, allocations: 0.7133 MB / 0.4954 GB, free: 6.418 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4057, allocations: 1.375 kB / 0.4954 GB, free: 6.418 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003162/0.4061, allocations: 209.1 kB / 0.4956 GB, free: 6.328 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005203/0.4066, allocations: 57.45 kB / 0.4957 GB, free: 6.301 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.4089, allocations: 1.561 MB / 0.4972 GB, free: 5.168 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00056/0.4095, allocations: 0.8893 MB / 0.4981 GB, free: 4.375 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003219/0.4098, allocations: 107.4 kB / 0.4982 GB, free: 4.336 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.754e-05/0.4099, allocations: 33.75 kB / 0.4982 GB, free: 4.324 MB / 330.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4099, allocations: 0 / 0.4982 GB, free: 4.324 MB / 330.7 MB Notification: Performance of Templates: time 0.008845/0.4188, allocations: 4.395 MB / 0.5025 GB, free: 372 kB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches