Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestSuite_ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar.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/ScalableTestSuite 2.2.0-master/package.mo", uses=false) Using package ScalableTestSuite with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.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(ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Electrical_BreakerCircuits_Verification_BreakerNetwork_3_Scalar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Electrical_BreakerCircuits_Verification_BreakerNetwork_3_Scalar",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.001209/0.001209, allocations: 113.5 kB / 17.07 MB, free: 5.969 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.001264/0.001264, 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.294/1.294, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 0.9059/0.9059, allocations: 119.3 MB / 411.2 MB, free: 9.484 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 60.91 kB / 0.5704 GB, free: 40.06 MB / 462.3 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1477, allocations: 80.7 MB / 0.6492 GB, free: 13.59 MB / 0.4983 GB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar): time 0.00432/0.1521, allocations: 2.857 MB / 0.652 GB, free: 10.72 MB / 0.4983 GB Notification: Performance of NFInst.instExpressions: time 0.001395/0.1535, allocations: 0.7012 MB / 0.6527 GB, free: 10.02 MB / 0.4983 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002821/0.1538, allocations: 11.94 kB / 0.6527 GB, free: 10 MB / 0.4983 GB Notification: Performance of NFTyping.typeComponents: time 0.0002239/0.1541, allocations: 51.5 kB / 0.6527 GB, free: 9.953 MB / 0.4983 GB Notification: Performance of NFTyping.typeBindings: time 0.0002777/0.1544, allocations: 99.11 kB / 0.6528 GB, free: 9.855 MB / 0.4983 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004313/0.1548, allocations: 115.8 kB / 0.653 GB, free: 9.742 MB / 0.4983 GB Notification: Performance of NFFlatten.flatten: time 0.0004945/0.1553, allocations: 394.3 kB / 0.6533 GB, free: 9.355 MB / 0.4983 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002593/0.1556, allocations: 127.2 kB / 0.6534 GB, free: 9.227 MB / 0.4983 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002201/0.1558, allocations: 143.5 kB / 0.6536 GB, free: 9.086 MB / 0.4983 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002496/0.1561, allocations: 175.2 kB / 0.6538 GB, free: 8.914 MB / 0.4983 GB Notification: Performance of NFPackage.collectConstants: time 6.165e-05/0.1562, allocations: 32 kB / 0.6538 GB, free: 8.883 MB / 0.4983 GB Notification: Performance of NFFlatten.collectFunctions: time 9.529e-05/0.1563, allocations: 40 kB / 0.6538 GB, free: 8.844 MB / 0.4983 GB Notification: Performance of NFScalarize.scalarize: time 7.141e-05/0.1563, allocations: 75.69 kB / 0.6539 GB, free: 8.77 MB / 0.4983 GB Notification: Performance of NFVerifyModel.verify: time 0.0001868/0.1565, allocations: 171.2 kB / 0.6541 GB, free: 8.602 MB / 0.4983 GB Notification: Performance of NFConvertDAE.convert: time 0.00046/0.157, allocations: 390.4 kB / 0.6544 GB, free: 8.219 MB / 0.4983 GB Notification: Performance of FrontEnd - DAE generated: time 8.757e-06/0.157, allocations: 3.984 kB / 0.6544 GB, free: 8.215 MB / 0.4983 GB Notification: Performance of FrontEnd: time 2.064e-06/0.157, allocations: 0 / 0.6544 GB, free: 8.215 MB / 0.4983 GB Notification: Performance of Transformations before backend: time 1.636e-05/0.157, allocations: 0 / 0.6544 GB, free: 8.215 MB / 0.4983 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001145/0.1582, allocations: 0.6595 MB / 0.6551 GB, free: 7.508 MB / 0.4983 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.1582, allocations: 11.89 kB / 0.6551 GB, free: 7.496 MB / 0.4983 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.649e-05/0.1583, allocations: 66.7 kB / 0.6552 GB, free: 7.422 MB / 0.4983 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.821e-05/0.1584, allocations: 40.75 kB / 0.6552 GB, free: 7.383 MB / 0.4983 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003967/0.1588, allocations: 284.7 kB / 0.6555 GB, free: 7.062 MB / 0.4983 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.1588, allocations: 21.03 kB / 0.6555 GB, free: 7.043 MB / 0.4983 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.441e-05/0.1589, allocations: 32.31 kB / 0.6555 GB, free: 7.012 MB / 0.4983 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004415/0.1594, allocations: 266.2 kB / 0.6558 GB, free: 6.742 MB / 0.4983 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1594, allocations: 0 / 0.6558 GB, free: 6.742 MB / 0.4983 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.996e-05/0.1594, allocations: 12 kB / 0.6558 GB, free: 6.73 MB / 0.4983 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.1594, allocations: 8 kB / 0.6558 GB, free: 6.723 MB / 0.4983 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003328/0.1598, allocations: 194.5 kB / 0.656 GB, free: 6.535 MB / 0.4983 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001488/0.1613, allocations: 0.9987 MB / 0.6569 GB, free: 5.457 MB / 0.4983 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.1616, allocations: 194.8 kB / 0.6571 GB, free: 5.258 MB / 0.4983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.1618, allocations: 124.6 kB / 0.6573 GB, free: 5.137 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.1618, allocations: 7.984 kB / 0.6573 GB, free: 5.129 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000335/0.1621, allocations: 215.9 kB / 0.6575 GB, free: 4.891 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/0.1621, allocations: 0 / 0.6575 GB, free: 4.891 MB / 0.4983 GB Notification: Performance of matching and sorting (n=30): time 0.001293/0.1634, allocations: 0.5693 MB / 0.658 GB, free: 4.293 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.459e-05/0.1635, allocations: 166.2 kB / 0.6582 GB, free: 4.094 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.1638, allocations: 225 kB / 0.6584 GB, free: 3.867 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.1638, allocations: 37.69 kB / 0.6584 GB, free: 3.824 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.1639, allocations: 180.6 kB / 0.6586 GB, free: 3.645 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 7.654e-05/0.164, allocations: 91.27 kB / 0.6587 GB, free: 3.555 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.242e-05/0.1641, allocations: 69.66 kB / 0.6588 GB, free: 3.48 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1642, allocations: 334.8 kB / 0.6591 GB, free: 3.145 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.1644, allocations: 79.91 kB / 0.6592 GB, free: 3.066 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.1646, allocations: 163.4 kB / 0.6593 GB, free: 2.879 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.1649, allocations: 220.6 kB / 0.6595 GB, free: 2.648 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1649, allocations: 4 kB / 0.6595 GB, free: 2.645 MB / 0.4983 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006194/0.1656, allocations: 378 kB / 0.6599 GB, free: 2.266 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.1656, allocations: 8 kB / 0.6599 GB, free: 2.258 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1656, allocations: 0 / 0.6599 GB, free: 2.258 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002684/0.1659, allocations: 72.81 kB / 0.66 GB, free: 2.184 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.1661, allocations: 39.91 kB / 0.66 GB, free: 2.145 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.168, allocations: 1.907 MB / 0.6619 GB, free: 100 kB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.1682, allocations: 43.84 kB / 0.6619 GB, free: 56 kB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.1683, allocations: 12 kB / 0.6619 GB, free: 44 kB / 0.4983 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (B1.open,$PRE.B1.open,$whenCondition5,B2.open,$PRE.B2.open,$whenCondition3,B3.open,$PRE.B3.open,$whenCondition1,B3.G,$PRE.B3.G,B2.G,$PRE.B2.G,B1.G,$PRE.B1.G,$whenCondition2,$whenCondition4,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002041/0.1685, allocations: 154.7 kB / 0.6621 GB, free: 15.88 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.875e-05/0.1685, allocations: 27.84 kB / 0.6621 GB, free: 15.86 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.948e-05/0.1686, allocations: 26.97 kB / 0.6621 GB, free: 15.83 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.1686, allocations: 4 kB / 0.6621 GB, free: 15.82 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.1686, allocations: 7.938 kB / 0.6621 GB, free: 15.82 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.1686, allocations: 3.984 kB / 0.6621 GB, free: 15.81 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003514/0.169, allocations: 349.4 kB / 0.6625 GB, free: 15.42 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.169, allocations: 0 / 0.6625 GB, free: 15.42 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.1691, allocations: 19.98 kB / 0.6625 GB, free: 15.4 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002244/0.1693, allocations: 80.75 kB / 0.6626 GB, free: 15.32 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.1694, allocations: 11.98 kB / 0.6626 GB, free: 15.31 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001798/0.1712, allocations: 1.896 MB / 0.6644 GB, free: 13.27 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1712, allocations: 0 / 0.6644 GB, free: 13.27 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007306/0.1719, allocations: 458.7 kB / 0.6649 GB, free: 12.8 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 7.011e-05/0.172, allocations: 109 kB / 0.665 GB, free: 12.68 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.1721, allocations: 8 kB / 0.665 GB, free: 12.67 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.1723, allocations: 27.97 kB / 0.665 GB, free: 12.64 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.209e-05/0.1723, allocations: 23.97 kB / 0.665 GB, free: 12.62 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.1724, allocations: 12 kB / 0.665 GB, free: 12.61 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.0001579/0.1725, allocations: 164.5 kB / 0.6652 GB, free: 12.45 MB / 0.5139 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1725, allocations: 0 / 0.6652 GB, free: 12.45 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.0003897/0.1729, allocations: 115.8 kB / 0.6653 GB, free: 12.34 MB / 0.5139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (firstOrder.y) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,B1.open,B1.G,B2.open,B2.G,B3.open,B3.G) * Number of discrete states: 3 (B3.open,B2.open,B1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001326/0.1743, allocations: 1.014 MB / 0.6663 GB, free: 11.3 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.0007927/0.1751, allocations: 394.4 kB / 0.6667 GB, free: 10.9 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1751, allocations: 4.125 kB / 0.6667 GB, free: 10.89 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.0004155/0.1755, allocations: 279 kB / 0.6669 GB, free: 10.61 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.1759, allocations: 44.34 kB / 0.667 GB, free: 10.56 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/0.1794, allocations: 2.7 MB / 0.6696 GB, free: 7.75 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/0.1798, allocations: 0.7717 MB / 0.6704 GB, free: 6.953 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.0001084/0.1799, allocations: 26.56 kB / 0.6704 GB, free: 6.922 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.18, allocations: 91.41 kB / 0.6705 GB, free: 6.836 MB / 0.5139 GB Notification: Performance of SimCode: time 6.51e-07/0.18, allocations: 0 / 0.6705 GB, free: 6.836 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03382/0.2139, allocations: 6.882 MB / 0.6772 GB, free: 200 kB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.487/9.701, allocations: 8.844 kB / 0.6772 GB, free: 192 kB / 0.5139 GB (rm -f ScalableTestSuite_ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar.pipe ; mkfifo ScalableTestSuite_ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar.pipe ; head -c 1048576 < ScalableTestSuite_ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar.pipe >> ../files/ScalableTestSuite_ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar.sim & python3 -m fmpy simulate --output-file ScalableTestSuite_ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar_res.csv --start-time 0 --stop-time 1 --timeout 300 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ScalableTestSuite_ScalableTestSuite_Electrical_BreakerCircuits_Verification_BreakerNetwork_3_Scalar.fmu > ScalableTestSuite_ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar.pipe 2>&1) diffSimulationResults("ScalableTestSuite_ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ScalableTestSuite/ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ScalableTestSuite_ScalableTestSuite.Electrical.BreakerCircuits.Verification.BreakerNetwork_3_Scalar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches