Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.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.Fault,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001403/0.001403, allocations: 180.8 kB / 17.4 MB, free: 4.293 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.621/1.621, allocations: 205.4 MB / 223.5 MB, free: 9.016 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.0007867/0.0007866, allocations: 86.36 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2179/0.2179, allocations: 38.07 MB / 358.2 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003858/0.0003859, allocations: 15.98 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2925, allocations: 56.32 MB / 481.6 MB, free: 9.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.4261, allocations: 100.3 MB / 0.5682 GB, free: 1.938 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.4264, allocations: 99.81 kB / 0.5683 GB, free: 1.844 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04202/0.4685, allocations: 14.95 MB / 0.5829 GB, free: 2.688 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4685, allocations: 3.984 kB / 0.5829 GB, free: 2.684 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.724e-05/0.4686, allocations: 16 kB / 0.583 GB, free: 2.668 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002396/0.471, allocations: 1.07 MB / 0.584 GB, free: 1.531 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.471, allocations: 8.031 kB / 0.584 GB, free: 1.523 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003524/0.4714, allocations: 87.91 kB / 0.5841 GB, free: 1.438 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00194/0.4733, allocations: 0.7794 MB / 0.5848 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.607e-05/0.4734, allocations: 66.36 kB / 0.5849 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/0.4736, allocations: 60 kB / 0.585 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.475, allocations: 0.8201 MB / 0.5858 GB, free: 15.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.475, allocations: 0 / 0.5858 GB, free: 15.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.617e-05/0.4751, allocations: 27.98 kB / 0.5858 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.4751, allocations: 16 kB / 0.5858 GB, free: 15.58 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.4761, allocations: 0.6022 MB / 0.5864 GB, free: 14.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003923/0.4801, allocations: 2.962 MB / 0.5893 GB, free: 11.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009001/0.481, allocations: 0.5994 MB / 0.5899 GB, free: 11.29 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005403/0.4815, allocations: 399.3 kB / 0.5903 GB, free: 10.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.4816, allocations: 8.844 kB / 0.5903 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008235/0.4824, allocations: 0.6116 MB / 0.5909 GB, free: 10.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=81): time 2.434e-06/0.4824, allocations: 4 kB / 0.5909 GB, free: 10.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=82): time 0.004177/0.4866, allocations: 2.509 MB / 0.5933 GB, free: 7.598 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.4867, allocations: 212.5 kB / 0.5935 GB, free: 7.348 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005612/0.4873, allocations: 482 kB / 0.594 GB, free: 6.867 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.843e-05/0.4874, allocations: 45.7 kB / 0.594 GB, free: 6.816 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002474/0.4876, allocations: 343 kB / 0.5944 GB, free: 6.477 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/0.4879, allocations: 236.9 kB / 0.5946 GB, free: 6.242 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.12e-05/0.4879, allocations: 20 kB / 0.5946 GB, free: 6.223 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.4881, allocations: 386.7 kB / 0.595 GB, free: 5.836 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005346/0.4886, allocations: 317.8 kB / 0.5953 GB, free: 5.523 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006279/0.4893, allocations: 0.4976 MB / 0.5958 GB, free: 4.957 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.4903, allocations: 0.8556 MB / 0.5966 GB, free: 4.008 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.4903, allocations: 4 kB / 0.5966 GB, free: 4.004 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001674/0.492, allocations: 1.072 MB / 0.5976 GB, free: 2.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.768e-05/0.4921, allocations: 59.41 kB / 0.5977 GB, free: 2.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.4921, allocations: 8 kB / 0.5977 GB, free: 2.832 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005153/0.4927, allocations: 133.8 kB / 0.5978 GB, free: 2.695 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008013/0.4935, allocations: 211.7 kB / 0.598 GB, free: 2.488 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00286/0.4964, allocations: 3.06 MB / 0.601 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005641/0.4969, allocations: 43.97 kB / 0.6011 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.878e-05/0.497, allocations: 36 kB / 0.6011 GB, free: 15.08 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 64 (system.initime,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pg.t0,fault_Ab.fault_pg.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch1.switch_2.arc,switch1.switch_2.arc,$PRE.switch1.switch_2.open,switch1.switch_2.open,switch1.switch_2.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.switch2.switch_2.arc,switch2.switch_2.arc,$PRE.switch2.switch_2.open,switch2.switch_2.open,switch2.switch_2.closed,$PRE.fault_Ab.t_zero,fault_Ab.t_zero,$PRE.fault_Ab.v_pos,fault_Ab.v_pos,$PRE.fault_Ab.first,fault_Ab.first,$PRE.fault_Ab.fault_pp.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pg.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005975/0.4976, allocations: 366.1 kB / 0.6014 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.4978, allocations: 71.16 kB / 0.6015 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001653/0.4994, allocations: 0.9957 MB / 0.6025 GB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.4995, allocations: 11.94 kB / 0.6025 GB, free: 13.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4995, allocations: 0 / 0.6025 GB, free: 13.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.4995, allocations: 3.984 kB / 0.6025 GB, free: 13.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003346/0.5029, allocations: 1.878 MB / 0.6043 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.5029, allocations: 0 / 0.6043 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007766/0.5037, allocations: 155.8 kB / 0.6045 GB, free: 11.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006773/0.5044, allocations: 141.5 kB / 0.6046 GB, free: 11.34 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.017e-05/0.5045, allocations: 27.98 kB / 0.6046 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002876/0.5073, allocations: 3.052 MB / 0.6076 GB, free: 7.996 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5074, allocations: 3.938 kB / 0.6076 GB, free: 7.992 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002326/0.5097, allocations: 1.52 MB / 0.6091 GB, free: 6.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003517/0.5101, allocations: 208.2 kB / 0.6093 GB, free: 6.207 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.5102, allocations: 27.98 kB / 0.6093 GB, free: 6.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004366/0.5107, allocations: 47.95 kB / 0.6094 GB, free: 6.133 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.5109, allocations: 84.47 kB / 0.6095 GB, free: 6.051 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.927e-05/0.511, allocations: 31.98 kB / 0.6095 GB, free: 6.02 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004349/0.5114, allocations: 330.8 kB / 0.6098 GB, free: 5.695 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5114, allocations: 0 / 0.6098 GB, free: 5.695 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008772/0.5123, allocations: 216 kB / 0.61 GB, free: 5.484 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (line.i1[1],line.i1[2],line.i2[1],line.i2[2]) * Number of discrete variables: 43 (switch1.switch_2.closed,switch1.switch_1.closed,switch2.switch_1.closed,switch2.switch_2.closed,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,relay1.y[1],relay1.y[2],relay1.cnt,relay2.y[1],relay2.y[2],relay2.cnt,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_2.arc,switch1.switch_2.open,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_2.arc,switch2.switch_2.open,fault_Ab.t_zero,fault_Ab.v_pos,fault_Ab.first,fault_Ab.fault_pp.on,fault_Ab.fault_pp.t0,fault_Ab.fault_pg.on,fault_Ab.fault_pg.t0,system.initime) * Number of discrete states: 17 (fault_Ab.t_zero,fault_Ab.fault_pp.on,fault_Ab.fault_pg.on,fault_Ab.v_pos,fault_Ab.first,relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_2.open,switch2.switch_1.open,relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,switch1.switch_2.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 9 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002784/0.5126, allocations: 167 kB / 0.6102 GB, free: 5.312 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.5146, allocations: 1.201 MB / 0.6114 GB, free: 4.062 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5147, allocations: 0 / 0.6114 GB, free: 4.062 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.516, allocations: 0.8595 MB / 0.6122 GB, free: 3.148 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008995/0.5169, allocations: 146.3 kB / 0.6123 GB, free: 3.004 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003492/0.5204, allocations: 2.096 MB / 0.6144 GB, free: 0.8672 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005928/0.521, allocations: 1.001 MB / 0.6154 GB, free: 15.84 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004811/0.5215, allocations: 146.1 kB / 0.6155 GB, free: 15.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001608/0.5217, allocations: 51.44 kB / 0.6155 GB, free: 15.65 MB / 458.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5217, allocations: 0 / 0.6155 GB, free: 15.65 MB / 458.7 MB Notification: Performance of Templates: time 0.0175/0.5392, allocations: 9.156 MB / 0.6245 GB, free: 6.508 MB / 458.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Fault.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches