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.001689/0.001689, allocations: 109.9 kB / 17.74 MB, free: 5.34 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.002013/0.002013, allocations: 189.5 kB / 18.66 MB, free: 4.422 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.363/1.363, allocations: 222.9 MB / 242.4 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.184/0.184, allocations: 38.04 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 63.89 kB / 458.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3641, allocations: 58.05 MB / 0.5048 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006292/0.3705, allocations: 5.519 MB / 0.5102 GB, free: 3.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002255/0.3728, allocations: 1.358 MB / 0.5115 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003336/0.3731, allocations: 20.78 kB / 0.5115 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004894/0.3736, allocations: 135.6 kB / 0.5116 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009009/0.3746, allocations: 381.3 kB / 0.512 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003779/0.3749, allocations: 152.7 kB / 0.5121 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008728/0.3758, allocations: 0.7843 MB / 0.5129 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003362/0.3762, allocations: 217.8 kB / 0.5131 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004858/0.3767, allocations: 349.2 kB / 0.5134 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006462/0.3773, allocations: 404.4 kB / 0.5138 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.984e-05/0.3774, allocations: 39.41 kB / 0.5139 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/0.3775, allocations: 40.38 kB / 0.5139 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002344/0.3778, allocations: 206.4 kB / 0.5141 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002718/0.3781, allocations: 278.2 kB / 0.5144 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006958/0.3788, allocations: 0.5742 MB / 0.5149 GB, free: 1.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.3788, allocations: 0 / 0.5149 GB, free: 1.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3788, allocations: 3.938 kB / 0.5149 GB, free: 1.445 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.3788, allocations: 0 / 0.5149 GB, free: 1.445 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.001391/0.3802, allocations: 0.8868 MB / 0.5158 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3802, allocations: 14.41 kB / 0.5158 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.3804, allocations: 61.7 kB / 0.5159 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000762/0.3811, allocations: 0.5108 MB / 0.5164 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.3812, allocations: 37.67 kB / 0.5164 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.884e-05/0.3812, allocations: 38.09 kB / 0.5164 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008492/0.3821, allocations: 0.5347 MB / 0.517 GB, free: 116 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.3821, allocations: 0.875 kB / 0.517 GB, free: 116 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.948e-05/0.3822, allocations: 16.97 kB / 0.517 GB, free: 104 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.529e-05/0.3822, allocations: 24.03 kB / 0.517 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007508/0.383, allocations: 390.2 kB / 0.5174 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002587/0.3856, allocations: 1.919 MB / 0.5193 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005683/0.3862, allocations: 338 kB / 0.5196 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003266/0.3865, allocations: 176.3 kB / 0.5197 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.3866, allocations: 11.12 kB / 0.5198 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004347/0.387, allocations: 289.7 kB / 0.52 GB, free: 14.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.335e-06/0.387, allocations: 0 / 0.52 GB, free: 14.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.001974/0.389, allocations: 1.189 MB / 0.5212 GB, free: 13.4 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.808e-05/0.3891, allocations: 163.3 kB / 0.5214 GB, free: 13.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004349/0.3896, allocations: 396.4 kB / 0.5217 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.3896, allocations: 35.98 kB / 0.5218 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002316/0.3898, allocations: 300.5 kB / 0.522 GB, free: 12.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.961e-05/0.3899, allocations: 113.1 kB / 0.5222 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.3901, allocations: 90.98 kB / 0.5222 GB, free: 12.6 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3903, allocations: 361.3 kB / 0.5226 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.3905, allocations: 120.9 kB / 0.5227 GB, free: 12.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003177/0.3908, allocations: 295.8 kB / 0.523 GB, free: 11.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005517/0.3914, allocations: 483.2 kB / 0.5234 GB, free: 11.58 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3914, allocations: 2.562 kB / 0.5234 GB, free: 11.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007566/0.3921, allocations: 0.5161 MB / 0.524 GB, free: 11.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.3922, allocations: 38.58 kB / 0.524 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.3922, allocations: 9.469 kB / 0.524 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.3922, allocations: 8.719 kB / 0.524 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004022/0.3926, allocations: 103.8 kB / 0.5241 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.3927, allocations: 14.06 kB / 0.5241 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.3929, allocations: 25.44 kB / 0.5241 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.557e-05/0.393, allocations: 32.67 kB / 0.5242 GB, free: 11.27 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.0002678/0.3933, allocations: 247.1 kB / 0.5244 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.241e-05/0.3933, allocations: 54.02 kB / 0.5245 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006954/0.394, allocations: 452.5 kB / 0.5249 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.394, allocations: 3.969 kB / 0.5249 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3941, allocations: 0 / 0.5249 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.3941, allocations: 3.547 kB / 0.5249 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.3955, allocations: 0.9774 MB / 0.5259 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3955, allocations: 1.156 kB / 0.5259 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002947/0.3958, allocations: 65.23 kB / 0.5259 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.3958, allocations: 2.094 kB / 0.5259 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.3959, allocations: 11.22 kB / 0.5259 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.3959, allocations: 3.438 kB / 0.5259 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3959, allocations: 5.562 kB / 0.5259 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.397, allocations: 0.7059 MB / 0.5266 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.3972, allocations: 139 kB / 0.5268 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.145e-05/0.3973, allocations: 10.39 kB / 0.5268 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.3975, allocations: 22.38 kB / 0.5268 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.5e-05/0.3976, allocations: 26.66 kB / 0.5268 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.768e-05/0.3977, allocations: 35.28 kB / 0.5269 GB, free: 9.711 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003592/0.398, allocations: 269.4 kB / 0.5271 GB, free: 9.582 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.398, allocations: 0 / 0.5271 GB, free: 9.582 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005137/0.3986, allocations: 103.1 kB / 0.5272 GB, free: 9.57 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.0001754/0.3987, allocations: 113 kB / 0.5273 GB, free: 9.473 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007348/0.3995, allocations: 409.5 kB / 0.5277 GB, free: 9.301 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3995, allocations: 0 / 0.5277 GB, free: 9.301 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003747/0.3999, allocations: 262 kB / 0.528 GB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006717/0.4006, allocations: 107.4 kB / 0.5281 GB, free: 9.129 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/0.4022, allocations: 1.024 MB / 0.5291 GB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005302/0.4028, allocations: 0.8848 MB / 0.5299 GB, free: 7.828 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.4029, allocations: 43.5 kB / 0.53 GB, free: 7.816 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4029, allocations: 0 / 0.53 GB, free: 7.816 MB / 398.1 MB Notification: Performance of Templates: time 0.009865/0.4128, allocations: 5.919 MB / 0.5357 GB, free: 5.402 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/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