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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001226/0.001226, allocations: 188.9 kB / 17.27 MB, free: 4.504 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.549/1.549, allocations: 205.1 MB / 223.1 MB, free: 8.465 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.001167/0.001166, allocations: 98.75 kB / 270.5 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1727/0.1727, allocations: 38.01 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 51.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.3754, allocations: 55.24 MB / 477.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.006444/0.3818, allocations: 4.991 MB / 482.1 MB, free: 6.387 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002213/0.3841, allocations: 1.171 MB / 483.3 MB, free: 5.555 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002587/0.3844, allocations: 23.5 kB / 483.3 MB, free: 5.547 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002417/0.3846, allocations: 45.7 kB / 483.3 MB, free: 5.523 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005809/0.3853, allocations: 235.8 kB / 483.6 MB, free: 5.395 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000268/0.3855, allocations: 83.78 kB / 483.6 MB, free: 5.352 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009816/0.3865, allocations: 0.804 MB / 484.4 MB, free: 5.105 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.3868, allocations: 123 kB / 484.6 MB, free: 5.066 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003248/0.3872, allocations: 195.9 kB / 484.8 MB, free: 4.984 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004981/0.3877, allocations: 276.8 kB / 485 MB, free: 4.898 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.973e-05/0.3877, allocations: 16.69 kB / 485 MB, free: 4.898 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.503e-05/0.3878, allocations: 24.16 kB / 485.1 MB, free: 4.891 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.388, allocations: 140.1 kB / 485.2 MB, free: 4.852 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/0.3882, allocations: 168.4 kB / 485.4 MB, free: 4.758 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004883/0.3887, allocations: 350.1 kB / 485.7 MB, free: 4.625 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.3887, allocations: 1.938 kB / 485.7 MB, free: 4.625 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.3887, allocations: 0 / 485.7 MB, free: 4.625 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.3887, allocations: 0 / 485.7 MB, free: 4.625 MB / 314.7 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.001182/0.3899, allocations: 0.6568 MB / 486.4 MB, free: 4.102 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.91e-05/0.39, allocations: 10.27 kB / 486.4 MB, free: 4.102 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.226e-05/0.3901, allocations: 34.88 kB / 486.4 MB, free: 4.086 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005642/0.3907, allocations: 365.1 kB / 486.8 MB, free: 3.797 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.3907, allocations: 26.42 kB / 486.8 MB, free: 3.781 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.454e-05/0.3908, allocations: 24.75 kB / 486.8 MB, free: 3.773 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005488/0.3913, allocations: 362.3 kB / 487.2 MB, free: 3.574 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.3913, allocations: 1.062 kB / 487.2 MB, free: 3.574 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.3914, allocations: 10.5 kB / 487.2 MB, free: 3.566 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001252/0.3915, allocations: 30.34 kB / 487.2 MB, free: 3.562 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004013/0.3919, allocations: 238.1 kB / 487.4 MB, free: 3.488 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.3937, allocations: 1.374 MB / 488.8 MB, free: 2.449 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003775/0.3941, allocations: 172.2 kB / 489 MB, free: 2.352 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.3943, allocations: 102.6 kB / 489.1 MB, free: 2.309 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.3944, allocations: 5.125 kB / 489.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.3944, allocations: 41.55 kB / 489.1 MB, free: 2.258 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 1.944e-06/0.3944, allocations: 0 / 489.1 MB, free: 2.258 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.001373/0.3958, allocations: 0.7591 MB / 489.9 MB, free: 1.707 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.3958, allocations: 82.86 kB / 490 MB, free: 1.609 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.3962, allocations: 296.9 kB / 490.3 MB, free: 1.449 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.3962, allocations: 35.02 kB / 490.3 MB, free: 1.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.3963, allocations: 211.5 kB / 490.5 MB, free: 1.234 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.772e-05/0.3964, allocations: 59.94 kB / 490.6 MB, free: 1.188 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.58e-05/0.3965, allocations: 48.56 kB / 490.6 MB, free: 1.156 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3966, allocations: 339.7 kB / 490.9 MB, free: 0.832 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.3968, allocations: 67.66 kB / 491 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.3969, allocations: 164.8 kB / 491.2 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.3973, allocations: 252.6 kB / 491.4 MB, free: 484 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.3973, allocations: 1.156 kB / 491.4 MB, free: 484 kB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005193/0.3978, allocations: 330 kB / 491.7 MB, free: 332 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.3978, allocations: 6.094 kB / 491.7 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3979, allocations: 4.109 kB / 491.7 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002263/0.3981, allocations: 50.7 kB / 491.8 MB, free: 316 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/0.3983, allocations: 47.77 kB / 491.8 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001625/0.3999, allocations: 1.501 MB / 493.3 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.4001, allocations: 10.03 kB / 493.4 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.4002, allocations: 14.41 kB / 493.4 MB, free: 14.93 MB / 330.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 (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.0002745/0.4004, allocations: 175.9 kB / 493.5 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.106e-05/0.4005, allocations: 27.31 kB / 493.6 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006853/0.4012, allocations: 241.3 kB / 493.8 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.4012, allocations: 2.375 kB / 493.8 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.4012, allocations: 9.781 kB / 493.8 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.4013, allocations: 0.75 kB / 493.8 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001312/0.4026, allocations: 0.6418 MB / 494.5 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.4026, allocations: 1.703 kB / 494.5 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.4027, allocations: 20.67 kB / 494.5 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002519/0.403, allocations: 62.58 kB / 494.5 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.403, allocations: 13.14 kB / 494.6 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001348/0.4044, allocations: 1.482 MB / 496 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4044, allocations: 3.938 kB / 496 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005168/0.4096, allocations: 3.738 MB / 499.8 MB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.46e-05/0.4097, allocations: 107.6 kB / 499.9 MB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.758e-05/0.4097, allocations: 12.69 kB / 499.9 MB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.4099, allocations: 4.156 kB / 499.9 MB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.945e-05/0.4099, allocations: 14.34 kB / 499.9 MB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.41, allocations: 4.641 kB / 499.9 MB, free: 9.762 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003002/0.4103, allocations: 209.9 kB / 0.4884 GB, free: 9.652 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4103, allocations: 0 / 0.4884 GB, free: 9.652 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006729/0.4109, allocations: 96.66 kB / 0.4885 GB, free: 9.645 MB / 330.7 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.0001851/0.4111, allocations: 109.1 kB / 0.4886 GB, free: 9.547 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007144/0.4119, allocations: 304.5 kB / 0.4889 GB, free: 9.383 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.4119, allocations: 0.875 kB / 0.4889 GB, free: 9.383 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004101/0.4123, allocations: 208.2 kB / 0.4891 GB, free: 9.246 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005719/0.4129, allocations: 63.97 kB / 0.4891 GB, free: 9.219 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.4147, allocations: 1.148 MB / 0.4903 GB, free: 8.375 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004925/0.4152, allocations: 0.8202 MB / 0.4911 GB, free: 7.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.4154, allocations: 46.31 kB / 0.4911 GB, free: 7.652 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.854e-05/0.4155, allocations: 22.66 kB / 0.4911 GB, free: 7.648 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4155, allocations: 4 kB / 0.4911 GB, free: 7.645 MB / 330.7 MB Notification: Performance of Templates: time 0.008012/0.4235, allocations: 3.415 MB / 0.4945 GB, free: 6.121 MB / 330.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches