Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") translateModel(PowerSystems.Examples.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001737/0.001737, 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.79/1.79, allocations: 205.1 MB / 223.1 MB, free: 8.469 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.001034/0.001034, allocations: 108.9 kB / 270.5 MB, free: 8.422 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1681/0.1681, allocations: 38.01 MB / 355.8 MB, free: 2.918 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 51.92 kB / 421.9 MB, free: 37.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3692, allocations: 55.24 MB / 477.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.006263/0.3755, allocations: 3.683 MB / 480.8 MB, free: 7.305 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00249/0.378, allocations: 1.548 MB / 482.3 MB, free: 6.223 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.3782, allocations: 11.09 kB / 482.3 MB, free: 6.219 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.3793, allocations: 252.7 kB / 482.6 MB, free: 6.062 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008462/0.3801, allocations: 254.8 kB / 482.8 MB, free: 5.938 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003956/0.3805, allocations: 97.95 kB / 482.9 MB, free: 5.887 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009666/0.3815, allocations: 0.5665 MB / 483.5 MB, free: 5.719 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003992/0.3819, allocations: 139.3 kB / 483.6 MB, free: 5.664 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002523/0.3822, allocations: 127.1 kB / 483.8 MB, free: 5.609 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003161/0.3825, allocations: 160.5 kB / 483.9 MB, free: 5.551 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.047e-05/0.3825, allocations: 12.69 kB / 483.9 MB, free: 5.551 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007569/0.3833, allocations: 382.5 kB / 484.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001498/0.3835, allocations: 100 kB / 484.4 MB, free: 5.375 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.3836, allocations: 96.05 kB / 484.5 MB, free: 5.324 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005328/0.3841, allocations: 365.3 kB / 484.8 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3841, allocations: 4 kB / 484.9 MB, free: 5.191 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3842, allocations: 0 / 484.9 MB, free: 5.191 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.3842, allocations: 1.875 kB / 484.9 MB, free: 5.191 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000692/0.3849, allocations: 0.5052 MB / 485.4 MB, free: 4.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3849, allocations: 10.61 kB / 485.4 MB, free: 4.73 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009282/0.3858, allocations: 97.88 kB / 485.5 MB, free: 4.707 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000392/0.3862, allocations: 262.1 kB / 485.7 MB, free: 4.465 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/0.3863, allocations: 12.62 kB / 485.7 MB, free: 4.461 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.893e-05/0.3864, allocations: 22.94 kB / 485.8 MB, free: 4.449 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005809/0.3869, allocations: 321 kB / 486.1 MB, free: 4.277 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.387, allocations: 5.656 kB / 486.1 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.387, allocations: 5.406 kB / 486.1 MB, free: 4.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.454e-05/0.387, allocations: 15.97 kB / 486.1 MB, free: 4.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005257/0.3876, allocations: 291.4 kB / 486.4 MB, free: 4.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.3894, allocations: 1.296 MB / 487.7 MB, free: 3.184 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006086/0.39, allocations: 208.7 kB / 487.9 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.3901, allocations: 60.45 kB / 487.9 MB, free: 3.059 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.519e-05/0.3901, allocations: 7.391 kB / 487.9 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.3902, allocations: 32.69 kB / 488 MB, free: 3.016 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 1.443e-06/0.3902, allocations: 0 / 488 MB, free: 3.016 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.001055/0.3912, allocations: 442.3 kB / 488.4 MB, free: 2.742 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.3913, allocations: 79 kB / 488.5 MB, free: 2.648 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/0.3915, allocations: 186.7 kB / 488.7 MB, free: 2.523 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.3916, allocations: 31.5 kB / 488.7 MB, free: 2.488 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3917, allocations: 165.3 kB / 488.9 MB, free: 2.344 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.087e-05/0.3917, allocations: 49.8 kB / 488.9 MB, free: 2.305 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.275e-05/0.3918, allocations: 50.83 kB / 489 MB, free: 2.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.1e-05/0.3919, allocations: 327.7 kB / 489.3 MB, free: 1.949 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.507e-05/0.392, allocations: 52.66 kB / 489.3 MB, free: 1.934 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001665/0.3922, allocations: 153.9 kB / 489.5 MB, free: 1.785 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002806/0.3925, allocations: 231.8 kB / 489.7 MB, free: 1.598 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.3925, allocations: 1.188 kB / 489.7 MB, free: 1.598 MB / 314.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004991/0.393, allocations: 261.6 kB / 490 MB, free: 1.477 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.393, allocations: 8.719 kB / 490 MB, free: 1.477 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.393, allocations: 7.469 kB / 490 MB, free: 1.473 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002785/0.3933, allocations: 38.42 kB / 490 MB, free: 1.461 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.3935, allocations: 41.2 kB / 490.1 MB, free: 1.457 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009947/0.3945, allocations: 1.339 MB / 491.4 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.3946, allocations: 10.94 kB / 491.4 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.3947, allocations: 8.453 kB / 491.4 MB, free: 124 kB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 23 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001984/0.3949, allocations: 158 kB / 491.6 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.661e-05/0.3949, allocations: 19.86 kB / 491.6 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005031/0.3954, allocations: 187.4 kB / 491.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.3954, allocations: 3.609 kB / 491.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.3955, allocations: 5.688 kB / 491.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3955, allocations: 0.6094 kB / 491.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.3965, allocations: 0.5634 MB / 492.3 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.3965, allocations: 1.438 kB / 492.3 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.494e-05/0.3966, allocations: 19.28 kB / 492.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001579/0.3968, allocations: 31.45 kB / 492.4 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.3968, allocations: 7.156 kB / 492.4 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.3981, allocations: 1.319 MB / 493.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3981, allocations: 9.359 kB / 493.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.3992, allocations: 0.9227 MB / 494.7 MB, free: 13.26 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.487e-05/0.3993, allocations: 92.62 kB / 494.7 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.3993, allocations: 1.875 kB / 494.7 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.3995, allocations: 7.766 kB / 494.8 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.653e-05/0.3996, allocations: 14.38 kB / 494.8 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-05/0.3996, allocations: 8.625 kB / 494.8 MB, free: 13.15 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001634/0.3997, allocations: 147.2 kB / 494.9 MB, free: 13.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.164e-06/0.3998, allocations: 0 / 494.9 MB, free: 13.05 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004885/0.4003, allocations: 56.59 kB / 495 MB, free: 13.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001581/0.4004, allocations: 106.5 kB / 495.1 MB, free: 12.94 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006646/0.4011, allocations: 263 kB / 495.3 MB, free: 12.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4011, allocations: 0.875 kB / 495.3 MB, free: 12.79 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000293/0.4014, allocations: 178.5 kB / 495.5 MB, free: 12.65 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004231/0.4018, allocations: 34.45 kB / 495.5 MB, free: 12.64 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.4032, allocations: 0.6752 MB / 496.2 MB, free: 12.13 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005821/0.4038, allocations: 0.7604 MB / 497 MB, free: 11.43 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000167/0.4039, allocations: 43.75 kB / 497 MB, free: 11.42 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.672e-05/0.404, allocations: 17.94 kB / 497 MB, free: 11.41 MB / 330.7 MB Notification: Performance of SimCode: time 3.91e-07/0.404, allocations: 0 / 497 MB, free: 11.41 MB / 330.7 MB Notification: Performance of Templates: time 0.005657/0.4097, allocations: 1.663 MB / 498.7 MB, free: 11.26 MB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches