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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 110.3 kB / 17.73 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 185.4 kB / 18.67 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1765/0.1765, allocations: 38.05 MB / 330.6 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 59.89 kB / 458.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.286, allocations: 58.06 MB / 0.5048 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.006228/0.2922, allocations: 6.886 MB / 0.5115 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002261/0.2945, allocations: 1.589 MB / 0.513 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003028/0.2948, allocations: 21 kB / 0.5131 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004777/0.2953, allocations: 159.9 kB / 0.5132 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008294/0.2962, allocations: 453.2 kB / 0.5136 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005655/0.2967, allocations: 297.1 kB / 0.5139 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.2979, allocations: 1.193 MB / 0.5151 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003503/0.2982, allocations: 307.6 kB / 0.5154 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005828/0.2988, allocations: 0.5057 MB / 0.5159 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006952/0.2995, allocations: 0.5475 MB / 0.5164 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001246/0.2997, allocations: 71.66 kB / 0.5165 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001606/0.2998, allocations: 71.53 kB / 0.5166 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000345/0.3002, allocations: 346.8 kB / 0.5169 GB, free: 432 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004121/0.3006, allocations: 426.3 kB / 0.5173 GB, free: 176 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.3018, allocations: 0.9298 MB / 0.5182 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3018, allocations: 4.562 kB / 0.5182 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3018, allocations: 0.5938 kB / 0.5182 GB, free: 15.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.3018, allocations: 0 / 0.5182 GB, free: 15.79 MB / 398.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.002115/0.304, allocations: 1.185 MB / 0.5194 GB, free: 14.94 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.304, allocations: 12.33 kB / 0.5194 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.3042, allocations: 92.19 kB / 0.5195 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000951/0.3051, allocations: 0.6024 MB / 0.5201 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.754e-05/0.3052, allocations: 58.25 kB / 0.5201 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.3053, allocations: 64.8 kB / 0.5202 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.3066, allocations: 0.8315 MB / 0.521 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.3066, allocations: 5.703 kB / 0.521 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-05/0.3067, allocations: 26.78 kB / 0.521 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001981/0.3069, allocations: 57.75 kB / 0.5211 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.308, allocations: 0.6053 MB / 0.5217 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003927/0.3119, allocations: 2.969 MB / 0.5246 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.313, allocations: 0.9149 MB / 0.5254 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000607/0.3136, allocations: 418.6 kB / 0.5258 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.32e-05/0.3136, allocations: 10.86 kB / 0.5259 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008885/0.3145, allocations: 0.631 MB / 0.5265 GB, free: 10.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 3.627e-06/0.3145, allocations: 7.984 kB / 0.5265 GB, free: 10.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=82): time 0.005166/0.3197, allocations: 2.597 MB / 0.529 GB, free: 9.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.3199, allocations: 212.8 kB / 0.5292 GB, free: 9.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005443/0.3204, allocations: 495.1 kB / 0.5297 GB, free: 8.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.293e-05/0.3205, allocations: 52.08 kB / 0.5297 GB, free: 8.828 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.3207, allocations: 345.6 kB / 0.5301 GB, free: 8.551 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.321, allocations: 246.3 kB / 0.5303 GB, free: 8.363 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/0.3212, allocations: 164.8 kB / 0.5305 GB, free: 8.281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.3214, allocations: 387 kB / 0.5308 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006108/0.322, allocations: 324.5 kB / 0.5311 GB, free: 7.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000657/0.3227, allocations: 0.493 MB / 0.5316 GB, free: 7.516 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.3238, allocations: 0.8647 MB / 0.5325 GB, free: 6.941 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3238, allocations: 5.125 kB / 0.5325 GB, free: 6.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001892/0.3257, allocations: 1.103 MB / 0.5336 GB, free: 6.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.788e-05/0.3258, allocations: 59.78 kB / 0.5336 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.3258, allocations: 4.438 kB / 0.5336 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005341/0.3263, allocations: 144.5 kB / 0.5338 GB, free: 6.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009282/0.3273, allocations: 213.1 kB / 0.534 GB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003193/0.3305, allocations: 3.327 MB / 0.5372 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004789/0.331, allocations: 44.25 kB / 0.5372 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.233e-05/0.331, allocations: 34.34 kB / 0.5373 GB, free: 3.004 MB / 398.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,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pg.t0,$PRE.fault_Ab.fault_pg.t0,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,fault_Ab.fault_pg.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pp.on,fault_Ab.first,$PRE.fault_Ab.first,fault_Ab.v_pos,$PRE.fault_Ab.v_pos,fault_Ab.t_zero,$PRE.fault_Ab.t_zero,switch2.switch_2.closed,switch2.switch_2.open,$PRE.switch2.switch_2.open,switch2.switch_2.arc,$PRE.switch2.switch_2.arc,switch2.switch_1.closed,switch2.switch_1.open,$PRE.switch2.switch_1.open,switch2.switch_1.arc,$PRE.switch2.switch_1.arc,switch1.switch_2.closed,switch1.switch_2.open,$PRE.switch1.switch_2.open,switch1.switch_2.arc,$PRE.switch1.switch_2.arc,switch1.switch_1.closed,switch1.switch_1.open,$PRE.switch1.switch_1.open,switch1.switch_1.arc,$PRE.switch1.switch_1.arc,relay2.y[2],$PRE.relay2.y[2],relay2.y[1],$PRE.relay2.y[1],relay1.y[2],$PRE.relay1.y[2],relay1.y[1],$PRE.relay1.y[1],$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000486/0.3315, allocations: 364.5 kB / 0.5376 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.3317, allocations: 70.48 kB / 0.5377 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.3335, allocations: 1.033 MB / 0.5387 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.3335, allocations: 9.203 kB / 0.5387 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3335, allocations: 0 / 0.5387 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002777/0.3338, allocations: 203.3 kB / 0.5389 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.3339, allocations: 32.52 kB / 0.5389 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000345/0.3343, allocations: 36.7 kB / 0.539 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002811/0.3346, allocations: 79.64 kB / 0.539 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002767/0.3373, allocations: 1.375 MB / 0.5404 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002227/0.3396, allocations: 1.642 MB / 0.542 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006398/0.3402, allocations: 462.9 kB / 0.5424 GB, free: 15.74 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003995/0.3406, allocations: 336.2 kB / 0.5428 GB, free: 15.54 MB / 414.1 MB Notification: Performance of Backend: time 4.31e-07/0.3407, allocations: 0 / 0.5428 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002227/0.3429, allocations: 0.9861 MB / 0.5437 GB, free: 14.85 MB / 414.1 MB Notification: Performance of SimCode: time 0.002982/0.3459, allocations: 2.073 MB / 0.5457 GB, free: 13.29 MB / 414.1 MB Notification: Performance of Templates: time 0.01873/0.3646, allocations: 10.98 MB / 0.5565 GB, free: 2.574 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Fault.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches