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.001558/0.001558, allocations: 109.8 kB / 17.06 MB, free: 6.016 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.001171/0.001171, allocations: 191 kB / 18 MB, free: 5.102 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.321/1.321, allocations: 222.9 MB / 241.7 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.1859/0.1859, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 67.89 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3136, allocations: 58.06 MB / 0.5036 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.006178/0.3198, allocations: 5.296 MB / 0.5088 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001852/0.3217, allocations: 1.166 MB / 0.5099 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002869/0.322, allocations: 13.34 kB / 0.51 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003893/0.3224, allocations: 99.62 kB / 0.51 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008396/0.3233, allocations: 318.3 kB / 0.5104 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.3237, allocations: 148 kB / 0.5105 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008148/0.3245, allocations: 0.7253 MB / 0.5112 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003106/0.3248, allocations: 192.6 kB / 0.5114 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005511/0.3254, allocations: 326.7 kB / 0.5117 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006597/0.3261, allocations: 357.1 kB / 0.512 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.74e-05/0.3262, allocations: 40.97 kB / 0.5121 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.3263, allocations: 40.81 kB / 0.5121 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003498/0.3267, allocations: 205.9 kB / 0.5123 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003647/0.3271, allocations: 253.2 kB / 0.5126 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008075/0.3279, allocations: 0.5532 MB / 0.5131 GB, free: 1.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.3279, allocations: 1.094 kB / 0.5131 GB, free: 1.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3279, allocations: 0 / 0.5131 GB, free: 1.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.3279, allocations: 0 / 0.5131 GB, free: 1.586 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.001645/0.3296, allocations: 0.8491 MB / 0.5139 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.3296, allocations: 14.73 kB / 0.5139 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.156e-05/0.3297, allocations: 76.36 kB / 0.514 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.3298, allocations: 55.03 kB / 0.5141 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006767/0.3305, allocations: 458.3 kB / 0.5145 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.3305, allocations: 33.17 kB / 0.5145 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.615e-05/0.3306, allocations: 36.31 kB / 0.5146 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007897/0.3314, allocations: 483.7 kB / 0.515 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.3315, allocations: 8.906 kB / 0.515 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.425e-05/0.3315, allocations: 13.38 kB / 0.515 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001549/0.3317, allocations: 29.33 kB / 0.5151 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009326/0.3326, allocations: 366.1 kB / 0.5154 GB, free: 120 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003524/0.3362, allocations: 1.723 MB / 0.5171 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008546/0.337, allocations: 398.8 kB / 0.5175 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005334/0.3376, allocations: 209.2 kB / 0.5177 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.629e-05/0.3377, allocations: 8.344 kB / 0.5177 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005212/0.3382, allocations: 276.3 kB / 0.518 GB, free: 14.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.414e-06/0.3382, allocations: 0 / 0.518 GB, free: 14.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.00289/0.3411, allocations: 1.409 MB / 0.5193 GB, free: 13.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.787e-05/0.3412, allocations: 141.1 kB / 0.5195 GB, free: 13.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006065/0.3418, allocations: 373.8 kB / 0.5198 GB, free: 13.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.625e-05/0.3419, allocations: 34.33 kB / 0.5199 GB, free: 13.1 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.3421, allocations: 259 kB / 0.5201 GB, free: 12.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.3423, allocations: 120.8 kB / 0.5202 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.3424, allocations: 79.16 kB / 0.5203 GB, free: 12.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3426, allocations: 355.7 kB / 0.5206 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003118/0.3429, allocations: 128.3 kB / 0.5208 GB, free: 12.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/0.3433, allocations: 258.9 kB / 0.521 GB, free: 12.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000684/0.344, allocations: 443.7 kB / 0.5214 GB, free: 11.85 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.344, allocations: 1.156 kB / 0.5214 GB, free: 11.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001086/0.3451, allocations: 0.5403 MB / 0.522 GB, free: 11.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.968e-05/0.3452, allocations: 32.92 kB / 0.522 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.3452, allocations: 4.375 kB / 0.522 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002847/0.3455, allocations: 78.8 kB / 0.5221 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002575/0.3458, allocations: 73.23 kB / 0.5221 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002465/0.3482, allocations: 3.003 MB / 0.5251 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003709/0.3486, allocations: 24.17 kB / 0.5251 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.047e-05/0.3487, allocations: 19.53 kB / 0.5251 GB, free: 8.613 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.0003645/0.3491, allocations: 236.7 kB / 0.5253 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.862e-05/0.3492, allocations: 48.97 kB / 0.5254 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009168/0.3501, allocations: 0.4894 MB / 0.5259 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3501, allocations: 3.5 kB / 0.5259 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.3501, allocations: 9.5 kB / 0.5259 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.3501, allocations: 11.48 kB / 0.5259 GB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001792/0.3519, allocations: 1.058 MB / 0.5269 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3519, allocations: 5.125 kB / 0.5269 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.3521, allocations: 37.53 kB / 0.527 GB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002615/0.3524, allocations: 87.58 kB / 0.527 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.3525, allocations: 14.86 kB / 0.5271 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002301/0.3548, allocations: 3.005 MB / 0.53 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3548, allocations: 1.562 kB / 0.53 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.3561, allocations: 0.7839 MB / 0.5308 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.3563, allocations: 111.6 kB / 0.5309 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.051e-05/0.3564, allocations: 20.02 kB / 0.5309 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000275/0.3566, allocations: 16.58 kB / 0.5309 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.3568, allocations: 35.56 kB / 0.5309 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.884e-05/0.3568, allocations: 14.91 kB / 0.5309 GB, free: 4.039 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003877/0.3572, allocations: 260.8 kB / 0.5312 GB, free: 3.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3572, allocations: 0 / 0.5312 GB, free: 3.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006587/0.3579, allocations: 113.5 kB / 0.5313 GB, free: 3.898 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.001652/0.3595, allocations: 1.326 MB / 0.5326 GB, free: 2.941 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009958/0.3606, allocations: 0.6298 MB / 0.5332 GB, free: 2.539 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3606, allocations: 0 / 0.5332 GB, free: 2.539 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000697/0.3613, allocations: 498.8 kB / 0.5337 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006689/0.362, allocations: 93.64 kB / 0.5338 GB, free: 2.145 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006043/0.368, allocations: 4.14 MB / 0.5378 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/0.3686, allocations: 0.8638 MB / 0.5387 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002757/0.3689, allocations: 67.8 kB / 0.5387 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002398/0.3691, allocations: 162.1 kB / 0.5389 GB, free: 14.7 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3691, allocations: 0 / 0.5389 GB, free: 14.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03698/0.4061, allocations: 9.487 MB / 0.5482 GB, free: 9.578 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.48, allocations: 7.875 kB / 0.5482 GB, free: 9.57 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