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.001578/0.001578, allocations: 107.1 kB / 17.74 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.001573/0.001573, allocations: 188.2 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.418/1.418, 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.188/0.188, allocations: 38.04 MB / 330.6 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 67.91 kB / 458.8 MB, free: 6.883 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3801, allocations: 58.05 MB / 0.5048 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.00622/0.3864, allocations: 5.306 MB / 0.5099 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.3885, allocations: 1.159 MB / 0.5111 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002482/0.3888, allocations: 21.59 kB / 0.5111 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003822/0.3892, allocations: 97.14 kB / 0.5112 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007977/0.39, allocations: 319.4 kB / 0.5115 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003928/0.3904, allocations: 143.4 kB / 0.5116 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009325/0.3913, allocations: 0.7279 MB / 0.5123 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003264/0.3917, allocations: 196.6 kB / 0.5125 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005599/0.3923, allocations: 317.2 kB / 0.5128 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006459/0.3929, allocations: 357.4 kB / 0.5132 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.841e-05/0.393, allocations: 41.47 kB / 0.5132 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.3931, allocations: 40.09 kB / 0.5133 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002736/0.3934, allocations: 211.5 kB / 0.5135 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000249/0.3937, allocations: 258.9 kB / 0.5137 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000672/0.3944, allocations: 0.5466 MB / 0.5142 GB, free: 1.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3944, allocations: 0 / 0.5142 GB, free: 1.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3944, allocations: 1.094 kB / 0.5142 GB, free: 1.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.3944, allocations: 0 / 0.5142 GB, free: 1.77 MB / 382.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.001462/0.3959, allocations: 0.8353 MB / 0.5151 GB, free: 1.129 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3959, allocations: 12.98 kB / 0.5151 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.396, allocations: 54.59 kB / 0.5151 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006316/0.3967, allocations: 450.1 kB / 0.5155 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.3967, allocations: 33.27 kB / 0.5156 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.084e-05/0.3968, allocations: 36.75 kB / 0.5156 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007754/0.3976, allocations: 488.1 kB / 0.5161 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.3976, allocations: 0 / 0.5161 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.063e-05/0.3976, allocations: 17.11 kB / 0.5161 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001078/0.3977, allocations: 28.88 kB / 0.5161 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005862/0.3983, allocations: 365.8 kB / 0.5165 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002454/0.4008, allocations: 1.711 MB / 0.5181 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007824/0.4016, allocations: 408.9 kB / 0.5185 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004156/0.402, allocations: 200.8 kB / 0.5187 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.4021, allocations: 3.844 kB / 0.5187 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004652/0.4025, allocations: 287.5 kB / 0.519 GB, free: 14.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.683e-06/0.4025, allocations: 5.344 kB / 0.519 GB, free: 14.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002497/0.4051, allocations: 1.392 MB / 0.5204 GB, free: 13.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.098e-05/0.4051, allocations: 141.2 kB / 0.5205 GB, free: 13.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005228/0.4057, allocations: 370.3 kB / 0.5209 GB, free: 13.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/0.4057, allocations: 37.59 kB / 0.5209 GB, free: 13.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.4059, allocations: 250.6 kB / 0.5211 GB, free: 13.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.4061, allocations: 112.3 kB / 0.5212 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/0.4062, allocations: 87.25 kB / 0.5213 GB, free: 13.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.4064, allocations: 351 kB / 0.5217 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000317/0.4067, allocations: 136.8 kB / 0.5218 GB, free: 12.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004046/0.4071, allocations: 255.5 kB / 0.522 GB, free: 12.47 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006228/0.4078, allocations: 441.7 kB / 0.5224 GB, free: 12.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.4078, allocations: 1 kB / 0.5225 GB, free: 12.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009929/0.4088, allocations: 0.5386 MB / 0.523 GB, free: 11.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.4089, allocations: 32.58 kB / 0.523 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.4089, allocations: 8.156 kB / 0.523 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002994/0.4092, allocations: 81.06 kB / 0.5231 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000294/0.4095, allocations: 67.27 kB / 0.5232 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002726/0.4122, allocations: 3.006 MB / 0.5261 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003716/0.4126, allocations: 20.33 kB / 0.5261 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.4127, allocations: 19.19 kB / 0.5261 GB, free: 8.91 MB / 398.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.0003876/0.4131, allocations: 252.6 kB / 0.5264 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.219e-05/0.4132, allocations: 39.44 kB / 0.5264 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009733/0.4141, allocations: 0.4926 MB / 0.5269 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.4142, allocations: 4.828 kB / 0.5269 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.4142, allocations: 1.375 kB / 0.5269 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.4142, allocations: 10 kB / 0.5269 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.4161, allocations: 1.052 MB / 0.5279 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.4161, allocations: 0 / 0.5279 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.4163, allocations: 41.28 kB / 0.528 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002877/0.4166, allocations: 92.83 kB / 0.5281 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.197e-05/0.4167, allocations: 15.86 kB / 0.5281 GB, free: 7.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002715/0.4194, allocations: 3.003 MB / 0.531 GB, free: 4.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4194, allocations: 4.938 kB / 0.531 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.4207, allocations: 0.7735 MB / 0.5318 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.4209, allocations: 118.8 kB / 0.5319 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.908e-05/0.421, allocations: 11.12 kB / 0.5319 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002899/0.4213, allocations: 22.89 kB / 0.5319 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.4214, allocations: 34 kB / 0.5319 GB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.4215, allocations: 14.25 kB / 0.532 GB, free: 4.344 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003977/0.4219, allocations: 257.8 kB / 0.5322 GB, free: 4.219 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4219, allocations: 4 kB / 0.5322 GB, free: 4.215 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006596/0.4226, allocations: 113.6 kB / 0.5323 GB, free: 4.203 MB / 398.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.0001806/0.4227, allocations: 122.6 kB / 0.5324 GB, free: 4.094 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.4239, allocations: 0.6305 MB / 0.5331 GB, free: 3.691 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.4239, allocations: 0 / 0.5331 GB, free: 3.691 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007448/0.4246, allocations: 490.2 kB / 0.5335 GB, free: 3.344 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006942/0.4254, allocations: 94.91 kB / 0.5336 GB, free: 3.301 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.4275, allocations: 1.031 MB / 0.5346 GB, free: 2.695 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005682/0.428, allocations: 0.8637 MB / 0.5355 GB, free: 1.984 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.4282, allocations: 38.8 kB / 0.5355 GB, free: 1.973 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4282, allocations: 0 / 0.5355 GB, free: 1.973 MB / 398.1 MB Notification: Performance of Templates: time 0.01718/0.4454, allocations: 9.24 MB / 0.5445 GB, free: 13.66 MB / 414.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