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.001073/0.001073, allocations: 180 kB / 16.39 MB, free: 5.762 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.484/1.484, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0008755/0.0008754, allocations: 103 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.185/0.185, allocations: 38.06 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003129/0.000313, allocations: 8 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.296, allocations: 56.32 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1437/0.4398, allocations: 94 MB / 0.5609 GB, free: 8.418 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/0.4401, allocations: 87.94 kB / 0.5609 GB, free: 8.332 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03216/0.4722, allocations: 13.21 MB / 0.5738 GB, free: 10.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4723, allocations: 0 / 0.5738 GB, free: 10.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.4723, allocations: 8 kB / 0.5738 GB, free: 10.94 MB / 410.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.0007825/0.4731, allocations: 0.4949 MB / 0.5743 GB, free: 10.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.4732, allocations: 8.031 kB / 0.5743 GB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008027/0.474, allocations: 99.64 kB / 0.5744 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004038/0.4744, allocations: 267.1 kB / 0.5747 GB, free: 9.984 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.4744, allocations: 15.98 kB / 0.5747 GB, free: 9.969 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.131e-05/0.4745, allocations: 20 kB / 0.5747 GB, free: 9.949 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004767/0.475, allocations: 303.8 kB / 0.575 GB, free: 9.629 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.475, allocations: 3.938 kB / 0.575 GB, free: 9.625 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.825e-05/0.475, allocations: 11.98 kB / 0.575 GB, free: 9.613 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.69e-05/0.4751, allocations: 23.98 kB / 0.5751 GB, free: 9.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004087/0.4755, allocations: 275.7 kB / 0.5753 GB, free: 9.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.4773, allocations: 1.301 MB / 0.5766 GB, free: 7.918 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003442/0.4776, allocations: 165.2 kB / 0.5767 GB, free: 7.738 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.945e-05/0.4777, allocations: 4 kB / 0.5767 GB, free: 7.734 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.4777, allocations: 38.48 kB / 0.5768 GB, free: 7.688 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 2.315e-06/0.4777, allocations: 0 / 0.5768 GB, free: 7.688 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0009509/0.4787, allocations: 422.2 kB / 0.5772 GB, free: 7.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.4787, allocations: 81.09 kB / 0.5773 GB, free: 7.152 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.4789, allocations: 173.5 kB / 0.5774 GB, free: 6.973 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.4789, allocations: 29.7 kB / 0.5775 GB, free: 6.938 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.841e-05/0.479, allocations: 163.8 kB / 0.5776 GB, free: 6.773 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.966e-05/0.4791, allocations: 47.5 kB / 0.5777 GB, free: 6.727 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/0.4791, allocations: 8 kB / 0.5777 GB, free: 6.719 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.4793, allocations: 338.8 kB / 0.578 GB, free: 6.379 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.826e-05/0.4793, allocations: 43.97 kB / 0.578 GB, free: 6.336 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.4795, allocations: 152.7 kB / 0.5782 GB, free: 6.141 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.4796, allocations: 80.17 kB / 0.5783 GB, free: 6.062 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4796, allocations: 0 / 0.5783 GB, free: 6.062 MB / 410.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004199/0.48, allocations: 254.3 kB / 0.5785 GB, free: 5.805 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.4801, allocations: 11.06 kB / 0.5785 GB, free: 5.797 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.4801, allocations: 4 kB / 0.5785 GB, free: 5.793 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002448/0.4803, allocations: 40.83 kB / 0.5785 GB, free: 5.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.4805, allocations: 39.92 kB / 0.5786 GB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.4818, allocations: 1.354 MB / 0.5799 GB, free: 4.227 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.4819, allocations: 15.95 kB / 0.5799 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.4819, allocations: 15.92 kB / 0.5799 GB, free: 4.195 MB / 410.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 (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.0001593/0.4821, allocations: 162 kB / 0.5801 GB, free: 4.027 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.756e-05/0.4821, allocations: 15.81 kB / 0.5801 GB, free: 4.012 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003713/0.4825, allocations: 179.9 kB / 0.5803 GB, free: 3.824 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4825, allocations: 0 / 0.5803 GB, free: 3.824 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4826, allocations: 7.953 kB / 0.5803 GB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.4826, allocations: 0 / 0.5803 GB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008229/0.4834, allocations: 0.5523 MB / 0.5808 GB, free: 3.195 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4834, allocations: 0 / 0.5808 GB, free: 3.195 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.904e-05/0.4835, allocations: 23.92 kB / 0.5809 GB, free: 3.172 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001347/0.4836, allocations: 32.83 kB / 0.5809 GB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.4837, allocations: 8.094 kB / 0.5809 GB, free: 3.129 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.4847, allocations: 1.327 MB / 0.5822 GB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4847, allocations: 0 / 0.5822 GB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000419/0.4851, allocations: 342.4 kB / 0.5825 GB, free: 1.277 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.471e-05/0.4852, allocations: 100.9 kB / 0.5826 GB, free: 1.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.4852, allocations: 4 kB / 0.5826 GB, free: 1.156 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.4853, allocations: 4 kB / 0.5826 GB, free: 1.152 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.217e-05/0.4854, allocations: 11.98 kB / 0.5826 GB, free: 1.141 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.4854, allocations: 8 kB / 0.5826 GB, free: 1.133 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001178/0.4855, allocations: 148.1 kB / 0.5828 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4855, allocations: 0 / 0.5828 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003641/0.4859, allocations: 56 kB / 0.5828 GB, free: 0.9336 MB / 410.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 (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.0001303/0.486, allocations: 107.2 kB / 0.5829 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004807/0.4865, allocations: 267.6 kB / 0.5832 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4865, allocations: 0 / 0.5832 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002147/0.4868, allocations: 178.5 kB / 0.5834 GB, free: 368 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.487, allocations: 36.02 kB / 0.5834 GB, free: 332 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007566/0.4878, allocations: 0.5111 MB / 0.5839 GB, free: 15.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.4881, allocations: 0.7678 MB / 0.5846 GB, free: 14.97 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.4883, allocations: 41.5 kB / 0.5847 GB, free: 14.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.52e-05/0.4883, allocations: 15.44 kB / 0.5847 GB, free: 14.92 MB / 426.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4883, allocations: 4 kB / 0.5847 GB, free: 14.91 MB / 426.7 MB Notification: Performance of Templates: time 0.004323/0.4926, allocations: 1.534 MB / 0.5862 GB, free: 13.38 MB / 426.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/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