Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.001273/0.001278, allocations: 114 kB / 17.06 MB, free: 6.016 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.001331/0.001331, allocations: 189.4 kB / 18 MB, free: 5.098 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.535/1.535, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.182/0.182, allocations: 38.05 MB / 329.9 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 71.89 kB / 457.7 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.383, allocations: 58.05 MB / 0.5036 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Transformer): time 0.007153/0.3902, allocations: 6.525 MB / 0.51 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004414/0.3947, allocations: 2.438 MB / 0.5124 GB, free: 1.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009486/0.3957, allocations: 27.34 kB / 0.5124 GB, free: 1.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001954/0.3976, allocations: 0.601 MB / 0.513 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002382/0.4, allocations: 0.6843 MB / 0.5137 GB, free: 440 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.4016, allocations: 448 kB / 0.5141 GB, free: 244 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002789/0.4045, allocations: 1.368 MB / 0.5154 GB, free: 15.67 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009161/0.4054, allocations: 487 kB / 0.5159 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001624/0.407, allocations: 0.572 MB / 0.5164 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001903/0.4089, allocations: 0.784 MB / 0.5172 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002192/0.4092, allocations: 75.31 kB / 0.5173 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001022/0.4102, allocations: 277.8 kB / 0.5176 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007895/0.411, allocations: 0.5196 MB / 0.5181 GB, free: 14.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007224/0.4117, allocations: 0.528 MB / 0.5186 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002012/0.4138, allocations: 1.332 MB / 0.5199 GB, free: 13.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.4138, allocations: 4.609 kB / 0.5199 GB, free: 13.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4138, allocations: 1.219 kB / 0.5199 GB, free: 13.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.074e-05/0.4138, allocations: 0 / 0.5199 GB, free: 13.91 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.003148/0.417, allocations: 1.353 MB / 0.5212 GB, free: 12.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.4171, allocations: 12.86 kB / 0.5212 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002168/0.4173, allocations: 154.4 kB / 0.5214 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001125/0.4184, allocations: 201.9 kB / 0.5216 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.4199, allocations: 0.7179 MB / 0.5223 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.181e-05/0.42, allocations: 64.73 kB / 0.5223 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002519/0.4202, allocations: 93.62 kB / 0.5224 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002395/0.4226, allocations: 1.392 MB / 0.5238 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.571e-05/0.4227, allocations: 7.156 kB / 0.5238 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.887e-05/0.4228, allocations: 38.64 kB / 0.5238 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003011/0.4231, allocations: 123.8 kB / 0.5239 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002031/0.4251, allocations: 1.093 MB / 0.525 GB, free: 11.25 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007819/0.433, allocations: 5.942 MB / 0.5308 GB, free: 6.734 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.4342, allocations: 0.7076 MB / 0.5315 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004802/0.4346, allocations: 319 kB / 0.5318 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.111e-05/0.4347, allocations: 15.05 kB / 0.5318 GB, free: 6.137 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007243/0.4355, allocations: 480.7 kB / 0.5323 GB, free: 5.805 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.625e-06/0.4355, allocations: 0 / 0.5323 GB, free: 5.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.003977/0.4394, allocations: 2.174 MB / 0.5344 GB, free: 4.473 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.4396, allocations: 163.7 kB / 0.5345 GB, free: 4.285 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009033/0.4405, allocations: 0.6381 MB / 0.5352 GB, free: 3.914 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.084e-05/0.4406, allocations: 45.05 kB / 0.5352 GB, free: 3.867 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004895/0.4411, allocations: 0.5455 MB / 0.5357 GB, free: 3.379 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.4413, allocations: 239.4 kB / 0.536 GB, free: 3.176 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003212/0.4416, allocations: 199.9 kB / 0.5362 GB, free: 3.062 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002375/0.4419, allocations: 395.8 kB / 0.5365 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005934/0.4425, allocations: 338.3 kB / 0.5369 GB, free: 2.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.4435, allocations: 0.7671 MB / 0.5376 GB, free: 1.793 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001802/0.4453, allocations: 1.251 MB / 0.5388 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.4453, allocations: 3.969 kB / 0.5388 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002842/0.4482, allocations: 1.439 MB / 0.5402 GB, free: 0 / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.601e-05/0.4483, allocations: 41.39 kB / 0.5403 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001542/0.4498, allocations: 0.7905 MB / 0.5411 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00079/0.4506, allocations: 247.1 kB / 0.5413 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008337/0.4515, allocations: 217.9 kB / 0.5415 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005323/0.4568, allocations: 4.389 MB / 0.5458 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009285/0.4577, allocations: 55.7 kB / 0.5458 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.4579, allocations: 60.33 kB / 0.5459 GB, free: 11.62 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,12,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008258/0.4587, allocations: 404.6 kB / 0.5463 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.4589, allocations: 83.98 kB / 0.5464 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001617/0.4605, allocations: 0.8416 MB / 0.5472 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.4605, allocations: 11.92 kB / 0.5472 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.4605, allocations: 0 / 0.5472 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.4605, allocations: 4 kB / 0.5472 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/0.4635, allocations: 1.767 MB / 0.5489 GB, free: 8.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.884e-06/0.4635, allocations: 4 kB / 0.5489 GB, free: 8.758 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007444/0.4643, allocations: 151.9 kB / 0.5491 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.074e-05/0.4643, allocations: 4 kB / 0.5491 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-05/0.4644, allocations: 23.98 kB / 0.5491 GB, free: 8.582 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.4644, allocations: 7.938 kB / 0.5491 GB, free: 8.574 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.4644, allocations: 4 kB / 0.5491 GB, free: 8.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.4664, allocations: 1.313 MB / 0.5504 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000358/0.4667, allocations: 204.6 kB / 0.5506 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.4668, allocations: 23.98 kB / 0.5506 GB, free: 6.977 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003623/0.4672, allocations: 35.95 kB / 0.5506 GB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.4673, allocations: 44.39 kB / 0.5507 GB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-05/0.4674, allocations: 43.95 kB / 0.5507 GB, free: 6.855 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000584/0.468, allocations: 423 kB / 0.5511 GB, free: 6.445 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4681, allocations: 0 / 0.5511 GB, free: 6.445 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001151/0.4692, allocations: 232 kB / 0.5514 GB, free: 6.219 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (trafo.i1[1],trafo.i1[2],trafo.i1[3]) * 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 (64): * Single equations (assignments): 62 * 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.002298/0.4715, allocations: 1.874 MB / 0.5532 GB, free: 4.289 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002251/0.4738, allocations: 1.24 MB / 0.5544 GB, free: 3.012 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4738, allocations: 0 / 0.5544 GB, free: 3.012 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006254/0.4744, allocations: 464.1 kB / 0.5548 GB, free: 2.547 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008654/0.4753, allocations: 140 kB / 0.555 GB, free: 2.418 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.4874, allocations: 8.109 MB / 0.5629 GB, free: 9.766 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008973/0.4883, allocations: 1.11 MB / 0.564 GB, free: 8.625 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007328/0.4891, allocations: 294.4 kB / 0.5643 GB, free: 8.332 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004613/0.4895, allocations: 335.3 kB / 0.5646 GB, free: 8.004 MB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4895, allocations: 0 / 0.5646 GB, free: 8.004 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0609/0.5504, allocations: 16.07 MB / 0.5803 GB, free: 8.121 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.77, allocations: 10.56 kB / 0.5803 GB, free: 8.117 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Transformer.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Transformer.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches