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.001066/0.001066, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.453/1.453, allocations: 205.4 MB / 223.5 MB, free: 9.023 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.0008892/0.0008892, allocations: 85.5 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2528/0.2528, allocations: 38.06 MB / 358.2 MB, free: 1.742 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003275/0.0003278, allocations: 16 kB / 425.3 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2907, allocations: 56.31 MB / 481.6 MB, free: 9.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1276/0.4183, allocations: 94.04 MB / 0.5621 GB, free: 8.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.4186, allocations: 87.81 kB / 0.5622 GB, free: 8.148 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0324/0.451, allocations: 13.23 MB / 0.5751 GB, free: 10.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.451, allocations: 0 / 0.5751 GB, free: 10.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.4511, allocations: 7.938 kB / 0.5751 GB, free: 10.74 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.0007658/0.4518, allocations: 0.4912 MB / 0.5756 GB, free: 10.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.4519, allocations: 12.03 kB / 0.5756 GB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008147/0.4527, allocations: 100.6 kB / 0.5757 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000356/0.4531, allocations: 264.3 kB / 0.576 GB, free: 9.789 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.4531, allocations: 12.38 kB / 0.576 GB, free: 9.777 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.487e-05/0.4532, allocations: 24.36 kB / 0.576 GB, free: 9.754 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005135/0.4537, allocations: 314.4 kB / 0.5763 GB, free: 9.422 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.4537, allocations: 4 kB / 0.5763 GB, free: 9.418 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.4538, allocations: 4 kB / 0.5763 GB, free: 9.414 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.847e-05/0.4538, allocations: 27.97 kB / 0.5763 GB, free: 9.387 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004069/0.4543, allocations: 275.7 kB / 0.5766 GB, free: 9.117 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001642/0.4559, allocations: 1.297 MB / 0.5779 GB, free: 7.719 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003342/0.4563, allocations: 165.2 kB / 0.578 GB, free: 7.539 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.514e-05/0.4564, allocations: 57.77 kB / 0.5781 GB, free: 7.477 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.4564, allocations: 0 / 0.5781 GB, free: 7.477 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.4564, allocations: 42.48 kB / 0.5781 GB, free: 7.426 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 1.804e-06/0.4564, allocations: 0 / 0.5781 GB, free: 7.426 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0009126/0.4573, allocations: 414.8 kB / 0.5785 GB, free: 6.992 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.4574, allocations: 85.45 kB / 0.5786 GB, free: 6.891 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002182/0.4576, allocations: 194.4 kB / 0.5788 GB, free: 6.688 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.4577, allocations: 33.64 kB / 0.5788 GB, free: 6.648 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.461e-05/0.4578, allocations: 163.7 kB / 0.579 GB, free: 6.484 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.718e-05/0.4578, allocations: 43.36 kB / 0.579 GB, free: 6.441 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.809e-06/0.4578, allocations: 8 kB / 0.579 GB, free: 6.434 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.4579, allocations: 322.8 kB / 0.5793 GB, free: 6.109 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.73e-05/0.458, allocations: 47.97 kB / 0.5794 GB, free: 6.062 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.4582, allocations: 156.7 kB / 0.5795 GB, free: 5.863 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.4584, allocations: 220.7 kB / 0.5797 GB, free: 5.602 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.4584, allocations: 3.938 kB / 0.5797 GB, free: 5.598 MB / 410.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004478/0.4589, allocations: 261.9 kB / 0.58 GB, free: 5.332 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.4589, allocations: 5.875 kB / 0.58 GB, free: 5.328 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.459, allocations: 4 kB / 0.58 GB, free: 5.324 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002459/0.4592, allocations: 41.27 kB / 0.58 GB, free: 5.281 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.4594, allocations: 47.92 kB / 0.5801 GB, free: 5.234 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.4604, allocations: 1.343 MB / 0.5814 GB, free: 3.758 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.4606, allocations: 11.91 kB / 0.5814 GB, free: 3.746 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.4606, allocations: 16 kB / 0.5814 GB, free: 3.73 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.0001398/0.4608, allocations: 157.7 kB / 0.5816 GB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.813e-05/0.4608, allocations: 15.81 kB / 0.5816 GB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003333/0.4611, allocations: 180 kB / 0.5818 GB, free: 3.367 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.4612, allocations: 8 kB / 0.5818 GB, free: 3.359 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.4612, allocations: 0 / 0.5818 GB, free: 3.359 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.4612, allocations: 0 / 0.5818 GB, free: 3.359 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00078/0.462, allocations: 0.5485 MB / 0.5823 GB, free: 2.742 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.462, allocations: 4.094 kB / 0.5823 GB, free: 2.738 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.703e-05/0.4621, allocations: 27.86 kB / 0.5823 GB, free: 2.711 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001232/0.4622, allocations: 32.83 kB / 0.5824 GB, free: 2.676 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.4622, allocations: 4 kB / 0.5824 GB, free: 2.672 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.4633, allocations: 1.327 MB / 0.5837 GB, free: 1.215 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.4633, allocations: 4 kB / 0.5837 GB, free: 1.211 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003463/0.4636, allocations: 287.6 kB / 0.5839 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.129e-05/0.4637, allocations: 96.86 kB / 0.584 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.4638, allocations: 4 kB / 0.584 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.4639, allocations: 7.984 kB / 0.584 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.991e-05/0.4639, allocations: 15.98 kB / 0.5841 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.4639, allocations: 4 kB / 0.5841 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001249/0.4641, allocations: 148.1 kB / 0.5842 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4641, allocations: 0 / 0.5842 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003778/0.4645, allocations: 60 kB / 0.5843 GB, free: 0.5508 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.0001393/0.4646, allocations: 99.19 kB / 0.5844 GB, free: 452 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004708/0.4651, allocations: 271 kB / 0.5846 GB, free: 168 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4651, allocations: 0 / 0.5846 GB, free: 168 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002643/0.4654, allocations: 178.8 kB / 0.5848 GB, free: 15.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.4658, allocations: 32.91 kB / 0.5848 GB, free: 15.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008068/0.4666, allocations: 0.5181 MB / 0.5853 GB, free: 15.38 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.4669, allocations: 0.7557 MB / 0.5861 GB, free: 14.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.4671, allocations: 41.5 kB / 0.5861 GB, free: 14.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.37e-05/0.4671, allocations: 23.42 kB / 0.5861 GB, free: 14.54 MB / 426.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4671, allocations: 0 / 0.5861 GB, free: 14.54 MB / 426.7 MB Notification: Performance of Templates: time 0.003925/0.471, allocations: 1.557 MB / 0.5876 GB, free: 12.99 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/jenkins1/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