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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 107.6 kB / 17.06 MB, free: 5.824 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.001333/0.001333, allocations: 192 kB / 18 MB, free: 4.977 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.511/1.511, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1745/0.1745, allocations: 38.05 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 67.88 kB / 458.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.3965, allocations: 58.05 MB / 0.5041 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006596/0.4031, allocations: 5.516 MB / 0.5095 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002374/0.4055, allocations: 1.359 MB / 0.5108 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002612/0.4058, allocations: 18.22 kB / 0.5108 GB, free: 3.066 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004995/0.4063, allocations: 132.5 kB / 0.511 GB, free: 3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009662/0.4073, allocations: 391.9 kB / 0.5113 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003852/0.4077, allocations: 157.5 kB / 0.5115 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.4088, allocations: 0.778 MB / 0.5123 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003817/0.4092, allocations: 222 kB / 0.5125 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006151/0.4098, allocations: 349.5 kB / 0.5128 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007115/0.4105, allocations: 404.6 kB / 0.5132 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.987e-05/0.4106, allocations: 40.28 kB / 0.5132 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.4108, allocations: 39.88 kB / 0.5133 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003615/0.4111, allocations: 201.4 kB / 0.5135 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.4115, allocations: 274.9 kB / 0.5137 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009396/0.4124, allocations: 0.5804 MB / 0.5143 GB, free: 1.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.4125, allocations: 1.188 kB / 0.5143 GB, free: 1.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4125, allocations: 0 / 0.5143 GB, free: 1.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.4125, allocations: 0 / 0.5143 GB, free: 1.488 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.001515/0.414, allocations: 0.8903 MB / 0.5152 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.4141, allocations: 13.94 kB / 0.5152 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.4142, allocations: 66.25 kB / 0.5152 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007837/0.415, allocations: 0.506 MB / 0.5157 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.415, allocations: 34.03 kB / 0.5158 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.312e-05/0.4151, allocations: 39.77 kB / 0.5158 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008837/0.416, allocations: 0.5376 MB / 0.5163 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.416, allocations: 1.031 kB / 0.5163 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.911e-05/0.4161, allocations: 16.91 kB / 0.5163 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.532e-05/0.4161, allocations: 19.45 kB / 0.5164 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007743/0.4169, allocations: 398.9 kB / 0.5167 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002825/0.4198, allocations: 1.919 MB / 0.5186 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006288/0.4204, allocations: 331.9 kB / 0.5189 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003396/0.4208, allocations: 184.9 kB / 0.5191 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.4208, allocations: 4.125 kB / 0.5191 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004247/0.4212, allocations: 296.4 kB / 0.5194 GB, free: 14.17 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.854e-06/0.4213, allocations: 1.406 kB / 0.5194 GB, free: 14.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002016/0.4233, allocations: 1.172 MB / 0.5205 GB, free: 13.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.4234, allocations: 171.8 kB / 0.5207 GB, free: 13.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004818/0.4239, allocations: 392 kB / 0.5211 GB, free: 13.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.4239, allocations: 36.17 kB / 0.5211 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002546/0.4242, allocations: 295.4 kB / 0.5214 GB, free: 12.79 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.4243, allocations: 112.6 kB / 0.5215 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.4245, allocations: 93.7 kB / 0.5216 GB, free: 12.65 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.4246, allocations: 360.3 kB / 0.5219 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.4249, allocations: 120.1 kB / 0.522 GB, free: 12.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003501/0.4252, allocations: 292.7 kB / 0.5223 GB, free: 12.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005997/0.4258, allocations: 488.7 kB / 0.5228 GB, free: 11.63 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.4258, allocations: 1.375 kB / 0.5228 GB, free: 11.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008102/0.4267, allocations: 0.5202 MB / 0.5233 GB, free: 11.38 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.86e-05/0.4267, allocations: 34.7 kB / 0.5233 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.4267, allocations: 10.28 kB / 0.5233 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.4267, allocations: 8.156 kB / 0.5233 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004171/0.4272, allocations: 107.2 kB / 0.5235 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.4272, allocations: 13.91 kB / 0.5235 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.4275, allocations: 26.11 kB / 0.5235 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.759e-05/0.4275, allocations: 31.91 kB / 0.5235 GB, free: 11.32 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.0002621/0.4278, allocations: 247.2 kB / 0.5238 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.791e-05/0.4279, allocations: 53.97 kB / 0.5238 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006785/0.4285, allocations: 451.7 kB / 0.5242 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.4286, allocations: 8.406 kB / 0.5242 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.4286, allocations: 0.5625 kB / 0.5242 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.4286, allocations: 3.141 kB / 0.5242 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001446/0.43, allocations: 0.978 MB / 0.5252 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.43, allocations: 1.5 kB / 0.5252 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002967/0.4303, allocations: 63.73 kB / 0.5253 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.4304, allocations: 3.531 kB / 0.5253 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/0.4304, allocations: 14.47 kB / 0.5253 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.4304, allocations: 6.344 kB / 0.5253 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4304, allocations: 6.156 kB / 0.5253 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.4314, allocations: 0.7018 MB / 0.526 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000167/0.4316, allocations: 139.1 kB / 0.5261 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.011e-05/0.4317, allocations: 10.23 kB / 0.5261 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.4319, allocations: 19.27 kB / 0.5261 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.905e-05/0.432, allocations: 26.55 kB / 0.5262 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-05/0.4321, allocations: 39.67 kB / 0.5262 GB, free: 9.746 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003225/0.4324, allocations: 268.5 kB / 0.5265 GB, free: 9.617 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4324, allocations: 0 / 0.5265 GB, free: 9.617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004662/0.4329, allocations: 104.2 kB / 0.5266 GB, free: 9.605 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.0001206/0.433, allocations: 111.8 kB / 0.5267 GB, free: 9.508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006269/0.4336, allocations: 404.9 kB / 0.5271 GB, free: 9.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4337, allocations: 0 / 0.5271 GB, free: 9.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003343/0.434, allocations: 266.8 kB / 0.5273 GB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006149/0.4346, allocations: 105.5 kB / 0.5274 GB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.4364, allocations: 0.9695 MB / 0.5284 GB, free: 8.629 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/0.437, allocations: 0.8838 MB / 0.5292 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002748/0.4373, allocations: 89.58 kB / 0.5293 GB, free: 7.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.445e-05/0.4374, allocations: 35.89 kB / 0.5293 GB, free: 7.883 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4374, allocations: 0 / 0.5293 GB, free: 7.883 MB / 398.1 MB Notification: Performance of Templates: time 0.009213/0.4466, allocations: 4.339 MB / 0.5336 GB, free: 6.379 MB / 398.1 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/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","/var/lib/jenkins/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