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.001564/0.001564, allocations: 182.7 kB / 16.39 MB, free: 5.762 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.506/1.506, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.000993/0.0009929, allocations: 96.39 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1762/0.1762, allocations: 38.05 MB / 357.2 MB, free: 1.879 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.0003422, allocations: 12 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.308, allocations: 56.31 MB / 480.3 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1432/0.4513, allocations: 100.3 MB / 0.567 GB, free: 2.133 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.4516, allocations: 91.95 kB / 0.5671 GB, free: 2.043 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04184/0.4935, allocations: 14.97 MB / 0.5817 GB, free: 2.867 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4935, allocations: 0 / 0.5817 GB, free: 2.867 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.175e-05/0.4936, allocations: 24 kB / 0.5817 GB, free: 2.844 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.001971/0.4955, allocations: 1.07 MB / 0.5828 GB, free: 1.703 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.4956, allocations: 12.03 kB / 0.5828 GB, free: 1.691 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00016/0.4958, allocations: 90.89 kB / 0.5829 GB, free: 1.602 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002672/0.4984, allocations: 1.098 MB / 0.5839 GB, free: 472 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.266e-05/0.4985, allocations: 49.31 kB / 0.584 GB, free: 424 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.4986, allocations: 64 kB / 0.584 GB, free: 360 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.4999, allocations: 0.8094 MB / 0.5848 GB, free: 15.49 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.5, allocations: 3.984 kB / 0.5848 GB, free: 15.49 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.428e-05/0.5, allocations: 31.95 kB / 0.5849 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.5001, allocations: 20 kB / 0.5849 GB, free: 15.44 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009716/0.501, allocations: 0.5983 MB / 0.5855 GB, free: 14.84 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004058/0.5051, allocations: 2.958 MB / 0.5884 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008831/0.506, allocations: 0.5944 MB / 0.5889 GB, free: 11.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-05/0.506, allocations: 12.58 kB / 0.5889 GB, free: 11.15 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008686/0.5069, allocations: 0.6195 MB / 0.5895 GB, free: 10.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=81): time 2.435e-06/0.5069, allocations: 0 / 0.5895 GB, free: 10.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=82): time 0.004423/0.5114, allocations: 2.67 MB / 0.5922 GB, free: 7.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.5115, allocations: 208.5 kB / 0.5924 GB, free: 7.414 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004967/0.512, allocations: 433.1 kB / 0.5928 GB, free: 6.984 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.531e-05/0.5121, allocations: 57.62 kB / 0.5928 GB, free: 6.922 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002699/0.5124, allocations: 332.2 kB / 0.5931 GB, free: 6.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.5126, allocations: 237 kB / 0.5934 GB, free: 6.355 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.886e-05/0.5126, allocations: 16 kB / 0.5934 GB, free: 6.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.5128, allocations: 390.7 kB / 0.5938 GB, free: 5.949 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005302/0.5134, allocations: 317.8 kB / 0.5941 GB, free: 5.637 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006531/0.514, allocations: 0.4904 MB / 0.5945 GB, free: 5.078 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005792/0.5146, allocations: 398.2 kB / 0.5949 GB, free: 4.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.5146, allocations: 0 / 0.5949 GB, free: 4.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001817/0.5164, allocations: 1.068 MB / 0.596 GB, free: 3.586 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.849e-05/0.5165, allocations: 62.06 kB / 0.596 GB, free: 3.516 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.5165, allocations: 4 kB / 0.596 GB, free: 3.512 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005559/0.5171, allocations: 138 kB / 0.5962 GB, free: 3.371 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00084/0.518, allocations: 207.7 kB / 0.5963 GB, free: 3.168 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003149/0.5211, allocations: 3.088 MB / 0.5994 GB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/0.5216, allocations: 47.97 kB / 0.5994 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-05/0.5217, allocations: 36 kB / 0.5994 GB, free: 15.73 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.0005545/0.5223, allocations: 358.3 kB / 0.5998 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.5224, allocations: 71.16 kB / 0.5999 GB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001627/0.524, allocations: 0.9995 MB / 0.6008 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.5241, allocations: 8 kB / 0.6008 GB, free: 14.26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.5241, allocations: 4 kB / 0.6008 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.5241, allocations: 7.984 kB / 0.6008 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003102/0.5272, allocations: 1.882 MB / 0.6027 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.5272, allocations: 3.938 kB / 0.6027 GB, free: 12.28 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006706/0.5279, allocations: 151.9 kB / 0.6028 GB, free: 12.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006046/0.5285, allocations: 149.5 kB / 0.603 GB, free: 11.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-05/0.5286, allocations: 31.94 kB / 0.603 GB, free: 11.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003022/0.5316, allocations: 3.068 MB / 0.606 GB, free: 8.609 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.5316, allocations: 4.062 kB / 0.606 GB, free: 8.605 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/0.5341, allocations: 1.539 MB / 0.6075 GB, free: 7.016 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004549/0.5346, allocations: 204.3 kB / 0.6077 GB, free: 6.797 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/0.5348, allocations: 28.08 kB / 0.6077 GB, free: 6.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004651/0.5352, allocations: 39.95 kB / 0.6078 GB, free: 6.73 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/0.5355, allocations: 100.4 kB / 0.6079 GB, free: 6.633 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.959e-05/0.5356, allocations: 31.98 kB / 0.6079 GB, free: 6.602 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004707/0.536, allocations: 326.9 kB / 0.6082 GB, free: 6.281 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5361, allocations: 0 / 0.6082 GB, free: 6.281 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000956/0.537, allocations: 223.9 kB / 0.6084 GB, free: 6.062 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.0003299/0.5374, allocations: 163 kB / 0.6086 GB, free: 5.891 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002288/0.5396, allocations: 1.208 MB / 0.6098 GB, free: 4.629 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.5397, allocations: 0 / 0.6098 GB, free: 4.629 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.5412, allocations: 0.8557 MB / 0.6106 GB, free: 3.723 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008077/0.542, allocations: 137.8 kB / 0.6107 GB, free: 3.59 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004135/0.5462, allocations: 2.084 MB / 0.6128 GB, free: 1.465 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008044/0.547, allocations: 1.013 MB / 0.6138 GB, free: 436 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005298/0.5476, allocations: 154.1 kB / 0.6139 GB, free: 280 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.5477, allocations: 55.44 kB / 0.614 GB, free: 228 kB / 442.7 MB Notification: Performance of SimCode: time 8.22e-07/0.5477, allocations: 0 / 0.614 GB, free: 228 kB / 442.7 MB Notification: Performance of Templates: time 0.01826/0.566, allocations: 9.073 MB / 0.6228 GB, free: 7.164 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/jenkins/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