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.001579/0.001579, allocations: 176.5 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008245/0.0008245, allocations: 82.62 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1775/0.1775, allocations: 37.99 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.738e-05/2.741e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1662, allocations: 56.33 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5855/0.7519, allocations: 93.25 MB / 0.547 GB, free: 1.691 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003397/0.7523, allocations: 79.95 kB / 0.5471 GB, free: 1.613 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03903/0.7914, allocations: 13.08 MB / 0.5599 GB, free: 4.383 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.7915, allocations: 0 / 0.5599 GB, free: 4.383 MB / 395.1 MB Notification: Performance of Transformations before backend: time 3.835e-05/0.7915, allocations: 8 kB / 0.5599 GB, free: 4.375 MB / 395.1 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.001399/0.7929, allocations: 478.2 kB / 0.5603 GB, free: 3.863 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.253e-05/0.793, allocations: 8.031 kB / 0.5603 GB, free: 3.855 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/0.7943, allocations: 103.5 kB / 0.5604 GB, free: 3.754 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007069/0.795, allocations: 259.2 kB / 0.5607 GB, free: 3.457 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/0.7951, allocations: 11.98 kB / 0.5607 GB, free: 3.445 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.123e-05/0.7952, allocations: 8 kB / 0.5607 GB, free: 3.438 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000557/0.7958, allocations: 192.4 kB / 0.5609 GB, free: 3.25 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000582/0.7964, allocations: 286.3 kB / 0.5612 GB, free: 2.945 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.517e-05/0.7964, allocations: 3.906 kB / 0.5612 GB, free: 2.941 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.31e-05/0.7965, allocations: 4 kB / 0.5612 GB, free: 2.938 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001015/0.7966, allocations: 19.98 kB / 0.5612 GB, free: 2.918 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002516/0.7991, allocations: 1.256 MB / 0.5624 GB, free: 1.574 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004808/0.7996, allocations: 157.2 kB / 0.5626 GB, free: 1.402 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.7997, allocations: 49.77 kB / 0.5626 GB, free: 1.348 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.126e-05/0.7998, allocations: 11.94 kB / 0.5626 GB, free: 1.336 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/0.7999, allocations: 34.56 kB / 0.5627 GB, free: 1.293 MB / 395.1 MB Notification: Performance of pre-optimization done (n=13): time 3.306e-06/0.7999, allocations: 0 / 0.5627 GB, free: 1.293 MB / 395.1 MB Notification: Performance of matching and sorting (n=14): time 0.000989/0.8009, allocations: 265.3 kB / 0.5629 GB, free: 1.023 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.497e-05/0.801, allocations: 81.11 kB / 0.563 GB, free: 0.9258 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000245/0.8012, allocations: 151.5 kB / 0.5631 GB, free: 0.7695 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.8013, allocations: 25.73 kB / 0.5632 GB, free: 0.7383 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.8014, allocations: 171.7 kB / 0.5633 GB, free: 0.5664 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.8015, allocations: 47.3 kB / 0.5634 GB, free: 0.5195 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.846e-06/0.8015, allocations: 0 / 0.5634 GB, free: 0.5195 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.8017, allocations: 326.8 kB / 0.5637 GB, free: 196 kB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.663e-05/0.8018, allocations: 43.98 kB / 0.5637 GB, free: 152 kB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000212/0.8021, allocations: 140.8 kB / 0.5639 GB, free: 15.96 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.8022, allocations: 67.92 kB / 0.5639 GB, free: 15.9 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.8022, allocations: 0 / 0.5639 GB, free: 15.9 MB / 411.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004956/0.8027, allocations: 236.2 kB / 0.5641 GB, free: 15.66 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.54e-05/0.8028, allocations: 8 kB / 0.5641 GB, free: 15.65 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.8028, allocations: 4 kB / 0.5642 GB, free: 15.65 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002965/0.8031, allocations: 36.83 kB / 0.5642 GB, free: 15.61 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.8033, allocations: 40.3 kB / 0.5642 GB, free: 15.57 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.8047, allocations: 1.291 MB / 0.5655 GB, free: 14.16 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001475/0.8048, allocations: 12.14 kB / 0.5655 GB, free: 14.15 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.8049, allocations: 8 kB / 0.5655 GB, free: 14.14 MB / 411.1 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 () * 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 (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001461/0.805, allocations: 124.8 kB / 0.5656 GB, free: 14.02 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.657e-05/0.8051, allocations: 15.81 kB / 0.5656 GB, free: 14 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003787/0.8055, allocations: 160.4 kB / 0.5658 GB, free: 13.84 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.8055, allocations: 0 / 0.5658 GB, free: 13.84 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.8055, allocations: 0 / 0.5658 GB, free: 13.84 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.8055, allocations: 8 kB / 0.5658 GB, free: 13.83 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008152/0.8063, allocations: 0.502 MB / 0.5663 GB, free: 13.27 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.8064, allocations: 4 kB / 0.5663 GB, free: 13.27 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.41e-05/0.8064, allocations: 16.09 kB / 0.5663 GB, free: 13.25 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001498/0.8066, allocations: 44.72 kB / 0.5664 GB, free: 13.2 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.8066, allocations: 4 kB / 0.5664 GB, free: 13.2 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/0.8077, allocations: 1.264 MB / 0.5676 GB, free: 11.82 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.8077, allocations: 4.031 kB / 0.5676 GB, free: 11.82 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004168/0.8082, allocations: 318.5 kB / 0.5679 GB, free: 11.45 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.591e-05/0.8083, allocations: 96.91 kB / 0.568 GB, free: 11.34 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.8083, allocations: 0 / 0.568 GB, free: 11.34 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.923e-05/0.8084, allocations: 4 kB / 0.568 GB, free: 11.33 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/0.8084, allocations: 23.88 kB / 0.568 GB, free: 11.31 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.8085, allocations: 4 kB / 0.568 GB, free: 11.3 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001257/0.8086, allocations: 136.2 kB / 0.5682 GB, free: 11.17 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8086, allocations: 0 / 0.5682 GB, free: 11.17 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0004245/0.809, allocations: 55.94 kB / 0.5682 GB, free: 11.12 MB / 411.1 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 () * 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 (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002138/0.8093, allocations: 97.12 kB / 0.5683 GB, free: 11.02 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0005026/0.8098, allocations: 237.6 kB / 0.5685 GB, free: 10.77 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.8098, allocations: 4 kB / 0.5685 GB, free: 10.77 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000228/0.81, allocations: 169.6 kB / 0.5687 GB, free: 10.59 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.8103, allocations: 25.25 kB / 0.5687 GB, free: 10.57 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000632/0.811, allocations: 288.9 kB / 0.569 GB, free: 10.25 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.8114, allocations: 0.7635 MB / 0.5697 GB, free: 9.461 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.8115, allocations: 41.81 kB / 0.5698 GB, free: 9.418 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.114e-05/0.8116, allocations: 15.44 kB / 0.5698 GB, free: 9.402 MB / 411.1 MB Notification: Performance of SimCode: time 2.41e-07/0.8116, allocations: 0 / 0.5698 GB, free: 9.402 MB / 411.1 MB Notification: Performance of Templates: time 0.004999/0.8166, allocations: 1.429 MB / 0.5712 GB, free: 7.977 MB / 411.1 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/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