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.001521/0.001521, allocations: 113.8 kB / 17.06 MB, free: 5.777 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.001513/0.001513, allocations: 197.3 kB / 18 MB, free: 4.918 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.183/0.183, allocations: 38.05 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001865, allocations: 55.91 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3266, allocations: 58.05 MB / 0.5036 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006517/0.3332, allocations: 5.508 MB / 0.509 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002256/0.3355, allocations: 1.357 MB / 0.5103 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003382/0.3358, allocations: 23.16 kB / 0.5104 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005155/0.3363, allocations: 134 kB / 0.5105 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009288/0.3373, allocations: 381 kB / 0.5108 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000353/0.3377, allocations: 148.8 kB / 0.511 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000771/0.3385, allocations: 0.7863 MB / 0.5118 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003188/0.3388, allocations: 224.4 kB / 0.512 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005089/0.3393, allocations: 339.9 kB / 0.5123 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006992/0.34, allocations: 403.4 kB / 0.5127 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.029e-05/0.3401, allocations: 38.91 kB / 0.5127 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.3403, allocations: 40.78 kB / 0.5128 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002695/0.3405, allocations: 205.8 kB / 0.5129 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002995/0.3408, allocations: 275.1 kB / 0.5132 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007893/0.3416, allocations: 0.584 MB / 0.5138 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3417, allocations: 0.75 kB / 0.5138 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3417, allocations: 0 / 0.5138 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.3417, allocations: 4 kB / 0.5138 GB, free: 0.9336 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.001441/0.3431, allocations: 0.8941 MB / 0.5147 GB, free: 272 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.3432, allocations: 13.77 kB / 0.5147 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.526e-05/0.3433, allocations: 93.17 kB / 0.5148 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.3434, allocations: 69.11 kB / 0.5148 GB, free: 152 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009006/0.3443, allocations: 0.5109 MB / 0.5153 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/0.3443, allocations: 30.48 kB / 0.5154 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.83e-05/0.3444, allocations: 42.84 kB / 0.5154 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008938/0.3453, allocations: 0.534 MB / 0.5159 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.3453, allocations: 0.75 kB / 0.5159 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.527e-05/0.3454, allocations: 18.03 kB / 0.5159 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.786e-05/0.3454, allocations: 23.67 kB / 0.516 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007241/0.3462, allocations: 390.2 kB / 0.5163 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002757/0.3489, allocations: 1.923 MB / 0.5182 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007253/0.3497, allocations: 340.3 kB / 0.5185 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003224/0.35, allocations: 180.8 kB / 0.5187 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.3501, allocations: 3.156 kB / 0.5187 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003971/0.3505, allocations: 285.6 kB / 0.519 GB, free: 13.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.763e-06/0.3505, allocations: 3.938 kB / 0.519 GB, free: 13.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.001956/0.3524, allocations: 1.202 MB / 0.5202 GB, free: 12.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.3525, allocations: 165.3 kB / 0.5203 GB, free: 12.6 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004269/0.353, allocations: 398 kB / 0.5207 GB, free: 12.4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.68e-05/0.353, allocations: 32.31 kB / 0.5207 GB, free: 12.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002469/0.3533, allocations: 291.4 kB / 0.521 GB, free: 12.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.3534, allocations: 130 kB / 0.5211 GB, free: 12.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.3536, allocations: 96.7 kB / 0.5212 GB, free: 11.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.3537, allocations: 358.2 kB / 0.5216 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.354, allocations: 119.6 kB / 0.5217 GB, free: 11.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003387/0.3543, allocations: 296 kB / 0.522 GB, free: 11.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000581/0.3549, allocations: 481.3 kB / 0.5224 GB, free: 10.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3549, allocations: 6.531 kB / 0.5224 GB, free: 10.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007365/0.3556, allocations: 0.515 MB / 0.5229 GB, free: 10.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.388e-05/0.3557, allocations: 40.72 kB / 0.523 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.3557, allocations: 5.5 kB / 0.523 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.3557, allocations: 8.938 kB / 0.523 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003922/0.3561, allocations: 106.4 kB / 0.5231 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.3562, allocations: 15.33 kB / 0.5231 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.3564, allocations: 20.92 kB / 0.5231 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.305e-05/0.3565, allocations: 32.67 kB / 0.5231 GB, free: 10.66 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.0003058/0.3568, allocations: 243.2 kB / 0.5234 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.71e-05/0.3569, allocations: 53.61 kB / 0.5234 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007265/0.3576, allocations: 458.7 kB / 0.5239 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3576, allocations: 7.188 kB / 0.5239 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3577, allocations: 6.047 kB / 0.5239 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3577, allocations: 1.734 kB / 0.5239 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.3591, allocations: 0.9791 MB / 0.5248 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.3591, allocations: 1.344 kB / 0.5248 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003055/0.3594, allocations: 64.08 kB / 0.5249 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.3594, allocations: 7.188 kB / 0.5249 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.095e-05/0.3595, allocations: 13.94 kB / 0.5249 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.3595, allocations: 3.219 kB / 0.5249 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.3595, allocations: 5.094 kB / 0.5249 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.3605, allocations: 0.7107 MB / 0.5256 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001869/0.3607, allocations: 147.3 kB / 0.5258 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.118e-05/0.3608, allocations: 10.14 kB / 0.5258 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002391/0.361, allocations: 13.83 kB / 0.5258 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.76e-05/0.3611, allocations: 27.7 kB / 0.5258 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.004e-05/0.3612, allocations: 32.27 kB / 0.5258 GB, free: 9.074 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003302/0.3615, allocations: 268.2 kB / 0.5261 GB, free: 8.945 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3615, allocations: 0 / 0.5261 GB, free: 8.945 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005069/0.3621, allocations: 106.7 kB / 0.5262 GB, free: 8.93 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.001351/0.3634, allocations: 1.26 MB / 0.5274 GB, free: 8.012 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006625/0.3641, allocations: 402.4 kB / 0.5278 GB, free: 7.848 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3641, allocations: 0 / 0.5278 GB, free: 7.848 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003326/0.3644, allocations: 262.5 kB / 0.5281 GB, free: 7.715 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006646/0.3651, allocations: 115.3 kB / 0.5282 GB, free: 7.664 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005777/0.3709, allocations: 4.13 MB / 0.5322 GB, free: 5.031 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005816/0.3715, allocations: 0.8843 MB / 0.5331 GB, free: 4.312 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003063/0.3718, allocations: 86.22 kB / 0.5332 GB, free: 4.293 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002496/0.3721, allocations: 178.8 kB / 0.5333 GB, free: 4.16 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3721, allocations: 0 / 0.5333 GB, free: 4.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03431/0.4064, allocations: 8.71 MB / 0.5418 GB, free: 452 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.173/9.58, allocations: 7.031 kB / 0.5418 GB, free: 448 kB / 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