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.001314/0.001314, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001325/0.001324, allocations: 191.5 kB / 17.85 MB, free: 5.168 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.5/1.5, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 1.133/1.133, allocations: 119.3 MB / 411 MB, free: 9.582 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001543, allocations: 67.89 kB / 0.491 GB, free: 13.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7537/0.7553, allocations: 80.69 MB / 0.5698 GB, free: 43.28 MB / 462.3 MB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Power.ConceptualPowerSystem.Verification.TwoGeneratorsStepLoad): time 0.002793/0.7581, allocations: 1.797 MB / 0.5716 GB, free: 41.85 MB / 462.3 MB Notification: Performance of NFInst.instExpressions: time 0.0009141/0.7591, allocations: 0.5499 MB / 0.5721 GB, free: 41.41 MB / 462.3 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.84e-05/0.7591, allocations: 7.938 kB / 0.5721 GB, free: 41.4 MB / 462.3 MB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.7593, allocations: 25.92 kB / 0.5722 GB, free: 41.38 MB / 462.3 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.7596, allocations: 67.22 kB / 0.5722 GB, free: 41.32 MB / 462.3 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002172/0.7598, allocations: 78.66 kB / 0.5723 GB, free: 41.26 MB / 462.3 MB Notification: Performance of NFFlatten.flatten: time 0.0005823/0.7604, allocations: 0.6442 MB / 0.5729 GB, free: 40.88 MB / 462.3 MB Notification: Performance of NFFlatten.resolveConnections: time 9.573e-05/0.7605, allocations: 59.06 kB / 0.573 GB, free: 40.85 MB / 462.3 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002573/0.7607, allocations: 252.5 kB / 0.5732 GB, free: 40.73 MB / 462.3 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000334/0.7611, allocations: 278.4 kB / 0.5735 GB, free: 40.56 MB / 462.3 MB Notification: Performance of NFPackage.collectConstants: time 0.000173/0.7613, allocations: 40.12 kB / 0.5735 GB, free: 40.56 MB / 462.3 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.7614, allocations: 42.75 kB / 0.5736 GB, free: 40.56 MB / 462.3 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.7615, allocations: 146.5 kB / 0.5737 GB, free: 40.46 MB / 462.3 MB Notification: Performance of NFVerifyModel.verify: time 0.0002218/0.7618, allocations: 216.3 kB / 0.5739 GB, free: 40.31 MB / 462.3 MB Notification: Performance of NFConvertDAE.convert: time 0.0004763/0.7622, allocations: 0.5184 MB / 0.5744 GB, free: 39.98 MB / 462.3 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.7623, allocations: 0.9688 kB / 0.5744 GB, free: 39.98 MB / 462.3 MB Notification: Performance of FrontEnd: time 1.753e-06/0.7623, allocations: 0 / 0.5744 GB, free: 39.98 MB / 462.3 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.7623, allocations: 3.938 kB / 0.5744 GB, free: 39.98 MB / 462.3 MB 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.002013/0.7643, allocations: 0.9531 MB / 0.5754 GB, free: 39.29 MB / 462.3 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.7644, allocations: 13.67 kB / 0.5754 GB, free: 39.28 MB / 462.3 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.55e-05/0.7644, allocations: 73.66 kB / 0.5755 GB, free: 39.21 MB / 462.3 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.497e-05/0.7645, allocations: 41.34 kB / 0.5755 GB, free: 39.2 MB / 462.3 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004181/0.765, allocations: 359.3 kB / 0.5758 GB, free: 38.89 MB / 462.3 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.567e-05/0.765, allocations: 32.91 kB / 0.5759 GB, free: 38.88 MB / 462.3 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002799/0.7653, allocations: 72.09 kB / 0.5759 GB, free: 38.85 MB / 462.3 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007708/0.7661, allocations: 0.5182 MB / 0.5764 GB, free: 38.55 MB / 462.3 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.7661, allocations: 12.98 kB / 0.5765 GB, free: 38.54 MB / 462.3 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.7662, allocations: 14.12 kB / 0.5765 GB, free: 38.53 MB / 462.3 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.493e-05/0.7662, allocations: 11.94 kB / 0.5765 GB, free: 38.53 MB / 462.3 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00068/0.7669, allocations: 0.4983 MB / 0.577 GB, free: 38.3 MB / 462.3 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003278/0.7702, allocations: 1.58 MB / 0.5785 GB, free: 37.34 MB / 462.3 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.7717, allocations: 0.8697 MB / 0.5794 GB, free: 36.91 MB / 462.3 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004594/0.7722, allocations: 374.9 kB / 0.5797 GB, free: 36.73 MB / 462.3 MB Notification: Performance of preOpt evalFunc (simulation): time 3.294e-05/0.7722, allocations: 5.469 kB / 0.5797 GB, free: 36.73 MB / 462.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.906e-05/0.7723, allocations: 45.45 kB / 0.5798 GB, free: 36.68 MB / 462.3 MB Notification: Performance of pre-optimization done (n=52): time 1.944e-06/0.7723, allocations: 0 / 0.5798 GB, free: 36.68 MB / 462.3 MB Notification: Performance of matching and sorting (n=52): time 0.001517/0.7738, allocations: 0.9932 MB / 0.5807 GB, free: 36.2 MB / 462.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.7738, allocations: 58.16 kB / 0.5808 GB, free: 36.13 MB / 462.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.7741, allocations: 314.1 kB / 0.5811 GB, free: 35.93 MB / 462.3 MB Notification: Performance of collectPreVariables (initialization): time 4.667e-05/0.7742, allocations: 36.23 kB / 0.5811 GB, free: 35.89 MB / 462.3 MB Notification: Performance of collectInitialEqns (initialization): time 9.727e-05/0.7743, allocations: 181.1 kB / 0.5813 GB, free: 35.72 MB / 462.3 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.7744, allocations: 208.9 kB / 0.5815 GB, free: 35.54 MB / 462.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002751/0.7747, allocations: 133.8 kB / 0.5816 GB, free: 35.46 MB / 462.3 MB Notification: Performance of setup shared object (initialization): time 8.257e-05/0.7748, allocations: 352.7 kB / 0.582 GB, free: 35.12 MB / 462.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005445/0.7753, allocations: 417.4 kB / 0.5824 GB, free: 34.93 MB / 462.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007899/0.7761, allocations: 0.4965 MB / 0.5828 GB, free: 34.64 MB / 462.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/0.7774, allocations: 0.8692 MB / 0.5837 GB, free: 34.18 MB / 462.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.7774, allocations: 0 / 0.5837 GB, free: 34.18 MB / 462.3 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001531/0.7789, allocations: 1.037 MB / 0.5847 GB, free: 33.67 MB / 462.3 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.7789, allocations: 4.781 kB / 0.5847 GB, free: 33.67 MB / 462.3 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.779, allocations: 6.25 kB / 0.5847 GB, free: 33.66 MB / 462.3 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.779, allocations: 5.625 kB / 0.5847 GB, free: 33.66 MB / 462.3 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009628/0.7799, allocations: 225.9 kB / 0.5849 GB, free: 33.61 MB / 462.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.78, allocations: 8.969 kB / 0.5849 GB, free: 33.61 MB / 462.3 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004108/0.7804, allocations: 88.3 kB / 0.585 GB, free: 33.55 MB / 462.3 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.088e-05/0.7804, allocations: 24.06 kB / 0.585 GB, free: 33.54 MB / 462.3 MB 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.0002366/0.7807, allocations: 227.4 kB / 0.5853 GB, free: 33.36 MB / 462.3 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.7808, allocations: 31.75 kB / 0.5853 GB, free: 33.34 MB / 462.3 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.7819, allocations: 0.8041 MB / 0.5861 GB, free: 32.62 MB / 462.3 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.7819, allocations: 8 kB / 0.5861 GB, free: 32.61 MB / 462.3 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.7819, allocations: 0 / 0.5861 GB, free: 32.61 MB / 462.3 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.782, allocations: 3.984 kB / 0.5861 GB, free: 32.61 MB / 462.3 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005308/0.7825, allocations: 0.5755 MB / 0.5867 GB, free: 31.98 MB / 462.3 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.7825, allocations: 0 / 0.5867 GB, free: 31.98 MB / 462.3 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000912/0.7834, allocations: 207.8 kB / 0.5869 GB, free: 31.78 MB / 462.3 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.7834, allocations: 0 / 0.5869 GB, free: 31.78 MB / 462.3 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-05/0.7835, allocations: 35.92 kB / 0.5869 GB, free: 31.74 MB / 462.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.7835, allocations: 0 / 0.5869 GB, free: 31.74 MB / 462.3 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.7835, allocations: 0 / 0.5869 GB, free: 31.74 MB / 462.3 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.7849, allocations: 1.227 MB / 0.5881 GB, free: 30.5 MB / 462.3 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.7851, allocations: 192.5 kB / 0.5883 GB, free: 30.29 MB / 462.3 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.235e-05/0.7851, allocations: 27.92 kB / 0.5883 GB, free: 30.27 MB / 462.3 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/0.7855, allocations: 43.92 kB / 0.5883 GB, free: 30.22 MB / 462.3 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.138e-05/0.7855, allocations: 36.39 kB / 0.5884 GB, free: 30.19 MB / 462.3 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.011e-05/0.7856, allocations: 16 kB / 0.5884 GB, free: 30.17 MB / 462.3 MB Notification: Performance of sorting global known variables: time 0.0002221/0.7858, allocations: 221.9 kB / 0.5886 GB, free: 29.96 MB / 462.3 MB Notification: Performance of sort global known variables: time 1.112e-06/0.7858, allocations: 0 / 0.5886 GB, free: 29.96 MB / 462.3 MB Notification: Performance of remove unused functions: time 0.0004103/0.7862, allocations: 123.9 kB / 0.5887 GB, free: 29.84 MB / 462.3 MB 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.00151/0.7878, allocations: 1.809 MB / 0.5905 GB, free: 28 MB / 462.3 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.7891, allocations: 1.048 MB / 0.5915 GB, free: 26.95 MB / 462.3 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.7891, allocations: 0 / 0.5915 GB, free: 26.95 MB / 462.3 MB Notification: Performance of simCode: created simulation system equations: time 0.0004099/0.7896, allocations: 378.1 kB / 0.5919 GB, free: 26.59 MB / 462.3 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.7899, allocations: 29.64 kB / 0.5919 GB, free: 26.56 MB / 462.3 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006789/0.7967, allocations: 7.023 MB / 0.5988 GB, free: 19.4 MB / 462.3 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.7972, allocations: 0.8936 MB / 0.5996 GB, free: 18.48 MB / 462.3 MB Notification: Performance of simCode: alias equations: time 0.0005206/0.7977, allocations: 251 kB / 0.5999 GB, free: 18.24 MB / 462.3 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.7979, allocations: 128.2 kB / 0.6 GB, free: 18.11 MB / 462.3 MB Notification: Performance of SimCode: time 7.71e-07/0.7979, allocations: 0 / 0.6 GB, free: 18.11 MB / 462.3 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03048/0.8284, allocations: 9.467 MB / 0.6092 GB, free: 8.828 MB / 462.3 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.913/9.742, allocations: 448 / 0.6092 GB, free: 8.828 MB / 462.3 MB (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