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.0009951/0.0009951, allocations: 114.2 kB / 17.07 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.001122/0.001123, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.35/1.35, 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.2706/0.2706, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001297, allocations: 67.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3278, allocations: 58.06 MB / 0.5036 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.005352/0.3332, allocations: 5.299 MB / 0.5088 GB, free: 3.777 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.335, allocations: 1.167 MB / 0.5099 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.3352, allocations: 13.66 kB / 0.51 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003501/0.3356, allocations: 88.47 kB / 0.51 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006756/0.3363, allocations: 322 kB / 0.5103 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003199/0.3366, allocations: 155.7 kB / 0.5105 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008243/0.3374, allocations: 0.7209 MB / 0.5112 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003163/0.3378, allocations: 192 kB / 0.5114 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004366/0.3382, allocations: 326.8 kB / 0.5117 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000516/0.3387, allocations: 362.2 kB / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.983e-05/0.3388, allocations: 41.12 kB / 0.5121 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.608e-05/0.3389, allocations: 40.62 kB / 0.5121 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002189/0.3391, allocations: 199.3 kB / 0.5123 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.3394, allocations: 254.9 kB / 0.5126 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008272/0.3402, allocations: 0.5582 MB / 0.5131 GB, free: 1.504 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3402, allocations: 0 / 0.5131 GB, free: 1.504 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3402, allocations: 1.125 kB / 0.5131 GB, free: 1.504 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.3402, allocations: 0 / 0.5131 GB, free: 1.504 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.001725/0.342, allocations: 0.8497 MB / 0.5139 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.745e-05/0.342, allocations: 9.469 kB / 0.5139 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001041/0.3422, allocations: 82.5 kB / 0.514 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.3423, allocations: 54.55 kB / 0.5141 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007088/0.343, allocations: 453.8 kB / 0.5145 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.343, allocations: 33.42 kB / 0.5145 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.254e-05/0.3431, allocations: 35.53 kB / 0.5146 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000816/0.3439, allocations: 484 kB / 0.515 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.344, allocations: 1.781 kB / 0.515 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.702e-05/0.344, allocations: 16.75 kB / 0.515 GB, free: 164 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001301/0.3442, allocations: 33.75 kB / 0.5151 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007152/0.3449, allocations: 362.2 kB / 0.5154 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002772/0.3477, allocations: 1.727 MB / 0.5171 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007736/0.3484, allocations: 411.3 kB / 0.5175 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005313/0.349, allocations: 200.6 kB / 0.5177 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.349, allocations: 3.312 kB / 0.5177 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004965/0.3495, allocations: 280.9 kB / 0.518 GB, free: 14.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.864e-06/0.3495, allocations: 0 / 0.518 GB, free: 14.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002559/0.3521, allocations: 1.401 MB / 0.5193 GB, free: 13.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.524e-05/0.3522, allocations: 145.2 kB / 0.5195 GB, free: 13.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004434/0.3527, allocations: 374.2 kB / 0.5198 GB, free: 13.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.3527, allocations: 37.61 kB / 0.5199 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/0.3529, allocations: 259.8 kB / 0.5201 GB, free: 12.81 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.353, allocations: 121.1 kB / 0.5202 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.3532, allocations: 78.16 kB / 0.5203 GB, free: 12.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3533, allocations: 355.9 kB / 0.5206 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002291/0.3536, allocations: 128.6 kB / 0.5208 GB, free: 12.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/0.3539, allocations: 255.7 kB / 0.521 GB, free: 12.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005759/0.3544, allocations: 443.7 kB / 0.5214 GB, free: 11.78 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3545, allocations: 5.25 kB / 0.5214 GB, free: 11.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008951/0.3554, allocations: 0.5349 MB / 0.522 GB, free: 11.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.781e-05/0.3554, allocations: 33.72 kB / 0.522 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.3554, allocations: 7.969 kB / 0.522 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002793/0.3557, allocations: 75.25 kB / 0.5221 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.356, allocations: 73.39 kB / 0.5221 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002436/0.3584, allocations: 3.005 MB / 0.5251 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003077/0.3588, allocations: 25.53 kB / 0.5251 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.653e-05/0.3588, allocations: 14.45 kB / 0.5251 GB, free: 8.539 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.0003385/0.3592, allocations: 249.5 kB / 0.5254 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.578e-05/0.3592, allocations: 45.14 kB / 0.5254 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009803/0.3602, allocations: 496 kB / 0.5259 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3602, allocations: 8.594 kB / 0.5259 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.3603, allocations: 5.531 kB / 0.5259 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.046e-06/0.3603, allocations: 9.953 kB / 0.5259 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/0.3623, allocations: 1.06 MB / 0.5269 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.3623, allocations: 1.781 kB / 0.5269 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001975/0.3625, allocations: 40.53 kB / 0.527 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002551/0.3627, allocations: 87.95 kB / 0.527 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.208e-05/0.3628, allocations: 10.81 kB / 0.5271 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002569/0.3654, allocations: 3.009 MB / 0.53 GB, free: 4.527 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3654, allocations: 1.344 kB / 0.53 GB, free: 4.527 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.3667, allocations: 0.7802 MB / 0.5308 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.3668, allocations: 115.2 kB / 0.5309 GB, free: 3.988 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.334e-05/0.3669, allocations: 15.06 kB / 0.5309 GB, free: 3.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/0.3672, allocations: 22.17 kB / 0.5309 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.3673, allocations: 35.27 kB / 0.5309 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-05/0.3674, allocations: 18.7 kB / 0.531 GB, free: 3.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003506/0.3677, allocations: 257.2 kB / 0.5312 GB, free: 3.832 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3677, allocations: 4.062 kB / 0.5312 GB, free: 3.828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006334/0.3684, allocations: 112.8 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.001663/0.37, allocations: 1.331 MB / 0.5326 GB, free: 2.855 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.3711, allocations: 0.622 MB / 0.5332 GB, free: 2.461 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.3711, allocations: 1.125 kB / 0.5332 GB, free: 2.461 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007207/0.3719, allocations: 0.4886 MB / 0.5337 GB, free: 2.105 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006162/0.3725, allocations: 87.23 kB / 0.5338 GB, free: 2.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005935/0.3784, allocations: 4.129 MB / 0.5378 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005324/0.379, allocations: 0.8717 MB / 0.5387 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002775/0.3793, allocations: 67.88 kB / 0.5387 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.3795, allocations: 160.8 kB / 0.5389 GB, free: 14.63 MB / 414.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3795, allocations: 1.5 kB / 0.5389 GB, free: 14.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0499/0.4294, allocations: 9.488 MB / 0.5482 GB, free: 9.613 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.611/10.04, allocations: 6.344 kB / 0.5482 GB, free: 9.609 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