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.001821/0.001821, allocations: 110.3 kB / 17.75 MB, free: 5.355 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.001987/0.001988, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.344/1.344, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1828/0.1828, allocations: 38.04 MB / 330.6 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.91 kB / 458.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3004, allocations: 58.05 MB / 0.5048 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.00656/0.307, allocations: 6.893 MB / 0.5115 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002658/0.3097, allocations: 1.575 MB / 0.513 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003148/0.31, allocations: 21.22 kB / 0.5131 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005052/0.3105, allocations: 159.9 kB / 0.5132 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008876/0.3114, allocations: 454 kB / 0.5137 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006326/0.3121, allocations: 296.7 kB / 0.5139 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001154/0.3133, allocations: 1.193 MB / 0.5151 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003642/0.3136, allocations: 299 kB / 0.5154 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006239/0.3143, allocations: 0.5043 MB / 0.5159 GB, free: 380 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007477/0.315, allocations: 0.5494 MB / 0.5164 GB, free: 156 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.3151, allocations: 70.41 kB / 0.5165 GB, free: 156 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.3153, allocations: 76.91 kB / 0.5166 GB, free: 152 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003199/0.3156, allocations: 342.9 kB / 0.5169 GB, free: 24 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005216/0.3162, allocations: 429.3 kB / 0.5173 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.3174, allocations: 0.9299 MB / 0.5182 GB, free: 15.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.3174, allocations: 4.656 kB / 0.5182 GB, free: 15.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3175, allocations: 4.5 kB / 0.5182 GB, free: 15.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.502e-05/0.3175, allocations: 0 / 0.5182 GB, free: 15.39 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.00237/0.3199, allocations: 1.163 MB / 0.5193 GB, free: 14.56 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.3199, allocations: 14.06 kB / 0.5194 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.3201, allocations: 91.53 kB / 0.5194 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009444/0.321, allocations: 0.5922 MB / 0.52 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.656e-05/0.3211, allocations: 56.52 kB / 0.5201 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.3212, allocations: 63.61 kB / 0.5201 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.3226, allocations: 0.8375 MB / 0.521 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.3226, allocations: 1.562 kB / 0.521 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.169e-05/0.3227, allocations: 30.75 kB / 0.521 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001975/0.3229, allocations: 51.19 kB / 0.521 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.324, allocations: 0.6136 MB / 0.5216 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00394/0.3279, allocations: 2.962 MB / 0.5245 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.329, allocations: 0.9136 MB / 0.5254 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006094/0.3296, allocations: 422.7 kB / 0.5258 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.89e-05/0.3297, allocations: 11.16 kB / 0.5258 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009218/0.3306, allocations: 0.6224 MB / 0.5264 GB, free: 10.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 2.635e-06/0.3306, allocations: 4 kB / 0.5264 GB, free: 10.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=82): time 0.004553/0.3352, allocations: 2.583 MB / 0.529 GB, free: 8.988 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.3353, allocations: 205.2 kB / 0.5292 GB, free: 8.762 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005609/0.3359, allocations: 495 kB / 0.5296 GB, free: 8.531 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.047e-05/0.3359, allocations: 49.12 kB / 0.5297 GB, free: 8.488 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002407/0.3362, allocations: 340.1 kB / 0.53 GB, free: 8.215 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001937/0.3364, allocations: 233.1 kB / 0.5302 GB, free: 8.039 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002383/0.3366, allocations: 167.6 kB / 0.5304 GB, free: 7.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3368, allocations: 384.9 kB / 0.5308 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005391/0.3374, allocations: 327.4 kB / 0.5311 GB, free: 7.496 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006474/0.338, allocations: 0.4967 MB / 0.5316 GB, free: 7.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.3391, allocations: 0.8649 MB / 0.5324 GB, free: 6.609 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3391, allocations: 5.062 kB / 0.5324 GB, free: 6.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001867/0.341, allocations: 1.101 MB / 0.5335 GB, free: 6.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.579e-05/0.3411, allocations: 67.83 kB / 0.5335 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.3411, allocations: 4.406 kB / 0.5335 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004763/0.3416, allocations: 137.1 kB / 0.5337 GB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008407/0.3424, allocations: 212.4 kB / 0.5339 GB, free: 5.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003028/0.3455, allocations: 3.323 MB / 0.5371 GB, free: 2.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005357/0.346, allocations: 48.28 kB / 0.5372 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.378e-05/0.3461, allocations: 37.97 kB / 0.5372 GB, free: 2.754 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.000493/0.3466, allocations: 368.1 kB / 0.5376 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.3467, allocations: 70.38 kB / 0.5376 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001761/0.3485, allocations: 1.029 MB / 0.5386 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.3485, allocations: 5.547 kB / 0.5386 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3485, allocations: 0 / 0.5386 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003126/0.3488, allocations: 211.4 kB / 0.5388 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.349, allocations: 28.42 kB / 0.5389 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003429/0.3493, allocations: 36.34 kB / 0.5389 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.3495, allocations: 82.52 kB / 0.539 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00252/0.352, allocations: 1.368 MB / 0.5403 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002123/0.3542, allocations: 1.638 MB / 0.5419 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006056/0.3548, allocations: 459.5 kB / 0.5424 GB, free: 15.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004158/0.3552, allocations: 332.1 kB / 0.5427 GB, free: 15.3 MB / 414.1 MB Notification: Performance of Backend: time 2.2e-07/0.3552, allocations: 0 / 0.5427 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002291/0.3575, allocations: 0.9866 MB / 0.5436 GB, free: 14.62 MB / 414.1 MB Notification: Performance of SimCode: time 0.002912/0.3605, allocations: 2.046 MB / 0.5456 GB, free: 13.08 MB / 414.1 MB Notification: Performance of Templates: time 0.0192/0.3797, allocations: 11 MB / 0.5564 GB, free: 2.516 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