Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestSuite_ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad.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.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Power_ConceptualPowerSystem_Verification_TwoGeneratorsStepLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Power_ConceptualPowerSystem_Verification_TwoGeneratorsStepLoad",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.001237/0.001237, allocations: 107.6 kB / 17.06 MB, free: 5.992 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.001313/0.001313, allocations: 194.9 kB / 18.01 MB, free: 5.066 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.293/1.293, 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/ScalableTestSuite 2.2.0-master/package.mo): time 0.8443/0.8443, allocations: 119.3 MB / 411.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 66.56 kB / 0.5704 GB, free: 40.01 MB / 462.3 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1346, allocations: 80.7 MB / 0.6492 GB, free: 13.54 MB / 0.4983 GB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad): time 0.002532/0.1372, allocations: 1.802 MB / 0.651 GB, free: 11.72 MB / 0.4983 GB Notification: Performance of NFInst.instExpressions: time 0.0009288/0.1382, allocations: 0.5497 MB / 0.6515 GB, free: 11.16 MB / 0.4983 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.36e-05/0.1382, allocations: 0 / 0.6515 GB, free: 11.16 MB / 0.4983 GB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.1383, allocations: 27.78 kB / 0.6516 GB, free: 11.14 MB / 0.4983 GB Notification: Performance of NFTyping.typeBindings: time 0.0002453/0.1386, allocations: 67.52 kB / 0.6516 GB, free: 11.07 MB / 0.4983 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.1388, allocations: 75.83 kB / 0.6517 GB, free: 11 MB / 0.4983 GB Notification: Performance of NFFlatten.flatten: time 0.0006241/0.1395, allocations: 0.6558 MB / 0.6523 GB, free: 10.34 MB / 0.4983 GB Notification: Performance of NFFlatten.resolveConnections: time 7.712e-05/0.1396, allocations: 44.73 kB / 0.6524 GB, free: 10.29 MB / 0.4983 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002533/0.1398, allocations: 259.3 kB / 0.6526 GB, free: 10.04 MB / 0.4983 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003879/0.1402, allocations: 271.1 kB / 0.6529 GB, free: 9.773 MB / 0.4983 GB Notification: Performance of NFPackage.collectConstants: time 7.216e-05/0.1403, allocations: 40 kB / 0.6529 GB, free: 9.734 MB / 0.4983 GB Notification: Performance of NFFlatten.collectFunctions: time 7.713e-05/0.1404, allocations: 43.94 kB / 0.653 GB, free: 9.691 MB / 0.4983 GB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.1405, allocations: 147.7 kB / 0.6531 GB, free: 9.547 MB / 0.4983 GB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.1408, allocations: 211 kB / 0.6533 GB, free: 9.34 MB / 0.4983 GB Notification: Performance of NFConvertDAE.convert: time 0.0004941/0.1413, allocations: 0.5374 MB / 0.6538 GB, free: 8.801 MB / 0.4983 GB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.1413, allocations: 0 / 0.6538 GB, free: 8.801 MB / 0.4983 GB Notification: Performance of FrontEnd: time 1.754e-06/0.1413, allocations: 3.938 kB / 0.6538 GB, free: 8.797 MB / 0.4983 GB Notification: Performance of Transformations before backend: time 7.273e-06/0.1413, allocations: 0 / 0.6538 GB, free: 8.797 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001974/0.1433, allocations: 0.9624 MB / 0.6548 GB, free: 7.785 MB / 0.4983 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.1433, allocations: 11.89 kB / 0.6548 GB, free: 7.773 MB / 0.4983 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.257e-05/0.1434, allocations: 70.72 kB / 0.6549 GB, free: 7.695 MB / 0.4983 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.823e-05/0.1435, allocations: 48.66 kB / 0.6549 GB, free: 7.648 MB / 0.4983 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005623/0.1441, allocations: 354.8 kB / 0.6553 GB, free: 7.262 MB / 0.4983 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.727e-05/0.1441, allocations: 29.03 kB / 0.6553 GB, free: 7.23 MB / 0.4983 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002114/0.1444, allocations: 72.38 kB / 0.6553 GB, free: 7.16 MB / 0.4983 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00079/0.1452, allocations: 0.529 MB / 0.6559 GB, free: 6.625 MB / 0.4983 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.1452, allocations: 0 / 0.6559 GB, free: 6.625 MB / 0.4983 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.567e-05/0.1453, allocations: 16 kB / 0.6559 GB, free: 6.609 MB / 0.4983 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.441e-05/0.1453, allocations: 12.66 kB / 0.6559 GB, free: 6.598 MB / 0.4983 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006959/0.146, allocations: 0.5137 MB / 0.6564 GB, free: 6.082 MB / 0.4983 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003399/0.1494, allocations: 1.577 MB / 0.6579 GB, free: 4.457 MB / 0.4983 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001492/0.1509, allocations: 0.8688 MB / 0.6588 GB, free: 3.574 MB / 0.4983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005249/0.1515, allocations: 387.8 kB / 0.6592 GB, free: 3.195 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.1515, allocations: 8.375 kB / 0.6592 GB, free: 3.188 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.1515, allocations: 39 kB / 0.6592 GB, free: 3.141 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=52): time 1.994e-06/0.1515, allocations: 0 / 0.6592 GB, free: 3.141 MB / 0.4983 GB Notification: Performance of matching and sorting (n=52): time 0.00148/0.153, allocations: 0.9922 MB / 0.6602 GB, free: 2.145 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.1531, allocations: 59.84 kB / 0.6602 GB, free: 2.074 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/0.1534, allocations: 310.7 kB / 0.6605 GB, free: 1.758 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 4.516e-05/0.1534, allocations: 33.7 kB / 0.6605 GB, free: 1.719 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.1536, allocations: 177 kB / 0.6607 GB, free: 1.543 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.1537, allocations: 218.2 kB / 0.6609 GB, free: 1.328 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.1539, allocations: 130.6 kB / 0.6611 GB, free: 1.195 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1541, allocations: 362.8 kB / 0.6614 GB, free: 0.832 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005714/0.1547, allocations: 405.6 kB / 0.6618 GB, free: 444 kB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006443/0.1553, allocations: 0.5011 MB / 0.6623 GB, free: 15.9 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.1564, allocations: 0.878 MB / 0.6631 GB, free: 15 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1564, allocations: 0 / 0.6631 GB, free: 15 MB / 0.5139 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00141/0.1579, allocations: 1.024 MB / 0.6641 GB, free: 13.96 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.1579, allocations: 10.66 kB / 0.6641 GB, free: 13.96 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.1579, allocations: 3.938 kB / 0.6641 GB, free: 13.95 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.1579, allocations: 8 kB / 0.6642 GB, free: 13.95 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000925/0.1589, allocations: 231.9 kB / 0.6644 GB, free: 13.72 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.1589, allocations: 8 kB / 0.6644 GB, free: 13.71 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003538/0.1592, allocations: 87.5 kB / 0.6645 GB, free: 13.62 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.784e-05/0.1593, allocations: 27.98 kB / 0.6645 GB, free: 13.6 MB / 0.5139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002887/0.1596, allocations: 222.1 kB / 0.6647 GB, free: 13.37 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.109e-05/0.1597, allocations: 39.75 kB / 0.6647 GB, free: 13.33 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00116/0.1608, allocations: 0.8059 MB / 0.6655 GB, free: 12.52 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.1609, allocations: 4 kB / 0.6655 GB, free: 12.52 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1609, allocations: 0 / 0.6655 GB, free: 12.52 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.1609, allocations: 7.984 kB / 0.6655 GB, free: 12.51 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006989/0.1616, allocations: 0.5871 MB / 0.6661 GB, free: 11.88 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1616, allocations: 0 / 0.6661 GB, free: 11.88 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.1626, allocations: 203.7 kB / 0.6663 GB, free: 11.68 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.962e-06/0.1626, allocations: 4 kB / 0.6663 GB, free: 11.68 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.007e-05/0.1627, allocations: 35.91 kB / 0.6663 GB, free: 11.64 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.1627, allocations: 0 / 0.6663 GB, free: 11.64 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1627, allocations: 0 / 0.6663 GB, free: 11.64 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.1643, allocations: 1.239 MB / 0.6676 GB, free: 10.39 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003138/0.1646, allocations: 188.7 kB / 0.6677 GB, free: 10.18 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.609e-05/0.1647, allocations: 31.92 kB / 0.6678 GB, free: 10.15 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000314/0.165, allocations: 39.94 kB / 0.6678 GB, free: 10.11 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.25e-05/0.1651, allocations: 28.39 kB / 0.6678 GB, free: 10.09 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/0.1652, allocations: 19.98 kB / 0.6678 GB, free: 10.07 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.0001961/0.1654, allocations: 221.9 kB / 0.6681 GB, free: 9.852 MB / 0.5139 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1654, allocations: 0 / 0.6681 GB, free: 9.852 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.0004562/0.1658, allocations: 127.9 kB / 0.6682 GB, free: 9.727 MB / 0.5139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 25 (P_sfc,generator[1].theta,generator[1].omega,generator[1].p,generator[1].q_ev,generator[1].y_t,generator[1].p_t_lp,generator[1].T_s[1],generator[1].T_s[2],generator[1].T_s[3],generator[1].T_s[4],generator[1].err_p_t_int,generator[1].err_p_int,generator[2].theta,generator[2].omega,generator[2].p,generator[2].q_ev,generator[2].y_t,generator[2].p_t_lp,generator[2].T_s[1],generator[2].T_s[2],generator[2].T_s[3],generator[2].T_s[4],generator[2].err_p_t_int,generator[2].err_p_int) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00186/0.1677, allocations: 1.805 MB / 0.6699 GB, free: 7.895 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.001242/0.1689, allocations: 0.8301 MB / 0.6708 GB, free: 7.062 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.169, allocations: 4.062 kB / 0.6708 GB, free: 7.059 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.0004528/0.1694, allocations: 370.2 kB / 0.6711 GB, free: 6.699 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003541/0.1698, allocations: 32.83 kB / 0.6711 GB, free: 6.668 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008109/0.1779, allocations: 6.976 MB / 0.678 GB, free: 15.56 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004755/0.1784, allocations: 0.8936 MB / 0.6788 GB, free: 14.64 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.00049/0.1789, allocations: 247 kB / 0.6791 GB, free: 14.41 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002909/0.1792, allocations: 127.4 kB / 0.6792 GB, free: 14.28 MB / 0.5295 GB Notification: Performance of SimCode: time 5.31e-07/0.1792, allocations: 0 / 0.6792 GB, free: 14.28 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02979/0.209, allocations: 9.64 MB / 0.6886 GB, free: 4.836 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.351/8.56, allocations: 8.438 kB / 0.6886 GB, free: 4.828 MB / 0.5295 GB (rm -f ScalableTestSuite_ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad.pipe ; mkfifo ScalableTestSuite_ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad.pipe ; head -c 1048576 < ScalableTestSuite_ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad.pipe >> ../files/ScalableTestSuite_ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad.sim & python3 -m fmpy simulate --output-file ScalableTestSuite_ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad_res.csv --start-time 0 --stop-time 200 --timeout 300 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.05 ScalableTestSuite_ScalableTestSuite_Power_ConceptualPowerSystem_Verification_TwoGeneratorsStepLoad.fmu > ScalableTestSuite_ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad.pipe 2>&1) diffSimulationResults("ScalableTestSuite_ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ScalableTestSuite/ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ScalableTestSuite_ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches