Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001607/0.001607, allocations: 186.5 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.762/1.762, allocations: 205.1 MB / 223.1 MB, free: 8.48 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.001037/0.001036, allocations: 105.5 kB / 270.5 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2607/0.2607, allocations: 38.01 MB / 355.8 MB, free: 2.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 51.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3471, allocations: 55.23 MB / 477.1 MB, free: 9.918 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.007921/0.3551, allocations: 6.57 MB / 483.7 MB, free: 5.258 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003105/0.3583, allocations: 1.734 MB / 485.4 MB, free: 4.023 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007116/0.359, allocations: 39.16 kB / 485.4 MB, free: 4.008 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005293/0.3596, allocations: 118.8 kB / 485.6 MB, free: 3.957 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001054/0.3607, allocations: 351.1 kB / 485.9 MB, free: 3.77 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004448/0.3611, allocations: 137 kB / 486 MB, free: 3.691 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001348/0.3625, allocations: 1.17 MB / 487.2 MB, free: 3.301 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.3628, allocations: 185.2 kB / 487.4 MB, free: 3.227 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005258/0.3634, allocations: 298.6 kB / 487.7 MB, free: 3.102 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007629/0.3641, allocations: 419.5 kB / 488.1 MB, free: 2.961 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.822e-05/0.3642, allocations: 26.84 kB / 488.1 MB, free: 2.961 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.3643, allocations: 26.94 kB / 488.1 MB, free: 2.961 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000242/0.3646, allocations: 196.7 kB / 488.3 MB, free: 2.895 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002663/0.3649, allocations: 261.9 kB / 488.6 MB, free: 2.746 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006386/0.3655, allocations: 0.5453 MB / 489.1 MB, free: 2.531 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.3655, allocations: 2.203 kB / 489.1 MB, free: 2.531 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3655, allocations: 4 kB / 489.1 MB, free: 2.527 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.3655, allocations: 0 / 489.1 MB, free: 2.527 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001547/0.3671, allocations: 0.8908 MB / 490 MB, free: 1.867 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3672, allocations: 9.219 kB / 490 MB, free: 1.867 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.3673, allocations: 65.44 kB / 490.1 MB, free: 1.832 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007304/0.368, allocations: 487.1 kB / 490.6 MB, free: 1.496 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.368, allocations: 42.34 kB / 490.6 MB, free: 1.473 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-05/0.3681, allocations: 38.81 kB / 490.7 MB, free: 1.461 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008325/0.369, allocations: 0.5308 MB / 491.2 MB, free: 1.195 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.369, allocations: 0 / 491.2 MB, free: 1.195 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.888e-05/0.369, allocations: 16.91 kB / 491.2 MB, free: 1.184 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.465e-05/0.3691, allocations: 24.02 kB / 491.2 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006242/0.3697, allocations: 395 kB / 491.6 MB, free: 1.055 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.372, allocations: 1.934 MB / 493.5 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000587/0.3726, allocations: 333.2 kB / 493.9 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003338/0.373, allocations: 182.4 kB / 494 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.373, allocations: 7.438 kB / 494.1 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003926/0.3734, allocations: 277.8 kB / 494.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 2.585e-06/0.3734, allocations: 4 kB / 494.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001968/0.3754, allocations: 1.18 MB / 495.5 MB, free: 14.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.565e-05/0.3755, allocations: 162.7 kB / 495.7 MB, free: 14.31 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005027/0.376, allocations: 397.4 kB / 496.1 MB, free: 14.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.3761, allocations: 32.86 kB / 496.1 MB, free: 14.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002786/0.3763, allocations: 299.3 kB / 496.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.3765, allocations: 124.8 kB / 496.5 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.3766, allocations: 92.77 kB / 496.6 MB, free: 13.7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.3768, allocations: 356.9 kB / 496.9 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/0.3771, allocations: 126 kB / 497.1 MB, free: 13.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003544/0.3774, allocations: 283.8 kB / 497.3 MB, free: 13.08 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006062/0.3781, allocations: 485.1 kB / 497.8 MB, free: 12.69 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.3781, allocations: 2.25 kB / 497.8 MB, free: 12.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008822/0.379, allocations: 0.5238 MB / 498.3 MB, free: 12.44 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.218e-05/0.379, allocations: 36.36 kB / 498.4 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.3791, allocations: 4.812 kB / 498.4 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.3791, allocations: 12.31 kB / 498.4 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004315/0.3795, allocations: 109.6 kB / 498.5 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.584e-05/0.3796, allocations: 8.859 kB / 498.5 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002794/0.3798, allocations: 18.73 kB / 498.5 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.655e-05/0.3799, allocations: 36.03 kB / 498.6 MB, free: 12.38 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000294/0.3802, allocations: 247 kB / 498.8 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.231e-05/0.3803, allocations: 49.56 kB / 498.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008043/0.3811, allocations: 461.5 kB / 499.3 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.3811, allocations: 3.844 kB / 499.3 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.3811, allocations: 0 / 499.3 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3811, allocations: 2.969 kB / 499.3 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.3827, allocations: 0.9679 MB / 0.4886 GB, free: 11.37 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3828, allocations: 5.5 kB / 0.4886 GB, free: 11.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003353/0.3831, allocations: 62.78 kB / 0.4886 GB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.3831, allocations: 6.344 kB / 0.4886 GB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.036e-05/0.3832, allocations: 10.77 kB / 0.4886 GB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.3832, allocations: 6.312 kB / 0.4886 GB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.3832, allocations: 5.156 kB / 0.4886 GB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005084/0.3883, allocations: 3.492 MB / 0.4921 GB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001636/0.3885, allocations: 138.1 kB / 0.4922 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.083e-05/0.3885, allocations: 12.62 kB / 0.4922 GB, free: 8.715 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.3887, allocations: 19.42 kB / 0.4922 GB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.3888, allocations: 22.78 kB / 0.4922 GB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.389e-05/0.3889, allocations: 34.8 kB / 0.4923 GB, free: 8.676 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002768/0.3891, allocations: 267.4 kB / 0.4925 GB, free: 8.508 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.3891, allocations: 1.062 kB / 0.4925 GB, free: 8.508 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006672/0.3898, allocations: 151 kB / 0.4927 GB, free: 8.492 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001175/0.3899, allocations: 106.4 kB / 0.4928 GB, free: 8.398 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006165/0.3906, allocations: 425.1 kB / 0.4932 GB, free: 8.172 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3906, allocations: 0 / 0.4932 GB, free: 8.172 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00031/0.3909, allocations: 256.7 kB / 0.4934 GB, free: 8.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005728/0.3915, allocations: 95.38 kB / 0.4935 GB, free: 7.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.3933, allocations: 1.486 MB / 0.495 GB, free: 6.871 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.3937, allocations: 0.8975 MB / 0.4958 GB, free: 6.074 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003104/0.3941, allocations: 88.44 kB / 0.4959 GB, free: 6.031 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.571e-05/0.3942, allocations: 40.2 kB / 0.496 GB, free: 6.02 MB / 330.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3942, allocations: 0 / 0.496 GB, free: 6.02 MB / 330.7 MB Notification: Performance of Templates: time 0.009704/0.4039, allocations: 4.836 MB / 0.5007 GB, free: 2.367 MB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches