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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009886/0.0009885, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009589/0.0009587, allocations: 87.22 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.19/0.19, allocations: 38 MB / 348.1 MB, free: 7.758 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.684e-05/1.69e-05, allocations: 0 / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1039, allocations: 56.33 MB / 466.9 MB, free: 6.555 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.339/0.4429, allocations: 99.28 MB / 0.5529 GB, free: 11.6 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.4432, allocations: 89.39 kB / 0.553 GB, free: 11.52 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03472/0.478, allocations: 11.4 MB / 0.5641 GB, free: 15.99 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.478, allocations: 0 / 0.5641 GB, free: 15.99 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.657e-05/0.4781, allocations: 12 kB / 0.5641 GB, free: 15.98 MB / 411.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.001343/0.4794, allocations: 0.7563 MB / 0.5649 GB, free: 15.16 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.4795, allocations: 8.031 kB / 0.5649 GB, free: 15.16 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.4796, allocations: 67.2 kB / 0.565 GB, free: 15.09 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003588/0.4832, allocations: 1.214 MB / 0.5661 GB, free: 13.83 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.4833, allocations: 12 kB / 0.5662 GB, free: 13.82 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.819e-05/0.4834, allocations: 24 kB / 0.5662 GB, free: 13.8 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000668/0.484, allocations: 354.5 kB / 0.5665 GB, free: 13.45 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007344/0.4848, allocations: 477 kB / 0.567 GB, free: 12.95 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.4848, allocations: 0 / 0.567 GB, free: 12.95 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.4849, allocations: 4 kB / 0.567 GB, free: 12.95 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-05/0.4849, allocations: 24.73 kB / 0.567 GB, free: 12.92 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002468/0.4874, allocations: 1.852 MB / 0.5688 GB, free: 10.97 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005608/0.488, allocations: 309.4 kB / 0.5691 GB, free: 10.65 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002811/0.4883, allocations: 173.9 kB / 0.5693 GB, free: 10.48 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.492e-05/0.4883, allocations: 11.98 kB / 0.5693 GB, free: 10.46 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003615/0.4887, allocations: 260.2 kB / 0.5695 GB, free: 10.18 MB / 411.1 MB Notification: Performance of pre-optimization done (n=35): time 4.308e-06/0.4887, allocations: 3.984 kB / 0.5695 GB, free: 10.18 MB / 411.1 MB Notification: Performance of matching and sorting (n=36): time 0.001595/0.4903, allocations: 0.9083 MB / 0.5704 GB, free: 9.215 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.4904, allocations: 166.2 kB / 0.5706 GB, free: 9.016 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003799/0.4908, allocations: 329.1 kB / 0.5709 GB, free: 8.691 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.4908, allocations: 25.7 kB / 0.5709 GB, free: 8.66 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/0.4911, allocations: 291.6 kB / 0.5712 GB, free: 8.371 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.663e-05/0.4912, allocations: 110.4 kB / 0.5713 GB, free: 8.262 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.681e-05/0.4912, allocations: 7.875 kB / 0.5713 GB, free: 8.254 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.4914, allocations: 358.8 kB / 0.5716 GB, free: 7.895 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.4916, allocations: 113.1 kB / 0.5718 GB, free: 7.781 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.4918, allocations: 265.1 kB / 0.572 GB, free: 7.449 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.4921, allocations: 149 kB / 0.5721 GB, free: 7.305 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.4921, allocations: 4 kB / 0.5722 GB, free: 7.301 MB / 411.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006614/0.4928, allocations: 437.1 kB / 0.5726 GB, free: 6.867 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.4928, allocations: 33.7 kB / 0.5726 GB, free: 6.828 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.4928, allocations: 4 kB / 0.5726 GB, free: 6.824 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.4928, allocations: 15.95 kB / 0.5726 GB, free: 6.809 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004459/0.4933, allocations: 107.8 kB / 0.5727 GB, free: 6.703 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.4933, allocations: 8 kB / 0.5727 GB, free: 6.695 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003026/0.4936, allocations: 20.05 kB / 0.5727 GB, free: 6.676 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.156e-05/0.4937, allocations: 39.91 kB / 0.5728 GB, free: 6.637 MB / 411.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,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001604/0.4939, allocations: 158.5 kB / 0.5729 GB, free: 6.469 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.555e-05/0.4939, allocations: 47.44 kB / 0.573 GB, free: 6.422 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000644/0.4946, allocations: 386 kB / 0.5734 GB, free: 6.035 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.4946, allocations: 7.953 kB / 0.5734 GB, free: 6.027 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4946, allocations: 4 kB / 0.5734 GB, free: 6.023 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4946, allocations: 0 / 0.5734 GB, free: 6.023 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.4958, allocations: 0.8352 MB / 0.5742 GB, free: 5.141 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4958, allocations: 0 / 0.5742 GB, free: 5.141 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003225/0.4961, allocations: 59.91 kB / 0.5742 GB, free: 5.082 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.4962, allocations: 4 kB / 0.5742 GB, free: 5.078 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.094e-05/0.4962, allocations: 15.94 kB / 0.5743 GB, free: 5.062 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.4962, allocations: 0 / 0.5743 GB, free: 5.062 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4962, allocations: 0 / 0.5743 GB, free: 5.062 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009044/0.4971, allocations: 0.6566 MB / 0.5749 GB, free: 4.371 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001826/0.4973, allocations: 136.5 kB / 0.575 GB, free: 4.219 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.687e-05/0.4974, allocations: 11.98 kB / 0.575 GB, free: 4.207 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.4976, allocations: 8 kB / 0.575 GB, free: 4.199 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.367e-05/0.4977, allocations: 27.97 kB / 0.5751 GB, free: 4.172 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.437e-05/0.4978, allocations: 31.95 kB / 0.5751 GB, free: 4.141 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002839/0.4981, allocations: 247 kB / 0.5753 GB, free: 3.902 MB / 411.1 MB Notification: Performance of sort global known variables: time 2.374e-06/0.4981, allocations: 0 / 0.5753 GB, free: 3.902 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.000551/0.4986, allocations: 99.94 kB / 0.5754 GB, free: 3.805 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002493/0.4989, allocations: 148.2 kB / 0.5756 GB, free: 3.656 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0005559/0.4995, allocations: 367.1 kB / 0.5759 GB, free: 3.285 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4995, allocations: 1.375 kB / 0.5759 GB, free: 3.285 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002936/0.4998, allocations: 251.2 kB / 0.5762 GB, free: 3.027 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005418/0.5003, allocations: 93.78 kB / 0.5763 GB, free: 2.938 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.5017, allocations: 0.6882 MB / 0.5769 GB, free: 2.211 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.5022, allocations: 0.8937 MB / 0.5778 GB, free: 1.293 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.000343/0.5026, allocations: 84.31 kB / 0.5779 GB, free: 1.211 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.955e-05/0.5027, allocations: 39.42 kB / 0.5779 GB, free: 1.172 MB / 411.1 MB Notification: Performance of SimCode: time 8.52e-07/0.5027, allocations: 0 / 0.5779 GB, free: 1.172 MB / 411.1 MB Notification: Performance of Templates: time 0.009194/0.5119, allocations: 3.792 MB / 0.5816 GB, free: 13.39 MB / 427.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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches