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.001191/0.001191, allocations: 110.5 kB / 17.06 MB, free: 5.941 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.001334/0.001334, allocations: 200 kB / 18.01 MB, free: 5.031 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.417/1.417, 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.1877/0.1877, allocations: 38.05 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 59.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3488, allocations: 58.06 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Transformer): time 0.007043/0.3559, allocations: 6.524 MB / 0.51 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004553/0.3605, allocations: 2.44 MB / 0.5124 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006483/0.3612, allocations: 30.16 kB / 0.5124 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001751/0.363, allocations: 0.5999 MB / 0.513 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001944/0.3649, allocations: 0.6911 MB / 0.5137 GB, free: 428 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001399/0.3663, allocations: 448.8 kB / 0.5141 GB, free: 232 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002067/0.3684, allocations: 1.366 MB / 0.5154 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000794/0.3692, allocations: 482.5 kB / 0.5159 GB, free: 15.47 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001083/0.3703, allocations: 0.5829 MB / 0.5165 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001425/0.3718, allocations: 0.7856 MB / 0.5172 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002387/0.372, allocations: 74.56 kB / 0.5173 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001075/0.3731, allocations: 277.7 kB / 0.5176 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000848/0.374, allocations: 0.5216 MB / 0.5181 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009111/0.3749, allocations: 0.5273 MB / 0.5186 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002288/0.3772, allocations: 1.332 MB / 0.5199 GB, free: 13.9 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3772, allocations: 4.844 kB / 0.5199 GB, free: 13.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3772, allocations: 0 / 0.5199 GB, free: 13.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.211e-05/0.3772, allocations: 0 / 0.5199 GB, free: 13.89 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.002983/0.3802, allocations: 1.351 MB / 0.5212 GB, free: 12.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.3803, allocations: 12.98 kB / 0.5212 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002403/0.3805, allocations: 154.5 kB / 0.5214 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001204/0.3818, allocations: 204.9 kB / 0.5216 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.3834, allocations: 0.7176 MB / 0.5223 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.993e-05/0.3835, allocations: 64.67 kB / 0.5223 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002542/0.3837, allocations: 98.47 kB / 0.5224 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/0.3861, allocations: 1.387 MB / 0.5238 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.671e-05/0.3861, allocations: 6.609 kB / 0.5238 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.3862, allocations: 39.23 kB / 0.5238 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003393/0.3866, allocations: 124 kB / 0.5239 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.3886, allocations: 1.096 MB / 0.525 GB, free: 11.23 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.007715/0.3964, allocations: 5.942 MB / 0.5308 GB, free: 6.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.3974, allocations: 0.7076 MB / 0.5315 GB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004744/0.3979, allocations: 319.9 kB / 0.5318 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.364e-05/0.398, allocations: 11.08 kB / 0.5318 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000656/0.3986, allocations: 485.2 kB / 0.5323 GB, free: 5.777 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.515e-06/0.3987, allocations: 0 / 0.5323 GB, free: 5.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.003758/0.4024, allocations: 2.173 MB / 0.5344 GB, free: 4.445 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.4026, allocations: 164.2 kB / 0.5346 GB, free: 4.258 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008675/0.4034, allocations: 0.637 MB / 0.5352 GB, free: 3.887 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.32e-05/0.4035, allocations: 41.7 kB / 0.5352 GB, free: 3.844 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004312/0.4039, allocations: 0.5499 MB / 0.5358 GB, free: 3.352 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.4042, allocations: 238.7 kB / 0.536 GB, free: 3.148 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003084/0.4045, allocations: 200.2 kB / 0.5362 GB, free: 3.035 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.4046, allocations: 395.6 kB / 0.5366 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005501/0.4052, allocations: 338.9 kB / 0.5369 GB, free: 2.508 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008507/0.4061, allocations: 0.7655 MB / 0.5376 GB, free: 1.766 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.4076, allocations: 1.251 MB / 0.5389 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.849e-06/0.4076, allocations: 5.344 kB / 0.5389 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002641/0.4103, allocations: 1.443 MB / 0.5403 GB, free: 15.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.08e-05/0.4103, allocations: 41.89 kB / 0.5403 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001503/0.4119, allocations: 0.7857 MB / 0.5411 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007657/0.4126, allocations: 251.7 kB / 0.5413 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007277/0.4134, allocations: 213.4 kB / 0.5415 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004509/0.4179, allocations: 4.387 MB / 0.5458 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008367/0.4188, allocations: 54.66 kB / 0.5459 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.4189, allocations: 64.38 kB / 0.5459 GB, free: 11.59 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.0006802/0.4196, allocations: 404.9 kB / 0.5463 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.4197, allocations: 83.33 kB / 0.5464 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00135/0.4211, allocations: 0.8388 MB / 0.5472 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.4211, allocations: 8 kB / 0.5472 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.4211, allocations: 3.984 kB / 0.5472 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.4211, allocations: 0 / 0.5472 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002761/0.4239, allocations: 1.771 MB / 0.5489 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.4239, allocations: 4 kB / 0.5489 GB, free: 8.699 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007064/0.4246, allocations: 151.9 kB / 0.5491 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.4247, allocations: 4 kB / 0.5491 GB, free: 8.547 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.146e-05/0.4247, allocations: 19.98 kB / 0.5491 GB, free: 8.527 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.972e-06/0.4247, allocations: 7.828 kB / 0.5491 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4247, allocations: 4 kB / 0.5491 GB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001675/0.4264, allocations: 1.317 MB / 0.5504 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000385/0.4268, allocations: 204.5 kB / 0.5506 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.4269, allocations: 19.98 kB / 0.5506 GB, free: 6.926 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003906/0.4273, allocations: 31.97 kB / 0.5507 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.82e-05/0.4274, allocations: 48.39 kB / 0.5507 GB, free: 6.848 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.465e-05/0.4275, allocations: 47.95 kB / 0.5507 GB, free: 6.801 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004896/0.428, allocations: 423 kB / 0.5512 GB, free: 6.391 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.428, allocations: 0 / 0.5512 GB, free: 6.391 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001077/0.4291, allocations: 232 kB / 0.5514 GB, free: 6.164 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.00199/0.4311, allocations: 1.87 MB / 0.5532 GB, free: 4.238 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001993/0.4331, allocations: 1.24 MB / 0.5544 GB, free: 2.961 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.4331, allocations: 0 / 0.5544 GB, free: 2.961 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006002/0.4337, allocations: 467.9 kB / 0.5549 GB, free: 2.492 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009037/0.4347, allocations: 141.1 kB / 0.555 GB, free: 2.359 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.4467, allocations: 8.11 MB / 0.5629 GB, free: 9.707 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008121/0.4476, allocations: 1.11 MB / 0.564 GB, free: 8.566 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007305/0.4483, allocations: 294.4 kB / 0.5643 GB, free: 8.273 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004376/0.4488, allocations: 331.3 kB / 0.5646 GB, free: 7.949 MB / 430.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4488, allocations: 0 / 0.5646 GB, free: 7.949 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.047/0.4958, allocations: 16.07 MB / 0.5803 GB, free: 8.066 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.91, allocations: 2.578 kB / 0.5803 GB, free: 8.066 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