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.002069/0.002069, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.7/1.7, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008781/0.0008783, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1672/0.1672, allocations: 37.98 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.143e-05/3.146e-05, allocations: 8 kB / 417.7 MB, free: 29.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1193, allocations: 56.31 MB / 474.1 MB, free: 4.809 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4367/0.5562, allocations: 93.91 MB / 0.5547 GB, free: 9.039 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.5565, allocations: 85 kB / 0.5547 GB, free: 8.992 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02822/0.5847, allocations: 13.15 MB / 0.5676 GB, free: 14.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5847, allocations: 0 / 0.5676 GB, free: 14.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.902e-05/0.5848, allocations: 8 kB / 0.5676 GB, free: 14.24 MB / 378.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.0006621/0.5854, allocations: 481.7 kB / 0.568 GB, free: 13.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.5855, allocations: 12.03 kB / 0.5681 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008327/0.5863, allocations: 103.5 kB / 0.5682 GB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/0.5867, allocations: 263.5 kB / 0.5684 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.5867, allocations: 11.25 kB / 0.5684 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.983e-05/0.5868, allocations: 15.94 kB / 0.5684 GB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004559/0.5873, allocations: 306.8 kB / 0.5687 GB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.5873, allocations: 7.844 kB / 0.5687 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.489e-05/0.5873, allocations: 7.75 kB / 0.5687 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.407e-05/0.5874, allocations: 23.97 kB / 0.5688 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004031/0.5878, allocations: 273 kB / 0.569 GB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.5894, allocations: 1.297 MB / 0.5703 GB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.5897, allocations: 165.9 kB / 0.5704 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.253e-05/0.5898, allocations: 52.89 kB / 0.5705 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.5899, allocations: 0 / 0.5705 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.5899, allocations: 41.56 kB / 0.5705 GB, free: 11.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.313e-06/0.5899, allocations: 0 / 0.5705 GB, free: 11.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.000644/0.5906, allocations: 285.5 kB / 0.5708 GB, free: 11.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.5906, allocations: 81.14 kB / 0.5709 GB, free: 11.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.5908, allocations: 172.5 kB / 0.5711 GB, free: 10.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.5908, allocations: 25.7 kB / 0.5711 GB, free: 10.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.773e-05/0.5909, allocations: 160.8 kB / 0.5712 GB, free: 10.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.775e-05/0.591, allocations: 57.17 kB / 0.5713 GB, free: 10.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.591, allocations: 0 / 0.5713 GB, free: 10.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.5911, allocations: 329.9 kB / 0.5716 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.726e-05/0.5912, allocations: 49.05 kB / 0.5716 GB, free: 10.31 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.5913, allocations: 148.7 kB / 0.5718 GB, free: 10.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/0.5915, allocations: 82.2 kB / 0.5719 GB, free: 10.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.5915, allocations: 0 / 0.5719 GB, free: 10.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004024/0.5919, allocations: 251.3 kB / 0.5721 GB, free: 9.867 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.5919, allocations: 8.438 kB / 0.5721 GB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.5919, allocations: 8 kB / 0.5721 GB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002267/0.5922, allocations: 35.95 kB / 0.5722 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.5923, allocations: 43.91 kB / 0.5722 GB, free: 9.773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.5934, allocations: 1.338 MB / 0.5735 GB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.5935, allocations: 15.81 kB / 0.5735 GB, free: 8.348 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.5935, allocations: 11.62 kB / 0.5735 GB, free: 8.34 MB / 378.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 () * 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 8.74e-05/0.5936, allocations: 113 kB / 0.5736 GB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.596e-05/0.5937, allocations: 19.81 kB / 0.5737 GB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003354/0.594, allocations: 178.7 kB / 0.5738 GB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.594, allocations: 0 / 0.5738 GB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.594, allocations: 7.953 kB / 0.5738 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.5941, allocations: 3.984 kB / 0.5738 GB, free: 8.051 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007425/0.5948, allocations: 0.5611 MB / 0.5744 GB, free: 7.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5948, allocations: 0 / 0.5744 GB, free: 7.496 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.345e-05/0.5949, allocations: 16 kB / 0.5744 GB, free: 7.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001262/0.595, allocations: 36.75 kB / 0.5744 GB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.5951, allocations: 3.812 kB / 0.5744 GB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008821/0.596, allocations: 1.32 MB / 0.5757 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.596, allocations: 160 / 0.5757 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003399/0.5963, allocations: 344.4 kB / 0.5761 GB, free: 5.691 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.195e-05/0.5964, allocations: 96.86 kB / 0.5761 GB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.5964, allocations: 0 / 0.5761 GB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.901e-05/0.5965, allocations: 7.984 kB / 0.5762 GB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.314e-05/0.5966, allocations: 15.42 kB / 0.5762 GB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.5966, allocations: 8 kB / 0.5762 GB, free: 5.555 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.838e-05/0.5967, allocations: 147.5 kB / 0.5763 GB, free: 5.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5967, allocations: 4 kB / 0.5763 GB, free: 5.426 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003329/0.597, allocations: 59.81 kB / 0.5764 GB, free: 5.371 MB / 378.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 () * 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.0001285/0.5972, allocations: 98.94 kB / 0.5765 GB, free: 5.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004542/0.5976, allocations: 265.9 kB / 0.5767 GB, free: 5.031 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5976, allocations: 3.938 kB / 0.5767 GB, free: 5.027 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.5978, allocations: 173.9 kB / 0.5769 GB, free: 4.859 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.5981, allocations: 31.69 kB / 0.5769 GB, free: 4.836 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004755/0.5986, allocations: 293.7 kB / 0.5772 GB, free: 4.547 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.599, allocations: 0.7632 MB / 0.578 GB, free: 3.766 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.5991, allocations: 37.52 kB / 0.578 GB, free: 3.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.683e-05/0.5992, allocations: 19.44 kB / 0.578 GB, free: 3.711 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5992, allocations: 0 / 0.578 GB, free: 3.711 MB / 378.7 MB Notification: Performance of Templates: time 0.004203/0.6034, allocations: 1.556 MB / 0.5795 GB, free: 2.168 MB / 378.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