Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.AC3ph.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source") translateModel(PowerSystems.Examples.AC3ph.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008496/0.0008496, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1504/0.1504, allocations: 37.98 MB / 353.5 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.672e-05/2.674e-05, allocations: 0 / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09794/0.09799, allocations: 56.32 MB / 474.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3444/0.4425, allocations: 101.3 MB / 0.5619 GB, free: 1.555 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.4428, allocations: 86.77 kB / 0.562 GB, free: 1.512 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04187/0.4846, allocations: 15.09 MB / 0.5767 GB, free: 4.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.133e-06/0.4847, allocations: 0 / 0.5767 GB, free: 4.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.688e-05/0.4847, allocations: 16 kB / 0.5767 GB, free: 4.504 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001107/0.4858, allocations: 0.6656 MB / 0.5774 GB, free: 3.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.4859, allocations: 8.031 kB / 0.5774 GB, free: 3.812 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005684/0.4864, allocations: 95.36 kB / 0.5775 GB, free: 3.719 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001991/0.4884, allocations: 0.8553 MB / 0.5783 GB, free: 2.957 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.4885, allocations: 34.56 kB / 0.5784 GB, free: 2.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.459e-05/0.4886, allocations: 41.16 kB / 0.5784 GB, free: 2.898 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009195/0.4895, allocations: 0.6666 MB / 0.579 GB, free: 2.375 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.4895, allocations: 0 / 0.579 GB, free: 2.375 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.704e-05/0.4896, allocations: 13.25 kB / 0.5791 GB, free: 2.371 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001518/0.4897, allocations: 64.06 kB / 0.5791 GB, free: 2.312 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009237/0.4907, allocations: 0.6226 MB / 0.5797 GB, free: 1.875 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003254/0.4939, allocations: 2.549 MB / 0.5822 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004686/0.4944, allocations: 323.8 kB / 0.5825 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.4947, allocations: 228 kB / 0.5827 GB, free: 15.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.4947, allocations: 7.984 kB / 0.5827 GB, free: 15.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.4948, allocations: 35.94 kB / 0.5828 GB, free: 15.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 2.195e-06/0.4948, allocations: 0 / 0.5828 GB, free: 15.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=44): time 0.001688/0.4965, allocations: 1.229 MB / 0.584 GB, free: 14.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.4965, allocations: 92.97 kB / 0.5841 GB, free: 13.93 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/0.4968, allocations: 234.7 kB / 0.5843 GB, free: 13.74 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.345e-05/0.4968, allocations: 33.14 kB / 0.5843 GB, free: 13.7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.4969, allocations: 239.8 kB / 0.5846 GB, free: 13.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.4971, allocations: 150.4 kB / 0.5847 GB, free: 13.38 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.932e-05/0.4971, allocations: 5.125 kB / 0.5847 GB, free: 13.38 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.4972, allocations: 357.1 kB / 0.585 GB, free: 13.03 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002628/0.4975, allocations: 208.1 kB / 0.5852 GB, free: 12.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003257/0.4978, allocations: 313 kB / 0.5855 GB, free: 12.61 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003454/0.4982, allocations: 263.7 kB / 0.5858 GB, free: 12.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4982, allocations: 0 / 0.5858 GB, free: 12.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001124/0.4993, allocations: 0.6974 MB / 0.5865 GB, free: 11.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.4993, allocations: 8 kB / 0.5865 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007927/0.5001, allocations: 0.5158 MB / 0.587 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000402/0.5006, allocations: 111.9 kB / 0.5871 GB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.5009, allocations: 87.75 kB / 0.5872 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/0.5034, allocations: 2.999 MB / 0.5901 GB, free: 8.242 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002565/0.5037, allocations: 39.66 kB / 0.5901 GB, free: 8.211 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.215e-05/0.5037, allocations: 16 kB / 0.5902 GB, free: 8.195 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 38 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.5039, allocations: 123.6 kB / 0.5903 GB, free: 8.078 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.491e-05/0.5039, allocations: 35.53 kB / 0.5903 GB, free: 8.043 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007594/0.5047, allocations: 0.5205 MB / 0.5908 GB, free: 7.664 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.559e-05/0.5047, allocations: 16 kB / 0.5908 GB, free: 7.648 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-06/0.5047, allocations: 0 / 0.5908 GB, free: 7.648 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.5048, allocations: 3.984 kB / 0.5908 GB, free: 7.645 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.5063, allocations: 1.081 MB / 0.5919 GB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.5063, allocations: 0 / 0.5919 GB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004633/0.5067, allocations: 75.81 kB / 0.592 GB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.5068, allocations: 4 kB / 0.592 GB, free: 6.648 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.59e-05/0.5068, allocations: 19.75 kB / 0.592 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.5068, allocations: 0 / 0.592 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/0.5068, allocations: 0 / 0.592 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009378/0.5078, allocations: 0.8526 MB / 0.5928 GB, free: 5.938 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001855/0.508, allocations: 144.1 kB / 0.593 GB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.719e-05/0.508, allocations: 7.938 kB / 0.593 GB, free: 5.781 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.5083, allocations: 19.72 kB / 0.593 GB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.741e-05/0.5083, allocations: 20.14 kB / 0.593 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.661e-05/0.5083, allocations: 11.98 kB / 0.593 GB, free: 5.738 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001797/0.5085, allocations: 194 kB / 0.5932 GB, free: 5.582 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5085, allocations: 0 / 0.5932 GB, free: 5.582 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005233/0.5091, allocations: 137.8 kB / 0.5933 GB, free: 5.461 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 3 * Algorithm blocks: 0 * 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.0002729/0.5093, allocations: 146.3 kB / 0.5935 GB, free: 5.309 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001055/0.5104, allocations: 0.7485 MB / 0.5942 GB, free: 4.688 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.5104, allocations: 0 / 0.5942 GB, free: 4.688 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.5107, allocations: 239.2 kB / 0.5944 GB, free: 4.523 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.5111, allocations: 60.41 kB / 0.5945 GB, free: 4.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.5126, allocations: 0.9068 MB / 0.5954 GB, free: 3.648 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.513, allocations: 0.8891 MB / 0.5962 GB, free: 2.746 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003131/0.5134, allocations: 115.1 kB / 0.5964 GB, free: 2.637 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.5135, allocations: 27.44 kB / 0.5964 GB, free: 2.609 MB / 394.7 MB Notification: Performance of SimCode: time 5.21e-07/0.5135, allocations: 0 / 0.5964 GB, free: 2.609 MB / 394.7 MB Notification: Performance of Templates: time 0.00834/0.5218, allocations: 4.16 MB / 0.6004 GB, free: 14.47 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches