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.001519/0.001519, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008824/0.0008823, allocations: 95.03 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1616/0.1616, allocations: 37.99 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.753e-05/1.756e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09443/0.09446, allocations: 56.34 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.4431, allocations: 99.51 MB / 0.5531 GB, free: 11.41 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.4434, allocations: 87.95 kB / 0.5532 GB, free: 11.33 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0393/0.4827, allocations: 14.82 MB / 0.5677 GB, free: 12.33 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4828, allocations: 7.938 kB / 0.5677 GB, free: 12.32 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.79e-05/0.4828, allocations: 16 kB / 0.5677 GB, free: 12.3 MB / 411.1 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.001517/0.4843, allocations: 0.961 MB / 0.5687 GB, free: 11.28 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.4844, allocations: 12.03 kB / 0.5687 GB, free: 11.27 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.4845, allocations: 90.95 kB / 0.5688 GB, free: 11.18 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002454/0.487, allocations: 1.069 MB / 0.5698 GB, free: 10.07 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.761e-05/0.4871, allocations: 31.98 kB / 0.5698 GB, free: 10.04 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.121e-05/0.4872, allocations: 40 kB / 0.5699 GB, free: 9.996 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008558/0.488, allocations: 0.5336 MB / 0.5704 GB, free: 9.461 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.4891, allocations: 0.7204 MB / 0.5711 GB, free: 8.695 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.4891, allocations: 0 / 0.5711 GB, free: 8.695 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.584e-05/0.4892, allocations: 7.984 kB / 0.5711 GB, free: 8.688 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.4892, allocations: 16 kB / 0.5711 GB, free: 8.672 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003545/0.4928, allocations: 2.843 MB / 0.5739 GB, free: 5.727 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007789/0.4936, allocations: 0.5582 MB / 0.5744 GB, free: 5.152 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007452/0.4943, allocations: 447.3 kB / 0.5749 GB, free: 4.711 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.425e-05/0.4944, allocations: 8.562 kB / 0.5749 GB, free: 4.703 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007888/0.4952, allocations: 0.5923 MB / 0.5755 GB, free: 4.078 MB / 411.1 MB Notification: Performance of pre-optimization done (n=81): time 1.924e-06/0.4952, allocations: 0 / 0.5755 GB, free: 4.078 MB / 411.1 MB Notification: Performance of matching and sorting (n=82): time 0.002615/0.4978, allocations: 1.713 MB / 0.5771 GB, free: 2.305 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.4979, allocations: 208.7 kB / 0.5773 GB, free: 2.059 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003898/0.4983, allocations: 381.2 kB / 0.5777 GB, free: 1.68 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 5.088e-05/0.4984, allocations: 37.69 kB / 0.5777 GB, free: 1.637 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.4986, allocations: 344.1 kB / 0.5781 GB, free: 1.293 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.4988, allocations: 221 kB / 0.5783 GB, free: 1.074 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.4988, allocations: 0 / 0.5783 GB, free: 1.074 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.499, allocations: 382.7 kB / 0.5786 GB, free: 0.6914 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004214/0.4994, allocations: 286.5 kB / 0.5789 GB, free: 420 kB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005291/0.5, allocations: 470.6 kB / 0.5794 GB, free: 15.89 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004345/0.5004, allocations: 320.3 kB / 0.5797 GB, free: 15.57 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.5004, allocations: 3.938 kB / 0.5797 GB, free: 15.57 MB / 427.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001404/0.5018, allocations: 0.907 MB / 0.5805 GB, free: 14.65 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.207e-05/0.5019, allocations: 59.41 kB / 0.5806 GB, free: 14.58 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.5019, allocations: 4 kB / 0.5806 GB, free: 14.58 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004512/0.5024, allocations: 137.9 kB / 0.5807 GB, free: 14.44 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008153/0.5032, allocations: 215.7 kB / 0.5809 GB, free: 14.23 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002652/0.5059, allocations: 2.934 MB / 0.5838 GB, free: 11.06 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/0.5063, allocations: 39.86 kB / 0.5838 GB, free: 11.02 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.524e-05/0.5063, allocations: 32 kB / 0.5839 GB, free: 10.99 MB / 427.1 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.0002214/0.5065, allocations: 225.4 kB / 0.5841 GB, free: 10.75 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.948e-05/0.5066, allocations: 71.16 kB / 0.5842 GB, free: 10.68 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001379/0.508, allocations: 0.8451 MB / 0.585 GB, free: 9.824 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.5081, allocations: 8 kB / 0.585 GB, free: 9.816 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.5081, allocations: 4 kB / 0.585 GB, free: 9.812 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.5081, allocations: 3.984 kB / 0.585 GB, free: 9.809 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002378/0.5105, allocations: 1.656 MB / 0.5866 GB, free: 8.098 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.5105, allocations: 4 kB / 0.5866 GB, free: 8.094 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006389/0.5111, allocations: 155.8 kB / 0.5868 GB, free: 7.941 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005057/0.5116, allocations: 137.6 kB / 0.5869 GB, free: 7.801 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.291e-05/0.5117, allocations: 19.97 kB / 0.5869 GB, free: 7.781 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002525/0.5142, allocations: 2.941 MB / 0.5898 GB, free: 4.605 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5143, allocations: 8.141 kB / 0.5898 GB, free: 4.598 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.5162, allocations: 1.384 MB / 0.5912 GB, free: 3.176 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002575/0.5164, allocations: 200.3 kB / 0.5913 GB, free: 2.961 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.5165, allocations: 19.98 kB / 0.5914 GB, free: 2.941 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003451/0.5169, allocations: 31.95 kB / 0.5914 GB, free: 2.91 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.5171, allocations: 88.59 kB / 0.5915 GB, free: 2.824 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.762e-05/0.5171, allocations: 31.98 kB / 0.5915 GB, free: 2.793 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0003031/0.5175, allocations: 290.9 kB / 0.5918 GB, free: 2.508 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5175, allocations: 3.938 kB / 0.5918 GB, free: 2.504 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0006088/0.5181, allocations: 188 kB / 0.592 GB, free: 2.32 MB / 427.1 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.000251/0.5183, allocations: 156.1 kB / 0.5921 GB, free: 2.16 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.52, allocations: 1.125 MB / 0.5932 GB, free: 0.9883 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.52, allocations: 0 / 0.5932 GB, free: 0.9883 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.5213, allocations: 0.8142 MB / 0.594 GB, free: 136 kB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006118/0.5219, allocations: 121.9 kB / 0.5941 GB, free: 12 kB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.5244, allocations: 1.4 MB / 0.5955 GB, free: 14.57 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005702/0.5249, allocations: 1.01 MB / 0.5965 GB, free: 13.53 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0004114/0.5254, allocations: 142 kB / 0.5966 GB, free: 13.39 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.5255, allocations: 55.42 kB / 0.5967 GB, free: 13.34 MB / 443.1 MB Notification: Performance of SimCode: time 2.41e-07/0.5255, allocations: 0 / 0.5967 GB, free: 13.34 MB / 443.1 MB Notification: Performance of Templates: time 0.01456/0.5401, allocations: 8.412 MB / 0.6049 GB, free: 4.938 MB / 443.1 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