Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008226/0.0008226, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008857/0.0008857, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9067/0.9067, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.771/1.771, allocations: 377.8 MB / 0.6221 GB, free: 8.66 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.925e-06/2.925e-06, allocations: 0 / 0.981 GB, free: 2.508 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.3e-05/2.593e-05, allocations: 4.953 kB / 0.981 GB, free: 2.504 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001691/0.001717, allocations: 0.8272 MB / 0.9818 GB, free: 1.676 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.002736, allocations: 0.9094 MB / 0.9827 GB, free: 0.7539 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.61e-05/0.002792, allocations: 0 / 0.9827 GB, free: 0.7539 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.451e-05/0.002826, allocations: 7.875 kB / 0.9827 GB, free: 0.7461 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 8.714e-05/0.002913, allocations: 23.73 kB / 0.9828 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002474/0.003161, allocations: 51.81 kB / 0.9828 GB, free: 0.6719 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.003282, allocations: 115.6 kB / 0.9829 GB, free: 0.5586 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.003389, allocations: 21.3 kB / 0.9829 GB, free: 0.5391 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.003584, allocations: 75.8 kB / 0.983 GB, free: 476 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 6.952e-05/0.003654, allocations: 39.89 kB / 0.983 GB, free: 436 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.11e-05/0.003675, allocations: 12 kB / 0.9831 GB, free: 424 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 4.337e-05/0.003718, allocations: 11.98 kB / 0.9831 GB, free: 412 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.63e-05/0.003745, allocations: 27.91 kB / 0.9831 GB, free: 384 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.249e-05/0.003777, allocations: 31.91 kB / 0.9831 GB, free: 352 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.003944, allocations: 135.5 kB / 0.9833 GB, free: 216 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.003947, allocations: 4 kB / 0.9833 GB, free: 212 kB / 0.9323 GB Notification: Performance of FrontEnd: time 8.72e-07/0.003948, allocations: 4 kB / 0.9833 GB, free: 208 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.003952, allocations: 0 / 0.9833 GB, free: 208 kB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005023/0.004455, allocations: 369.7 kB / 0.9836 GB, free: 15.81 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.004496, allocations: 8.031 kB / 0.9836 GB, free: 15.8 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.362e-05/0.004529, allocations: 38.69 kB / 0.9837 GB, free: 15.75 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.004691, allocations: 36.81 kB / 0.9837 GB, free: 15.72 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.004988, allocations: 192.2 kB / 0.9839 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.005011, allocations: 8.375 kB / 0.9839 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.005025, allocations: 12.38 kB / 0.9839 GB, free: 15.49 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.005214, allocations: 116.7 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.005222, allocations: 192 / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.005233, allocations: 4.375 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.005239, allocations: 7.938 kB / 0.984 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000156/0.005395, allocations: 75.86 kB / 0.9841 GB, free: 15.27 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004878/0.005883, allocations: 456.2 kB / 0.9845 GB, free: 14.78 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.00605, allocations: 115.8 kB / 0.9846 GB, free: 14.64 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.15e-05/0.006131, allocations: 50.55 kB / 0.9847 GB, free: 14.58 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.006155, allocations: 11.94 kB / 0.9847 GB, free: 14.57 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.006176, allocations: 30.56 kB / 0.9847 GB, free: 14.53 MB / 0.948 GB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.006177, allocations: 0 / 0.9847 GB, free: 14.53 MB / 0.948 GB Notification: Performance of matching and sorting (n=8): time 0.0003609/0.006538, allocations: 161.6 kB / 0.9849 GB, free: 14.36 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.006583, allocations: 102.8 kB / 0.985 GB, free: 14.24 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.217e-05/0.006675, allocations: 153.2 kB / 0.9851 GB, free: 14.08 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.006694, allocations: 29.7 kB / 0.9852 GB, free: 14.05 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.655e-05/0.006751, allocations: 116.2 kB / 0.9853 GB, free: 13.93 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.862e-05/0.00678, allocations: 23.8 kB / 0.9853 GB, free: 13.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.151e-05/0.006821, allocations: 29.7 kB / 0.9853 GB, free: 13.87 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.198e-05/0.006903, allocations: 318.8 kB / 0.9856 GB, free: 13.55 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.805e-05/0.006991, allocations: 44.12 kB / 0.9857 GB, free: 13.5 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.007115, allocations: 162.2 kB / 0.9858 GB, free: 13.31 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.007267, allocations: 94.61 kB / 0.9859 GB, free: 13.21 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.007271, allocations: 4 kB / 0.9859 GB, free: 13.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002079/0.007479, allocations: 145.5 kB / 0.9861 GB, free: 13.05 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.007492, allocations: 7.938 kB / 0.9861 GB, free: 13.05 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.007497, allocations: 0 / 0.9861 GB, free: 13.05 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.00751, allocations: 4 kB / 0.9861 GB, free: 13.04 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.198e-05/0.007592, allocations: 15.98 kB / 0.9861 GB, free: 13.03 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.007599, allocations: 3.984 kB / 0.9861 GB, free: 13.02 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.899e-05/0.007658, allocations: 15.98 kB / 0.9861 GB, free: 13.01 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.007668, allocations: 12 kB / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 7.453e-05/0.007742, allocations: 121.7 kB / 0.9862 GB, free: 12.87 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.921e-05/0.007781, allocations: 15.91 kB / 0.9862 GB, free: 12.85 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001551/0.007937, allocations: 85.98 kB / 0.9863 GB, free: 12.76 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.00794, allocations: 4 kB / 0.9863 GB, free: 12.76 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.007945, allocations: 0 / 0.9863 GB, free: 12.76 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.007949, allocations: 3.984 kB / 0.9863 GB, free: 12.75 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002042/0.008153, allocations: 160.8 kB / 0.9865 GB, free: 12.55 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.008156, allocations: 12 kB / 0.9865 GB, free: 12.54 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.991e-05/0.008206, allocations: 19.98 kB / 0.9865 GB, free: 12.52 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.00821, allocations: 3.984 kB / 0.9865 GB, free: 12.52 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.008218, allocations: 0 / 0.9865 GB, free: 12.52 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.008221, allocations: 7.938 kB / 0.9865 GB, free: 12.51 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.008222, allocations: 0 / 0.9865 GB, free: 12.51 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002582/0.00848, allocations: 361.9 kB / 0.9869 GB, free: 12.14 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.757e-05/0.008497, allocations: 27.83 kB / 0.9869 GB, free: 12.11 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.008515, allocations: 0 / 0.9869 GB, free: 12.11 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.00862, allocations: 11.98 kB / 0.9869 GB, free: 12.1 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.861e-05/0.008679, allocations: 23.95 kB / 0.9869 GB, free: 12.08 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.008684, allocations: 7.938 kB / 0.9869 GB, free: 12.07 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.514e-05/0.00874, allocations: 115.2 kB / 0.987 GB, free: 11.96 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.00874, allocations: 0 / 0.987 GB, free: 11.96 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002161/0.008956, allocations: 12 kB / 0.9871 GB, free: 11.95 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0004709/0.009427, allocations: 0.9101 MB / 0.9879 GB, free: 11 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002195/0.009646, allocations: 96.02 kB / 0.988 GB, free: 10.91 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.009648, allocations: 0 / 0.988 GB, free: 10.91 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.202e-05/0.00973, allocations: 51.89 kB / 0.9881 GB, free: 10.86 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.01007, allocations: 16.2 kB / 0.9881 GB, free: 10.84 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.01156, allocations: 1.826 MB / 0.9899 GB, free: 8.914 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.703e-05/0.01164, allocations: 88.31 kB / 0.99 GB, free: 8.805 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 6.452e-05/0.0117, allocations: 16.64 kB / 0.99 GB, free: 8.785 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.966e-05/0.01177, allocations: 36.48 kB / 0.99 GB, free: 8.75 MB / 0.948 GB Notification: Performance of SimCode: time 7.11e-07/0.01177, allocations: 0 / 0.99 GB, free: 8.75 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.03171, allocations: 3.437 MB / 0.9934 GB, free: 5.461 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.704/6.736, allocations: 9.906 kB / 0.9934 GB, free: 5.457 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.887435350567102]