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.001216/0.001216, allocations: 180.1 kB / 16.38 MB, free: 5.766 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.267/1.267, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0007742/0.000774, allocations: 90.64 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1663/0.1663, allocations: 38.06 MB / 357.2 MB, free: 1.879 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003898/0.0003898, allocations: 11.98 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3, allocations: 56.31 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1302/0.4302, allocations: 101.4 MB / 0.5681 GB, free: 0.9766 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.4305, allocations: 87.95 kB / 0.5682 GB, free: 0.8906 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04123/0.4718, allocations: 15.12 MB / 0.5829 GB, free: 1.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4718, allocations: 0 / 0.5829 GB, free: 1.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.406e-05/0.4718, allocations: 12 kB / 0.583 GB, free: 1.578 MB / 410.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.001265/0.4731, allocations: 0.7268 MB / 0.5837 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.4732, allocations: 12.03 kB / 0.5837 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005346/0.4737, allocations: 91.28 kB / 0.5838 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002051/0.4758, allocations: 0.8567 MB / 0.5846 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.262e-05/0.4758, allocations: 28.98 kB / 0.5846 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.774e-05/0.4759, allocations: 36 kB / 0.5847 GB, free: 15.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009471/0.4769, allocations: 0.6725 MB / 0.5853 GB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.4769, allocations: 3.938 kB / 0.5853 GB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.928e-05/0.477, allocations: 19.98 kB / 0.5853 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000142/0.4771, allocations: 68.89 kB / 0.5854 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009105/0.478, allocations: 0.6323 MB / 0.586 GB, free: 14.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00345/0.4815, allocations: 2.554 MB / 0.5885 GB, free: 11.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004855/0.482, allocations: 336.3 kB / 0.5888 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.852e-05/0.482, allocations: 11.98 kB / 0.5889 GB, free: 11.26 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.4821, allocations: 38.56 kB / 0.5889 GB, free: 11.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 3.997e-06/0.4821, allocations: 0 / 0.5889 GB, free: 11.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.002128/0.4842, allocations: 1.656 MB / 0.5905 GB, free: 9.441 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.4843, allocations: 85.11 kB / 0.5906 GB, free: 9.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.4845, allocations: 242.1 kB / 0.5908 GB, free: 9.094 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.4846, allocations: 29.7 kB / 0.5908 GB, free: 9.059 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.4847, allocations: 239.8 kB / 0.5911 GB, free: 8.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.4848, allocations: 153.7 kB / 0.5912 GB, free: 8.668 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.218e-05/0.4849, allocations: 11.98 kB / 0.5912 GB, free: 8.656 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.485, allocations: 354.9 kB / 0.5916 GB, free: 8.301 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002682/0.4853, allocations: 204.9 kB / 0.5918 GB, free: 8.102 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003307/0.4856, allocations: 322.7 kB / 0.5921 GB, free: 7.738 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003419/0.486, allocations: 268.2 kB / 0.5923 GB, free: 7.473 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.486, allocations: 4 kB / 0.5923 GB, free: 7.469 MB / 426.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001132/0.4871, allocations: 0.6898 MB / 0.593 GB, free: 6.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.4872, allocations: 8 kB / 0.593 GB, free: 6.762 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008385/0.488, allocations: 0.519 MB / 0.5935 GB, free: 6.234 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004239/0.4884, allocations: 117.9 kB / 0.5936 GB, free: 6.113 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.4888, allocations: 79.88 kB / 0.5937 GB, free: 6.035 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002681/0.4914, allocations: 3.041 MB / 0.5967 GB, free: 2.727 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002536/0.4917, allocations: 36.03 kB / 0.5967 GB, free: 2.691 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.956e-05/0.4918, allocations: 16 kB / 0.5967 GB, free: 2.676 MB / 426.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 () * Number of clocked 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.0002632/0.492, allocations: 205.7 kB / 0.5969 GB, free: 2.465 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.09e-05/0.4921, allocations: 31.62 kB / 0.597 GB, free: 2.434 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007905/0.4929, allocations: 0.5242 MB / 0.5975 GB, free: 1.902 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.282e-05/0.4929, allocations: 16 kB / 0.5975 GB, free: 1.887 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.4929, allocations: 4 kB / 0.5975 GB, free: 1.883 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.493, allocations: 8.203 kB / 0.5975 GB, free: 1.875 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001573/0.4945, allocations: 1.084 MB / 0.5986 GB, free: 0.7305 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.4946, allocations: 0 / 0.5986 GB, free: 0.7305 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004343/0.495, allocations: 75.88 kB / 0.5986 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.495, allocations: 7.984 kB / 0.5986 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.185e-05/0.4951, allocations: 16.05 kB / 0.5987 GB, free: 0.6328 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.4951, allocations: 3.953 kB / 0.5987 GB, free: 0.6289 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.4951, allocations: 4 kB / 0.5987 GB, free: 0.625 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.4961, allocations: 0.8558 MB / 0.5995 GB, free: 15.73 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001901/0.4963, allocations: 148.6 kB / 0.5996 GB, free: 15.56 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.918e-05/0.4963, allocations: 11.98 kB / 0.5996 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002202/0.4966, allocations: 19.91 kB / 0.5997 GB, free: 15.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/0.4966, allocations: 24.2 kB / 0.5997 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.4967, allocations: 8 kB / 0.5997 GB, free: 15.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001822/0.4968, allocations: 193.9 kB / 0.5999 GB, free: 15.31 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4969, allocations: 0 / 0.5999 GB, free: 15.31 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005411/0.4974, allocations: 143.9 kB / 0.6 GB, free: 15.17 MB / 442.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 () * Number of clocked 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.0002347/0.4976, allocations: 155 kB / 0.6002 GB, free: 15.01 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.4987, allocations: 0.7417 MB / 0.6009 GB, free: 14.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4988, allocations: 0 / 0.6009 GB, free: 14.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.4991, allocations: 232.2 kB / 0.6011 GB, free: 14.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.4995, allocations: 71.16 kB / 0.6012 GB, free: 13.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.5012, allocations: 1.385 MB / 0.6025 GB, free: 12.54 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004994/0.5017, allocations: 0.8866 MB / 0.6034 GB, free: 11.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003122/0.5021, allocations: 103.2 kB / 0.6035 GB, free: 11.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.887e-05/0.5022, allocations: 35.42 kB / 0.6035 GB, free: 11.48 MB / 442.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5022, allocations: 0 / 0.6035 GB, free: 11.48 MB / 442.7 MB Notification: Performance of Templates: time 0.008831/0.511, allocations: 4.15 MB / 0.6076 GB, free: 7.34 MB / 442.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