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/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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 112.1 kB / 17.06 MB, free: 5.957 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.001993/0.001993, allocations: 198.8 kB / 18 MB, free: 5.047 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.32/1.32, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1795/0.1795, allocations: 38.03 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 67.88 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3133, allocations: 58.06 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006173/0.3196, allocations: 5.495 MB / 0.509 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00228/0.3219, allocations: 1.364 MB / 0.5103 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002397/0.3221, allocations: 18.75 kB / 0.5103 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004422/0.3226, allocations: 136.2 kB / 0.5105 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007887/0.3234, allocations: 384 kB / 0.5108 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003005/0.3237, allocations: 157.1 kB / 0.511 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000792/0.3245, allocations: 0.7833 MB / 0.5118 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003423/0.3249, allocations: 229.6 kB / 0.512 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004647/0.3254, allocations: 346.3 kB / 0.5123 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005771/0.3259, allocations: 403.1 kB / 0.5127 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.924e-05/0.326, allocations: 39.69 kB / 0.5127 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.223e-05/0.3261, allocations: 40.31 kB / 0.5128 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002202/0.3263, allocations: 210 kB / 0.513 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002571/0.3266, allocations: 274.2 kB / 0.5132 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006597/0.3273, allocations: 0.5846 MB / 0.5138 GB, free: 1.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3273, allocations: 0.9688 kB / 0.5138 GB, free: 1.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3273, allocations: 0 / 0.5138 GB, free: 1.035 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.3273, allocations: 0 / 0.5138 GB, free: 1.035 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001369/0.3287, allocations: 0.9026 MB / 0.5147 GB, free: 368 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3287, allocations: 13.33 kB / 0.5147 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.622e-05/0.3288, allocations: 85.31 kB / 0.5148 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.371e-05/0.3289, allocations: 65.08 kB / 0.5148 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008317/0.3298, allocations: 0.5111 MB / 0.5153 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.3298, allocations: 30.19 kB / 0.5154 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.112e-05/0.3299, allocations: 38.91 kB / 0.5154 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008355/0.3307, allocations: 0.5339 MB / 0.5159 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.3308, allocations: 1.5 kB / 0.5159 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.51e-05/0.3308, allocations: 21.11 kB / 0.5159 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.465e-05/0.3308, allocations: 19.16 kB / 0.516 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007156/0.3316, allocations: 399 kB / 0.5163 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00258/0.3342, allocations: 1.927 MB / 0.5182 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006848/0.3349, allocations: 339.8 kB / 0.5186 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/0.3352, allocations: 184 kB / 0.5187 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/0.3353, allocations: 5.078 kB / 0.5187 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004274/0.3357, allocations: 288.4 kB / 0.519 GB, free: 13.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.643e-06/0.3357, allocations: 0 / 0.519 GB, free: 13.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.001948/0.3377, allocations: 1.189 MB / 0.5202 GB, free: 12.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.656e-05/0.3378, allocations: 166.5 kB / 0.5203 GB, free: 12.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004083/0.3382, allocations: 397.7 kB / 0.5207 GB, free: 12.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.3382, allocations: 36.62 kB / 0.5207 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001982/0.3384, allocations: 295.5 kB / 0.521 GB, free: 12.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.698e-05/0.3385, allocations: 126.7 kB / 0.5211 GB, free: 12.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.3387, allocations: 87.67 kB / 0.5212 GB, free: 12.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3388, allocations: 361.5 kB / 0.5216 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/0.339, allocations: 124.8 kB / 0.5217 GB, free: 11.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002746/0.3393, allocations: 300.7 kB / 0.522 GB, free: 11.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005142/0.3398, allocations: 481 kB / 0.5224 GB, free: 11.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.3398, allocations: 1.375 kB / 0.5224 GB, free: 11.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006883/0.3405, allocations: 0.5249 MB / 0.523 GB, free: 10.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/0.3406, allocations: 33.7 kB / 0.523 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3406, allocations: 5.406 kB / 0.523 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.3406, allocations: 8.031 kB / 0.523 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/0.341, allocations: 108 kB / 0.5231 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.341, allocations: 13.03 kB / 0.5231 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002635/0.3413, allocations: 22.38 kB / 0.5231 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.352e-05/0.3414, allocations: 31.78 kB / 0.5232 GB, free: 10.76 MB / 398.1 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.0002746/0.3417, allocations: 250.1 kB / 0.5234 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.221e-05/0.3417, allocations: 51.03 kB / 0.5235 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006944/0.3424, allocations: 456.4 kB / 0.5239 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.3424, allocations: 4.125 kB / 0.5239 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3425, allocations: 1.375 kB / 0.5239 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.3425, allocations: 2.062 kB / 0.5239 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001416/0.3439, allocations: 0.9853 MB / 0.5249 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3439, allocations: 1.844 kB / 0.5249 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003138/0.3442, allocations: 64.3 kB / 0.5249 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.3442, allocations: 3.188 kB / 0.5249 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.3443, allocations: 19.89 kB / 0.5249 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.3443, allocations: 1.375 kB / 0.5249 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3443, allocations: 1.922 kB / 0.5249 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009335/0.3452, allocations: 0.7059 MB / 0.5256 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.3454, allocations: 144.2 kB / 0.5258 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.491e-05/0.3455, allocations: 12.98 kB / 0.5258 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.3457, allocations: 16.02 kB / 0.5258 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.3458, allocations: 26.67 kB / 0.5258 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.242e-05/0.3459, allocations: 36 kB / 0.5259 GB, free: 9.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002929/0.3462, allocations: 272 kB / 0.5261 GB, free: 9.047 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3462, allocations: 0 / 0.5261 GB, free: 9.047 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004625/0.3466, allocations: 102.6 kB / 0.5262 GB, free: 9.035 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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.001212/0.3479, allocations: 1.26 MB / 0.5274 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006226/0.3485, allocations: 403.7 kB / 0.5278 GB, free: 7.949 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3485, allocations: 4.125 kB / 0.5278 GB, free: 7.945 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003216/0.3488, allocations: 261.7 kB / 0.5281 GB, free: 7.812 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000634/0.3495, allocations: 106.4 kB / 0.5282 GB, free: 7.773 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00545/0.3549, allocations: 4.14 MB / 0.5322 GB, free: 5.129 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006312/0.3556, allocations: 0.8776 MB / 0.5331 GB, free: 4.418 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003422/0.3559, allocations: 89.45 kB / 0.5332 GB, free: 4.395 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/0.3562, allocations: 175.2 kB / 0.5333 GB, free: 4.266 MB / 398.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3562, allocations: 0 / 0.5333 GB, free: 4.266 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02873/0.385, allocations: 8.698 MB / 0.5418 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.237/8.622, allocations: 5.219 kB / 0.5418 GB, free: 0.5547 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches