Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.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.Breaker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001424/0.001429, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001657/0.001657, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.387/1.387, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1815/0.1815, allocations: 38.04 MB / 330.4 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 65.92 kB / 399.5 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09115/0.0924, allocations: 58.06 MB / 457.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.006953/0.09938, allocations: 5.301 MB / 462.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002034/0.1014, allocations: 1.157 MB / 464 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003529/0.1018, allocations: 15.94 kB / 464 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004532/0.1023, allocations: 99.19 kB / 464.1 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008442/0.1032, allocations: 306.4 kB / 464.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003726/0.1036, allocations: 147.7 kB / 464.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008247/0.1044, allocations: 0.7204 MB / 465.3 MB, free: 304 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003095/0.1047, allocations: 200.6 kB / 465.5 MB, free: 100 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005379/0.1053, allocations: 314.7 kB / 465.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006376/0.1059, allocations: 362.8 kB / 466.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001055/0.1061, allocations: 40 kB / 466.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.1062, allocations: 44 kB / 466.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000229/0.1065, allocations: 199.5 kB / 466.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000334/0.1068, allocations: 262.7 kB / 466.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005471/0.1073, allocations: 0.5334 MB / 467.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1074, allocations: 0 / 467.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1074, allocations: 0 / 467.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.781e-05/0.1074, allocations: 0 / 467.2 MB, free: 14.36 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001665/0.1091, allocations: 0.8308 MB / 468 MB, free: 13.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1091, allocations: 15.89 kB / 468 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.1092, allocations: 56.25 kB / 468.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006469/0.1099, allocations: 436.5 kB / 468.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.689e-05/0.1099, allocations: 29.12 kB / 468.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.294e-05/0.11, allocations: 40 kB / 468.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007598/0.1108, allocations: 482.5 kB / 469.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.1108, allocations: 8 kB / 469.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.098e-05/0.1109, allocations: 12 kB / 469.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/0.111, allocations: 36.61 kB / 469.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006218/0.1116, allocations: 362.6 kB / 469.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002314/0.1139, allocations: 1.715 MB / 471.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006338/0.1146, allocations: 398.3 kB / 471.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004877/0.1151, allocations: 233.6 kB / 471.8 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.1151, allocations: 4 kB / 471.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004197/0.1156, allocations: 283.6 kB / 472.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.964e-06/0.1156, allocations: 0 / 472.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002357/0.1179, allocations: 1.416 MB / 473.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.118, allocations: 136.5 kB / 473.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003919/0.1184, allocations: 369.6 kB / 474 MB, free: 7.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.1185, allocations: 33.7 kB / 474 MB, free: 7.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.1186, allocations: 264 kB / 474.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.121e-05/0.1187, allocations: 106.6 kB / 474.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.1189, allocations: 86.16 kB / 474.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.119, allocations: 350.8 kB / 474.8 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.1193, allocations: 133 kB / 474.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003111/0.1196, allocations: 260.1 kB / 475.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005583/0.1202, allocations: 445.5 kB / 475.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.1202, allocations: 4 kB / 475.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.000959/0.1212, allocations: 0.55 MB / 476.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.1212, allocations: 33.7 kB / 476.2 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.1212, allocations: 4 kB / 476.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000282/0.1215, allocations: 78.11 kB / 476.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.1218, allocations: 75.89 kB / 476.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002322/0.1242, allocations: 3.003 MB / 479.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002937/0.1245, allocations: 27.92 kB / 479.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.356e-05/0.1245, allocations: 16 kB / 479.4 MB, free: 1.234 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,breaker.breaker_1.opening,breaker.breaker_1.t0,$PRE.breaker.breaker_1.t0,breaker.breaker_1.closed,breaker.breaker_1.open,$PRE.breaker.breaker_1.open,breaker.breaker_1.arc,$PRE.breaker.breaker_1.arc,relay.y[1],$PRE.relay.y[1],$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,relay.cnt,$PRE.relay.cnt,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * 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.0002759/0.1248, allocations: 251.3 kB / 479.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-05/0.1249, allocations: 39.53 kB / 479.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000852/0.1257, allocations: 0.5045 MB / 480.2 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.1258, allocations: 4 kB / 480.2 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1258, allocations: 3.938 kB / 480.2 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1258, allocations: 7.922 kB / 480.2 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001544/0.1273, allocations: 1.057 MB / 481.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1273, allocations: 0 / 481.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002054/0.1276, allocations: 39.92 kB / 481.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002562/0.1278, allocations: 97.56 kB / 481.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.187e-05/0.1279, allocations: 12 kB / 481.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002217/0.1301, allocations: 3.003 MB / 484.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1301, allocations: 3.938 kB / 484.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.1312, allocations: 0.783 MB / 485.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.1314, allocations: 112.7 kB / 485.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.799e-05/0.1314, allocations: 11.98 kB / 485.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.1317, allocations: 23.92 kB / 485.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.1318, allocations: 35.95 kB / 485.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.148e-05/0.1318, allocations: 20.06 kB / 485.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002652/0.1321, allocations: 255.2 kB / 485.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1321, allocations: 0 / 485.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004947/0.1326, allocations: 112 kB / 485.8 MB, free: 10.44 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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 Backend phase and start with SimCode phase: time 0.000152/0.1328, allocations: 131.5 kB / 485.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.1338, allocations: 0.6759 MB / 486.6 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1338, allocations: 0 / 486.6 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006425/0.1345, allocations: 493.6 kB / 487.1 MB, free: 9.066 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005792/0.1351, allocations: 99.58 kB / 487.2 MB, free: 8.969 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.1368, allocations: 1.041 MB / 488.2 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005062/0.1373, allocations: 0.8665 MB / 489.1 MB, free: 7.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.1374, allocations: 35.44 kB / 489.1 MB, free: 6.969 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1375, allocations: 4 kB / 489.1 MB, free: 6.965 MB / 366.1 MB Notification: Performance of Templates: time 0.0123/0.1498, allocations: 9.205 MB / 498.3 MB, free: 13.77 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,meter.i,meter.p,meter.v Variables in the result:meter.i,meter.p,meter.v,time