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.00141/0.00141, allocations: 175.6 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.519/1.519, 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.0007699/0.0007699, allocations: 82.7 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1563/0.1563, allocations: 37.97 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.881e-05/2.885e-05, allocations: 0 / 417.7 MB, free: 29.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09925/0.09929, allocations: 56.31 MB / 474.1 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3755/0.4749, allocations: 100.2 MB / 0.5608 GB, free: 2.473 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.4751, allocations: 94.14 kB / 0.5609 GB, free: 2.426 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04064/0.5158, allocations: 14.97 MB / 0.5755 GB, free: 5.512 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5158, allocations: 0 / 0.5755 GB, free: 5.512 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.107e-05/0.5158, allocations: 20 kB / 0.5755 GB, free: 5.492 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.001637/0.5175, allocations: 0.9599 MB / 0.5764 GB, free: 4.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.5175, allocations: 12.03 kB / 0.5765 GB, free: 4.508 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.5177, allocations: 86.97 kB / 0.5765 GB, free: 4.422 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002898/0.5206, allocations: 1.082 MB / 0.5776 GB, free: 3.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.529e-05/0.5207, allocations: 52.12 kB / 0.5776 GB, free: 3.449 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.5208, allocations: 67 kB / 0.5777 GB, free: 3.402 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.5221, allocations: 0.8028 MB / 0.5785 GB, free: 2.777 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.5221, allocations: 0 / 0.5785 GB, free: 2.777 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.568e-05/0.5222, allocations: 35.19 kB / 0.5785 GB, free: 2.762 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.699e-05/0.5222, allocations: 19.98 kB / 0.5785 GB, free: 2.742 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008819/0.5231, allocations: 0.5844 MB / 0.5791 GB, free: 2.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003901/0.527, allocations: 2.958 MB / 0.582 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008358/0.5279, allocations: 0.5879 MB / 0.5826 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005203/0.5284, allocations: 400.7 kB / 0.583 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.5284, allocations: 4.562 kB / 0.583 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008671/0.5293, allocations: 0.6111 MB / 0.5836 GB, free: 14.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=81): time 2.455e-06/0.5293, allocations: 0 / 0.5836 GB, free: 14.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.003143/0.5325, allocations: 2.014 MB / 0.5855 GB, free: 12.86 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.5326, allocations: 204.3 kB / 0.5857 GB, free: 12.62 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005221/0.5331, allocations: 426.8 kB / 0.5861 GB, free: 12.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.777e-05/0.5332, allocations: 51.7 kB / 0.5862 GB, free: 12.24 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/0.5335, allocations: 333.2 kB / 0.5865 GB, free: 12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.5336, allocations: 241.7 kB / 0.5867 GB, free: 11.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.769e-05/0.5337, allocations: 19.69 kB / 0.5867 GB, free: 11.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.5339, allocations: 387.3 kB / 0.5871 GB, free: 11.44 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004483/0.5343, allocations: 304.5 kB / 0.5874 GB, free: 11.25 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005788/0.5349, allocations: 496.1 kB / 0.5879 GB, free: 10.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005215/0.5354, allocations: 391.1 kB / 0.5883 GB, free: 10.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5354, allocations: 4 kB / 0.5883 GB, free: 10.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001584/0.537, allocations: 1.042 MB / 0.5893 GB, free: 9.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.328e-05/0.5371, allocations: 63.34 kB / 0.5893 GB, free: 9.609 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.5371, allocations: 8 kB / 0.5893 GB, free: 9.602 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004876/0.5376, allocations: 137.2 kB / 0.5895 GB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008283/0.5385, allocations: 207.3 kB / 0.5897 GB, free: 9.281 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002955/0.5414, allocations: 3.054 MB / 0.5927 GB, free: 6.145 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005854/0.542, allocations: 51.47 kB / 0.5927 GB, free: 6.109 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.863e-05/0.5421, allocations: 39.25 kB / 0.5927 GB, free: 6.082 MB / 394.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 () * 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.0003014/0.5424, allocations: 251.8 kB / 0.593 GB, free: 5.852 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.5425, allocations: 67.16 kB / 0.593 GB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001612/0.5442, allocations: 0.9817 MB / 0.594 GB, free: 5.035 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.5442, allocations: 8 kB / 0.594 GB, free: 5.027 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.5442, allocations: 7.938 kB / 0.594 GB, free: 5.02 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.5442, allocations: 3.984 kB / 0.594 GB, free: 5.016 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002845/0.5471, allocations: 1.868 MB / 0.5958 GB, free: 3.508 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.5471, allocations: 8.031 kB / 0.5959 GB, free: 3.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006622/0.5477, allocations: 151.2 kB / 0.596 GB, free: 3.355 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000559/0.5483, allocations: 149.6 kB / 0.5961 GB, free: 3.219 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.196e-05/0.5484, allocations: 33.56 kB / 0.5962 GB, free: 3.195 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002782/0.5512, allocations: 3.041 MB / 0.5991 GB, free: 88 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.5512, allocations: 0 / 0.5991 GB, free: 88 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002203/0.5534, allocations: 1.513 MB / 0.6006 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003697/0.5538, allocations: 202.9 kB / 0.6008 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.5539, allocations: 25.81 kB / 0.6008 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000386/0.5543, allocations: 44.77 kB / 0.6009 GB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.5545, allocations: 94.34 kB / 0.601 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.296e-05/0.5546, allocations: 30.92 kB / 0.601 GB, free: 14.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003929/0.555, allocations: 321.2 kB / 0.6013 GB, free: 14.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.555, allocations: 0 / 0.6013 GB, free: 14.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000742/0.5558, allocations: 218.8 kB / 0.6015 GB, free: 14.11 MB / 410.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) * 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.0003055/0.5561, allocations: 174.5 kB / 0.6017 GB, free: 13.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001999/0.5581, allocations: 1.191 MB / 0.6028 GB, free: 12.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5581, allocations: 1.125 kB / 0.6028 GB, free: 12.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001357/0.5595, allocations: 0.8448 MB / 0.6037 GB, free: 12.19 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006991/0.5602, allocations: 137.5 kB / 0.6038 GB, free: 12.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.563, allocations: 1.431 MB / 0.6052 GB, free: 10.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006189/0.5637, allocations: 1.013 MB / 0.6062 GB, free: 9.77 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004947/0.5642, allocations: 146.1 kB / 0.6063 GB, free: 9.625 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.5644, allocations: 55.42 kB / 0.6064 GB, free: 9.574 MB / 410.7 MB Notification: Performance of SimCode: time 6.82e-07/0.5644, allocations: 0 / 0.6064 GB, free: 9.574 MB / 410.7 MB Notification: Performance of Templates: time 0.01733/0.5817, allocations: 9.191 MB / 0.6154 GB, free: 420 kB / 410.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