Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 112.2 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 183.1 kB / 18.67 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1724/0.1724, allocations: 38.04 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 67.89 kB / 458.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3598, allocations: 58.05 MB / 0.5048 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.005929/0.3658, allocations: 4.347 MB / 0.509 GB, free: 4.734 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001494/0.3673, allocations: 0.9295 MB / 0.5099 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.3675, allocations: 11.44 kB / 0.5099 GB, free: 4.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002209/0.3677, allocations: 59.41 kB / 0.51 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005828/0.3684, allocations: 245.2 kB / 0.5102 GB, free: 3.906 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.3686, allocations: 97.67 kB / 0.5103 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005677/0.3692, allocations: 0.4957 MB / 0.5108 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002735/0.3695, allocations: 148.8 kB / 0.5109 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003505/0.3698, allocations: 230.7 kB / 0.5112 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004638/0.3703, allocations: 269.1 kB / 0.5114 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.399e-05/0.3704, allocations: 23.84 kB / 0.5114 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.938e-05/0.3705, allocations: 24.44 kB / 0.5115 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000183/0.3706, allocations: 142.5 kB / 0.5116 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.3708, allocations: 177.2 kB / 0.5118 GB, free: 3.246 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004455/0.3713, allocations: 363.5 kB / 0.5121 GB, free: 3.109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3713, allocations: 1.156 kB / 0.5121 GB, free: 3.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3713, allocations: 0 / 0.5121 GB, free: 3.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.3713, allocations: 0 / 0.5121 GB, free: 3.109 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001068/0.3724, allocations: 0.6663 MB / 0.5128 GB, free: 2.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.3724, allocations: 13.14 kB / 0.5128 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.073e-05/0.3725, allocations: 38.38 kB / 0.5128 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005163/0.373, allocations: 385.9 kB / 0.5132 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.3731, allocations: 24.8 kB / 0.5132 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.687e-05/0.3731, allocations: 23.78 kB / 0.5132 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000525/0.3737, allocations: 353.5 kB / 0.5136 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.3737, allocations: 6.188 kB / 0.5136 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.3737, allocations: 10.53 kB / 0.5136 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.3738, allocations: 25.59 kB / 0.5136 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004477/0.3743, allocations: 242.3 kB / 0.5138 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.3758, allocations: 1.371 MB / 0.5152 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003427/0.3761, allocations: 167.3 kB / 0.5153 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001858/0.3763, allocations: 100.9 kB / 0.5154 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.3764, allocations: 6.125 kB / 0.5154 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.3764, allocations: 32.75 kB / 0.5155 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.3764, allocations: 0 / 0.5155 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001266/0.3777, allocations: 0.7624 MB / 0.5162 GB, free: 188 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.3777, allocations: 80.34 kB / 0.5163 GB, free: 92 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003287/0.378, allocations: 300.5 kB / 0.5166 GB, free: 15.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.3781, allocations: 27.2 kB / 0.5166 GB, free: 15.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.3782, allocations: 216.2 kB / 0.5168 GB, free: 15.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.927e-05/0.3783, allocations: 51.48 kB / 0.5169 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.571e-05/0.3784, allocations: 52.44 kB / 0.5169 GB, free: 15.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3785, allocations: 342.8 kB / 0.5172 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.3787, allocations: 71.88 kB / 0.5173 GB, free: 15.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.3789, allocations: 172.7 kB / 0.5175 GB, free: 15.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003558/0.3792, allocations: 250.9 kB / 0.5177 GB, free: 14.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3792, allocations: 1.094 kB / 0.5177 GB, free: 14.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005826/0.3798, allocations: 323.2 kB / 0.518 GB, free: 14.8 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3798, allocations: 6.438 kB / 0.518 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.3799, allocations: 3.406 kB / 0.518 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000218/0.3801, allocations: 48.19 kB / 0.5181 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002166/0.3803, allocations: 55.09 kB / 0.5181 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.3819, allocations: 1.609 MB / 0.5197 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001665/0.3821, allocations: 15.27 kB / 0.5197 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-05/0.3821, allocations: 9.953 kB / 0.5197 GB, free: 13.31 MB / 398.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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.00022/0.3824, allocations: 171.2 kB / 0.5199 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.882e-05/0.3824, allocations: 23.83 kB / 0.5199 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004468/0.3829, allocations: 245 kB / 0.5201 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.3829, allocations: 2.344 kB / 0.5201 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3829, allocations: 1.344 kB / 0.5201 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3829, allocations: 1.078 kB / 0.5201 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000902/0.3838, allocations: 0.642 MB / 0.5208 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.3838, allocations: 1.062 kB / 0.5208 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.3839, allocations: 21.05 kB / 0.5208 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001982/0.3842, allocations: 63.45 kB / 0.5209 GB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.3842, allocations: 7.703 kB / 0.5209 GB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/0.3856, allocations: 1.605 MB / 0.5224 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3856, allocations: 5.656 kB / 0.5224 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005778/0.3862, allocations: 406.9 kB / 0.5228 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.574e-05/0.3863, allocations: 102.2 kB / 0.5229 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.759e-05/0.3863, allocations: 4.266 kB / 0.5229 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.3865, allocations: 8.797 kB / 0.5229 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/0.3865, allocations: 10.56 kB / 0.5229 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.3865, allocations: 9.234 kB / 0.5229 GB, free: 10.74 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002279/0.3868, allocations: 210.3 kB / 0.5232 GB, free: 10.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3868, allocations: 4.062 kB / 0.5232 GB, free: 10.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004062/0.3872, allocations: 65.31 kB / 0.5232 GB, free: 10.62 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * 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.0001207/0.3873, allocations: 111.9 kB / 0.5233 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005797/0.3879, allocations: 312.8 kB / 0.5236 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3879, allocations: 0 / 0.5236 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003531/0.3883, allocations: 203.2 kB / 0.5238 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.3888, allocations: 63.03 kB / 0.5239 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.39, allocations: 0.7596 MB / 0.5246 GB, free: 9.711 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.3905, allocations: 0.8111 MB / 0.5254 GB, free: 9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.978e-05/0.3905, allocations: 25.78 kB / 0.5254 GB, free: 8.992 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3905, allocations: 0 / 0.5254 GB, free: 8.992 MB / 398.1 MB Notification: Performance of Templates: time 0.008303/0.3988, allocations: 4.893 MB / 0.5302 GB, free: 7.883 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches