Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis.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.Thermal.DistrictHeating.Verification.TestHysteresis,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Thermal_DistrictHeating_Verification_TestHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Thermal_DistrictHeating_Verification_TestHysteresis",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.001132/0.001132, allocations: 105.7 kB / 16.62 MB, free: 6.812 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.001108/0.001108, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.147/1.147, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 0.7245/0.7245, allocations: 119.3 MB / 410.7 MB, free: 9.703 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 59.91 kB / 0.4905 GB, free: 13.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3832/0.3844, allocations: 80.69 MB / 0.5693 GB, free: 43.5 MB / 462.3 MB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis): time 0.001295/0.3857, allocations: 479.5 kB / 0.5698 GB, free: 43.15 MB / 462.3 MB Notification: Performance of NFInst.instExpressions: time 0.0003108/0.3861, allocations: 214.9 kB / 0.57 GB, free: 43 MB / 462.3 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.365e-05/0.3861, allocations: 0 / 0.57 GB, free: 43 MB / 462.3 MB Notification: Performance of NFTyping.typeComponents: time 1.181e-05/0.3861, allocations: 1.375 kB / 0.57 GB, free: 43 MB / 462.3 MB Notification: Performance of NFTyping.typeBindings: time 0.0001058/0.3862, allocations: 1.375 kB / 0.57 GB, free: 43 MB / 462.3 MB Notification: Performance of NFTyping.typeClassSections: time 9.608e-05/0.3863, allocations: 26.78 kB / 0.57 GB, free: 42.98 MB / 462.3 MB Notification: Performance of NFFlatten.flatten: time 3.43e-05/0.3864, allocations: 8.109 kB / 0.57 GB, free: 42.97 MB / 462.3 MB Notification: Performance of NFFlatten.resolveConnections: time 3.302e-05/0.3864, allocations: 5.312 kB / 0.57 GB, free: 42.97 MB / 462.3 MB Notification: Performance of NFEvalConstants.evaluate: time 1.56e-05/0.3864, allocations: 2.75 kB / 0.57 GB, free: 42.97 MB / 462.3 MB Notification: Performance of NFSimplifyModel.simplify: time 3.629e-05/0.3865, allocations: 10.75 kB / 0.57 GB, free: 42.96 MB / 462.3 MB Notification: Performance of NFPackage.collectConstants: time 9.959e-06/0.3865, allocations: 1.375 kB / 0.5701 GB, free: 42.96 MB / 462.3 MB Notification: Performance of NFFlatten.collectFunctions: time 6.456e-05/0.3866, allocations: 22.97 kB / 0.5701 GB, free: 42.95 MB / 462.3 MB Notification: Performance of NFScalarize.scalarize: time 1.048e-05/0.3866, allocations: 9.297 kB / 0.5701 GB, free: 42.94 MB / 462.3 MB Notification: Performance of NFVerifyModel.verify: time 1.778e-05/0.3866, allocations: 1.375 kB / 0.5701 GB, free: 42.94 MB / 462.3 MB Notification: Performance of NFConvertDAE.convert: time 7.085e-05/0.3867, allocations: 25.53 kB / 0.5701 GB, free: 42.93 MB / 462.3 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3867, allocations: 0 / 0.5701 GB, free: 42.93 MB / 462.3 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3867, allocations: 0 / 0.5701 GB, free: 42.93 MB / 462.3 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.3867, allocations: 1.375 kB / 0.5701 GB, free: 42.93 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000238/0.3869, allocations: 335.4 kB / 0.5704 GB, free: 42.55 MB / 462.3 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.387, allocations: 13.48 kB / 0.5704 GB, free: 42.55 MB / 462.3 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.965e-05/0.387, allocations: 30.75 kB / 0.5705 GB, free: 42.51 MB / 462.3 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.204e-05/0.387, allocations: 6.219 kB / 0.5705 GB, free: 42.51 MB / 462.3 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.792e-05/0.3871, allocations: 164 kB / 0.5706 GB, free: 42.31 MB / 462.3 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.131e-06/0.3871, allocations: 384 / 0.5706 GB, free: 42.31 MB / 462.3 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.582e-05/0.3871, allocations: 1.75 kB / 0.5706 GB, free: 42.31 MB / 462.3 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.941e-05/0.3872, allocations: 39.75 kB / 0.5707 GB, free: 42.27 MB / 462.3 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-06/0.3872, allocations: 7.922 kB / 0.5707 GB, free: 42.27 MB / 462.3 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-06/0.3872, allocations: 0 / 0.5707 GB, free: 42.27 MB / 462.3 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.3872, allocations: 5.375 kB / 0.5707 GB, free: 42.26 MB / 462.3 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.044e-05/0.3873, allocations: 4.125 kB / 0.5707 GB, free: 42.26 MB / 462.3 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.069e-05/0.3874, allocations: 157.7 kB / 0.5708 GB, free: 42.06 MB / 462.3 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001619/0.3875, allocations: 43.05 kB / 0.5709 GB, free: 42.03 MB / 462.3 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.993e-05/0.3876, allocations: 12.98 kB / 0.5709 GB, free: 42.02 MB / 462.3 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.3876, allocations: 3.984 kB / 0.5709 GB, free: 42.01 MB / 462.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.07e-05/0.3876, allocations: 40.02 kB / 0.5709 GB, free: 41.96 MB / 462.3 MB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.3876, allocations: 0 / 0.5709 GB, free: 41.96 MB / 462.3 MB Notification: Performance of matching and sorting (n=3): time 0.0001132/0.3877, allocations: 59.3 kB / 0.571 GB, free: 41.91 MB / 462.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.658e-05/0.3877, allocations: 52.78 kB / 0.571 GB, free: 41.85 MB / 462.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.367e-05/0.3878, allocations: 92.61 kB / 0.5711 GB, free: 41.75 MB / 462.3 MB Notification: Performance of collectPreVariables (initialization): time 6.272e-06/0.3878, allocations: 29.7 kB / 0.5712 GB, free: 41.72 MB / 462.3 MB Notification: Performance of collectInitialEqns (initialization): time 1.191e-05/0.3878, allocations: 84 kB / 0.5712 GB, free: 41.64 MB / 462.3 MB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.3878, allocations: 13.17 kB / 0.5713 GB, free: 41.62 MB / 462.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.341e-05/0.3878, allocations: 20.59 kB / 0.5713 GB, free: 41.6 MB / 462.3 MB Notification: Performance of setup shared object (initialization): time 3.306e-05/0.3879, allocations: 312.2 kB / 0.5716 GB, free: 41.29 MB / 462.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.731e-05/0.3879, allocations: 7.359 kB / 0.5716 GB, free: 41.29 MB / 462.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.289e-05/0.3879, allocations: 11.53 kB / 0.5716 GB, free: 41.28 MB / 462.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.424e-05/0.388, allocations: 17.7 kB / 0.5716 GB, free: 41.27 MB / 462.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.388, allocations: 1.719 kB / 0.5716 GB, free: 41.27 MB / 462.3 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.281e-05/0.388, allocations: 51.06 kB / 0.5717 GB, free: 41.22 MB / 462.3 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.3881, allocations: 8.312 kB / 0.5717 GB, free: 41.22 MB / 462.3 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3881, allocations: 5.031 kB / 0.5717 GB, free: 41.21 MB / 462.3 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.3881, allocations: 4 kB / 0.5717 GB, free: 41.21 MB / 462.3 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.869e-05/0.3881, allocations: 10.58 kB / 0.5717 GB, free: 41.21 MB / 462.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.3881, allocations: 0 / 0.5717 GB, free: 41.21 MB / 462.3 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.924e-05/0.3882, allocations: 9.031 kB / 0.5717 GB, free: 41.2 MB / 462.3 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-06/0.3882, allocations: 1.156 kB / 0.5717 GB, free: 41.2 MB / 462.3 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (4): * Single equations (assignments): 4 * 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 3.4e-05/0.3882, allocations: 106.9 kB / 0.5718 GB, free: 41.09 MB / 462.3 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-06/0.3882, allocations: 4.969 kB / 0.5718 GB, free: 41.08 MB / 462.3 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.3883, allocations: 82.66 kB / 0.5719 GB, free: 41.01 MB / 462.3 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.3883, allocations: 0 / 0.5719 GB, free: 41.01 MB / 462.3 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3884, allocations: 0.875 kB / 0.5719 GB, free: 41.01 MB / 462.3 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.3884, allocations: 0 / 0.5719 GB, free: 41.01 MB / 462.3 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.667e-05/0.3884, allocations: 162 kB / 0.572 GB, free: 40.81 MB / 462.3 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3884, allocations: 0 / 0.572 GB, free: 40.81 MB / 462.3 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.339e-05/0.3885, allocations: 11.61 kB / 0.572 GB, free: 40.8 MB / 462.3 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3885, allocations: 5.062 kB / 0.572 GB, free: 40.8 MB / 462.3 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.3885, allocations: 4 kB / 0.5721 GB, free: 40.8 MB / 462.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3885, allocations: 1.312 kB / 0.5721 GB, free: 40.8 MB / 462.3 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3885, allocations: 0 / 0.5721 GB, free: 40.8 MB / 462.3 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001111/0.3886, allocations: 98.34 kB / 0.5721 GB, free: 40.71 MB / 462.3 MB Notification: Performance of postOpt removeConstants (simulation): time 1.444e-05/0.3886, allocations: 82.25 kB / 0.5722 GB, free: 40.61 MB / 462.3 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.3887, allocations: 9.031 kB / 0.5722 GB, free: 40.61 MB / 462.3 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.937e-05/0.3887, allocations: 0 / 0.5722 GB, free: 40.61 MB / 462.3 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.469e-05/0.3887, allocations: 6.156 kB / 0.5722 GB, free: 40.6 MB / 462.3 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.3887, allocations: 2.125 kB / 0.5722 GB, free: 40.6 MB / 462.3 MB Notification: Performance of sorting global known variables: time 1.488e-05/0.3887, allocations: 80.47 kB / 0.5723 GB, free: 40.52 MB / 462.3 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3887, allocations: 0 / 0.5723 GB, free: 40.52 MB / 462.3 MB Notification: Performance of remove unused functions: time 0.0001808/0.3889, allocations: 16.08 kB / 0.5723 GB, free: 40.52 MB / 462.3 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * 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 (6): * Single equations (assignments): 6 * 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.0002294/0.3892, allocations: 0.645 MB / 0.573 GB, free: 39.88 MB / 462.3 MB Notification: Performance of simCode: created initialization part: time 7.722e-05/0.3892, allocations: 26.7 kB / 0.573 GB, free: 39.87 MB / 462.3 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.3893, allocations: 1.5 kB / 0.573 GB, free: 39.87 MB / 462.3 MB Notification: Performance of simCode: created simulation system equations: time 2.472e-05/0.3893, allocations: 18.41 kB / 0.573 GB, free: 39.86 MB / 462.3 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001247/0.3894, allocations: 10.5 kB / 0.573 GB, free: 39.86 MB / 462.3 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005573/0.39, allocations: 1.128 MB / 0.5741 GB, free: 38.71 MB / 462.3 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.018e-05/0.3901, allocations: 0.6792 MB / 0.5748 GB, free: 38.01 MB / 462.3 MB Notification: Performance of simCode: alias equations: time 2.455e-05/0.3901, allocations: 6.938 kB / 0.5748 GB, free: 38.01 MB / 462.3 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.461e-05/0.3901, allocations: 11.56 kB / 0.5748 GB, free: 38 MB / 462.3 MB Notification: Performance of SimCode: time 2.31e-07/0.3901, allocations: 4 kB / 0.5748 GB, free: 38 MB / 462.3 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2687/0.6589, allocations: 1.375 MB / 0.5761 GB, free: 37.33 MB / 462.3 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001447/0.659, allocations: 228 kB / 0.5764 GB, free: 37.07 MB / 462.3 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/2.301, allocations: 2.953 kB / 0.5764 GB, free: 37.07 MB / 462.3 MB (rm -f ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis.pipe ; mkfifo ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis.pipe ; head -c 1048576 < ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis.pipe >> ../files/ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis_res.mat --tempDir=temp_ScalableTestSuite_ScalableTestSuite_Thermal_DistrictHeating_Verification_TestHysteresis_fmu --startTime=0 --stopTime=20 --timeout=300 --tolerance=1e-06 ScalableTestSuite_ScalableTestSuite_Thermal_DistrictHeating_Verification_TestHysteresis.fmu > ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis.pipe 2>&1) diffSimulationResults("ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ScalableTestSuite/ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis_res.mat","../files/ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.Verification.TestHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches