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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 109.4 kB / 17.06 MB, free: 5.965 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.001194/0.001194, allocations: 200 kB / 18.01 MB, free: 5.047 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.447/1.447, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1904/0.1904, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 67.89 kB / 457.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3668, allocations: 58.06 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.006172/0.373, allocations: 5.293 MB / 0.5088 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.3749, allocations: 1.166 MB / 0.5099 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000281/0.3752, allocations: 13.25 kB / 0.51 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003709/0.3757, allocations: 96.11 kB / 0.51 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007672/0.3764, allocations: 315.9 kB / 0.5103 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000373/0.3768, allocations: 148.8 kB / 0.5105 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008294/0.3777, allocations: 0.7225 MB / 0.5112 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000306/0.378, allocations: 198.6 kB / 0.5114 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005037/0.3785, allocations: 312.2 kB / 0.5117 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006165/0.3791, allocations: 369.2 kB / 0.512 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.097e-05/0.3792, allocations: 41.09 kB / 0.5121 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.3793, allocations: 41.78 kB / 0.5121 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002839/0.3796, allocations: 197.4 kB / 0.5123 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002739/0.3799, allocations: 260.4 kB / 0.5125 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00087/0.3808, allocations: 0.5493 MB / 0.5131 GB, free: 1.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3808, allocations: 0 / 0.5131 GB, free: 1.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.041e-06/0.3808, allocations: 1.094 kB / 0.5131 GB, free: 1.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.3809, allocations: 0 / 0.5131 GB, free: 1.496 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.002062/0.3829, allocations: 0.8499 MB / 0.5139 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.383, allocations: 13.61 kB / 0.5139 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.3831, allocations: 76.09 kB / 0.514 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.3833, allocations: 56.89 kB / 0.5141 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009492/0.3842, allocations: 457.5 kB / 0.5145 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.084e-05/0.3843, allocations: 28.75 kB / 0.5145 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.201e-05/0.3844, allocations: 36.75 kB / 0.5146 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.3855, allocations: 484.5 kB / 0.515 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.3855, allocations: 0 / 0.515 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.503e-05/0.3856, allocations: 24.72 kB / 0.515 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000171/0.3858, allocations: 29.31 kB / 0.5151 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.3868, allocations: 363.2 kB / 0.5154 GB, free: 32 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004873/0.3917, allocations: 1.715 MB / 0.5171 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.3933, allocations: 406.9 kB / 0.5175 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000937/0.3943, allocations: 208.2 kB / 0.5177 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.508e-05/0.3944, allocations: 6.656 kB / 0.5177 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007066/0.3951, allocations: 277.1 kB / 0.5179 GB, free: 14.35 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 3.046e-06/0.3951, allocations: 0 / 0.5179 GB, free: 14.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.003208/0.3983, allocations: 1.405 MB / 0.5193 GB, free: 13.4 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/0.3985, allocations: 145.5 kB / 0.5195 GB, free: 13.24 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006537/0.3992, allocations: 369.3 kB / 0.5198 GB, free: 13.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.744e-05/0.3992, allocations: 38.19 kB / 0.5198 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.3996, allocations: 260.2 kB / 0.5201 GB, free: 12.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.3997, allocations: 121.6 kB / 0.5202 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.3999, allocations: 81.42 kB / 0.5203 GB, free: 12.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002173/0.4001, allocations: 350.7 kB / 0.5206 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003038/0.4004, allocations: 133.6 kB / 0.5208 GB, free: 12.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003688/0.4008, allocations: 255.4 kB / 0.521 GB, free: 12.1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006564/0.4015, allocations: 439.1 kB / 0.5214 GB, free: 11.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.4015, allocations: 1.125 kB / 0.5214 GB, free: 11.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001178/0.4027, allocations: 0.5469 MB / 0.5219 GB, free: 11.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.675e-05/0.4027, allocations: 33.73 kB / 0.522 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.4027, allocations: 4.281 kB / 0.522 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000316/0.4031, allocations: 74.64 kB / 0.5221 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.4034, allocations: 72.89 kB / 0.5221 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003039/0.4064, allocations: 3.007 MB / 0.5251 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004473/0.4069, allocations: 26.45 kB / 0.5251 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.525e-05/0.407, allocations: 18.88 kB / 0.5251 GB, free: 8.527 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.0004499/0.4074, allocations: 239.6 kB / 0.5253 GB, free: 8.332 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.4075, allocations: 44.61 kB / 0.5254 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001183/0.4087, allocations: 0.4928 MB / 0.5259 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.4088, allocations: 4.719 kB / 0.5259 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.4088, allocations: 9.312 kB / 0.5259 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.4088, allocations: 2.109 kB / 0.5259 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.4107, allocations: 1.055 MB / 0.5269 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.4107, allocations: 2.094 kB / 0.5269 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001934/0.4109, allocations: 45.36 kB / 0.5269 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003014/0.4113, allocations: 88.77 kB / 0.527 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-05/0.4113, allocations: 14.41 kB / 0.527 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003038/0.4144, allocations: 3.005 MB / 0.53 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4144, allocations: 0.6562 kB / 0.53 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.4158, allocations: 0.7816 MB / 0.5307 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002056/0.416, allocations: 116 kB / 0.5309 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.867e-05/0.4162, allocations: 14.83 kB / 0.5309 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.4164, allocations: 18.44 kB / 0.5309 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.4166, allocations: 41.66 kB / 0.5309 GB, free: 3.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.581e-05/0.4166, allocations: 10.19 kB / 0.5309 GB, free: 3.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004097/0.417, allocations: 261.5 kB / 0.5312 GB, free: 3.828 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4171, allocations: 0 / 0.5312 GB, free: 3.828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007113/0.4178, allocations: 112.5 kB / 0.5313 GB, free: 3.816 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.002069/0.4199, allocations: 1.331 MB / 0.5326 GB, free: 2.855 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.4211, allocations: 0.6306 MB / 0.5332 GB, free: 2.453 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4211, allocations: 0 / 0.5332 GB, free: 2.453 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008583/0.422, allocations: 494.7 kB / 0.5337 GB, free: 2.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008174/0.4228, allocations: 96.66 kB / 0.5338 GB, free: 2.059 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00706/0.4299, allocations: 4.13 MB / 0.5378 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007014/0.4306, allocations: 0.8635 MB / 0.5386 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000337/0.431, allocations: 71.69 kB / 0.5387 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000275/0.4313, allocations: 158.9 kB / 0.5389 GB, free: 14.62 MB / 414.1 MB Notification: Performance of SimCode: time 2.385e-06/0.4313, allocations: 0 / 0.5389 GB, free: 14.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04693/0.4782, allocations: 9.497 MB / 0.5481 GB, free: 9.645 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.89, allocations: 16.84 kB / 0.5482 GB, free: 9.637 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker_res.csv","/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) Reference file matches