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.001507/0.001506, allocations: 108.5 kB / 16.92 MB, free: 5.895 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.001739/0.001738, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.462/1.462, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1803/0.1803, allocations: 38.03 MB / 329.7 MB, free: 8.879 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 65.83 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1139, allocations: 58.07 MB / 457 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.007173/0.1212, allocations: 5.304 MB / 462.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002195/0.1234, allocations: 1.157 MB / 463.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005319/0.124, allocations: 23.88 kB / 463.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005908/0.1246, allocations: 95.23 kB / 463.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001074/0.1257, allocations: 298.4 kB / 463.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003854/0.1261, allocations: 155.7 kB / 464 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007429/0.1269, allocations: 0.7281 MB / 464.7 MB, free: 208 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002842/0.1272, allocations: 192.7 kB / 464.9 MB, free: 12 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004539/0.1276, allocations: 310.7 kB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005805/0.1282, allocations: 362.8 kB / 465.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.819e-05/0.1283, allocations: 40 kB / 465.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.1285, allocations: 44 kB / 465.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003049/0.1288, allocations: 199.5 kB / 465.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002843/0.1291, allocations: 262.7 kB / 466.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006559/0.1297, allocations: 0.5334 MB / 466.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1298, allocations: 0 / 466.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1298, allocations: 0 / 466.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.1298, allocations: 0 / 466.6 MB, free: 14.28 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.001642/0.1314, allocations: 0.8346 MB / 467.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.1315, allocations: 15.89 kB / 467.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/0.1316, allocations: 78.66 kB / 467.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.1317, allocations: 52.38 kB / 467.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000671/0.1324, allocations: 428.5 kB / 468 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.163e-05/0.1324, allocations: 36.88 kB / 468.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.473e-05/0.1325, allocations: 32 kB / 468.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000765/0.1333, allocations: 490.5 kB / 468.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.1333, allocations: 0 / 468.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.151e-05/0.1334, allocations: 16 kB / 468.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001174/0.1335, allocations: 32.61 kB / 468.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006068/0.1341, allocations: 370.6 kB / 469 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002269/0.1364, allocations: 1.715 MB / 470.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006746/0.1371, allocations: 398.3 kB / 471.1 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004779/0.1376, allocations: 233.6 kB / 471.3 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.1376, allocations: 7.938 kB / 471.3 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004285/0.138, allocations: 275.8 kB / 471.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.495e-06/0.138, allocations: 4 kB / 471.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002662/0.1407, allocations: 1.409 MB / 473 MB, free: 7.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.1409, allocations: 140.5 kB / 473.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006144/0.1415, allocations: 369.6 kB / 473.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.323e-05/0.1416, allocations: 37.83 kB / 473.5 MB, free: 6.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003002/0.1419, allocations: 259.9 kB / 473.8 MB, free: 6.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.142, allocations: 106.6 kB / 473.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.1422, allocations: 86.16 kB / 474 MB, free: 6.461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002397/0.1425, allocations: 354.8 kB / 474.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003509/0.1429, allocations: 137 kB / 474.5 MB, free: 5.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004801/0.1433, allocations: 256.1 kB / 474.7 MB, free: 5.668 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008378/0.1442, allocations: 445.4 kB / 475.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1442, allocations: 0 / 475.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001341/0.1456, allocations: 0.5539 MB / 475.7 MB, free: 4.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.713e-05/0.1456, allocations: 33.7 kB / 475.7 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.1457, allocations: 4 kB / 475.7 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003842/0.146, allocations: 86.14 kB / 475.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004294/0.1465, allocations: 75.83 kB / 475.9 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003068/0.1496, allocations: 3.003 MB / 478.9 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003416/0.1499, allocations: 19.98 kB / 478.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-05/0.15, allocations: 20 kB / 478.9 MB, free: 1.062 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.000365/0.1504, allocations: 253.5 kB / 479.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.649e-05/0.1504, allocations: 39.53 kB / 479.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.1515, allocations: 0.4928 MB / 479.7 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.1515, allocations: 4 kB / 479.7 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1515, allocations: 3.938 kB / 479.7 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.1515, allocations: 15.92 kB / 479.7 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.1532, allocations: 1.053 MB / 480.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.1532, allocations: 0 / 480.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.1534, allocations: 43.86 kB / 480.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002693/0.1537, allocations: 97.56 kB / 480.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/0.1537, allocations: 12 kB / 480.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002434/0.1562, allocations: 3.003 MB / 484 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1562, allocations: 0 / 484 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.1573, allocations: 0.787 MB / 484.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.435e-05/0.1574, allocations: 108.7 kB / 484.8 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.28e-05/0.1575, allocations: 19.98 kB / 484.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.1577, allocations: 19.92 kB / 484.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.01e-05/0.1578, allocations: 36.02 kB / 484.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.1578, allocations: 12 kB / 484.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002831/0.1581, allocations: 259.2 kB / 485.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1581, allocations: 0 / 485.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005144/0.1586, allocations: 116 kB / 485.3 MB, free: 10.27 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.001595/0.1602, allocations: 1.342 MB / 486.6 MB, free: 8.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.1613, allocations: 0.6615 MB / 487.3 MB, free: 8.184 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1613, allocations: 0 / 487.3 MB, free: 8.184 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000679/0.162, allocations: 0.4926 MB / 487.8 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005786/0.1626, allocations: 103.5 kB / 487.9 MB, free: 7.551 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005861/0.1685, allocations: 4.161 MB / 492.1 MB, free: 3.188 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.169, allocations: 0.8743 MB / 492.9 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000283/0.1693, allocations: 71.34 kB / 493 MB, free: 2.215 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.1695, allocations: 155.4 kB / 493.1 MB, free: 2.062 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.1695, allocations: 4 kB / 493.2 MB, free: 2.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03507/0.2046, allocations: 9.371 MB / 0.4907 GB, free: 8.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.578/9.782, allocations: 4.062 kB / 0.4908 GB, free: 8.836 MB / 382.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