Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00238/0.00238, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 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.002853/0.002853, allocations: 173.2 kB / 22.76 MB, free: 1.664 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 1.572/1.572, allocations: 177.1 MB / 203.1 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.423/3.423, allocations: 429.5 MB / 0.6729 GB, free: 4.02 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.387e-06/3.387e-06, allocations: 0 / 0.8775 GB, free: 6.598 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.645e-05/3.984e-05, allocations: 5.906 kB / 0.8775 GB, free: 6.594 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002455/0.002495, allocations: 0.834 MB / 0.8783 GB, free: 5.789 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001767/0.004262, allocations: 0.9253 MB / 0.8792 GB, free: 4.852 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.434e-05/0.004346, allocations: 4 kB / 0.8792 GB, free: 4.848 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.332e-05/0.00439, allocations: 8.812 kB / 0.8793 GB, free: 4.84 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.004523, allocations: 20.86 kB / 0.8793 GB, free: 4.82 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002977/0.004821, allocations: 43.94 kB / 0.8793 GB, free: 4.777 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001946/0.005016, allocations: 117.2 kB / 0.8794 GB, free: 4.664 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.005146, allocations: 21.25 kB / 0.8795 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.005403, allocations: 75.8 kB / 0.8795 GB, free: 4.57 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.005507, allocations: 47.88 kB / 0.8796 GB, free: 4.523 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.014e-05/0.005537, allocations: 10.03 kB / 0.8796 GB, free: 4.516 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.384e-05/0.005601, allocations: 12 kB / 0.8796 GB, free: 4.504 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.902e-05/0.00564, allocations: 27.91 kB / 0.8796 GB, free: 4.477 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.139e-05/0.005692, allocations: 31.91 kB / 0.8796 GB, free: 4.445 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002339/0.005926, allocations: 131.5 kB / 0.8798 GB, free: 4.316 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.005929, allocations: 6.5 kB / 0.8798 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.31e-07/0.00593, allocations: 0 / 0.8798 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.005935, allocations: 0 / 0.8798 GB, free: 4.312 MB / 0.8386 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.0007852/0.006721, allocations: 459.7 kB / 0.8802 GB, free: 3.824 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.006759, allocations: 8.031 kB / 0.8802 GB, free: 3.816 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000289/0.007048, allocations: 41.48 kB / 0.8803 GB, free: 3.777 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000426/0.007474, allocations: 181.3 kB / 0.8804 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.007495, allocations: 4.375 kB / 0.8804 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.007518, allocations: 13.72 kB / 0.8805 GB, free: 3.562 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.00779, allocations: 125.2 kB / 0.8806 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.007799, allocations: 192 / 0.8806 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.007811, allocations: 4.375 kB / 0.8806 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.007823, allocations: 8.125 kB / 0.8806 GB, free: 3.41 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002236/0.008046, allocations: 59.89 kB / 0.8806 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007525/0.008799, allocations: 0.5679 MB / 0.8812 GB, free: 2.738 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002762/0.009075, allocations: 133.2 kB / 0.8813 GB, free: 2.57 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.009213, allocations: 58.98 kB / 0.8814 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/0.009244, allocations: 8 kB / 0.8814 GB, free: 2.492 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.009286, allocations: 41.38 kB / 0.8814 GB, free: 2.441 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.009287, allocations: 0 / 0.8814 GB, free: 2.441 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0005353/0.009822, allocations: 133.5 kB / 0.8816 GB, free: 2.305 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.774e-05/0.0099, allocations: 106.8 kB / 0.8817 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/0.0101, allocations: 217.9 kB / 0.8819 GB, free: 1.945 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.01013, allocations: 33.69 kB / 0.8819 GB, free: 1.906 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.01025, allocations: 163.2 kB / 0.8821 GB, free: 1.738 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.835e-05/0.01028, allocations: 31.72 kB / 0.8821 GB, free: 1.707 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.027e-05/0.01036, allocations: 39.36 kB / 0.8821 GB, free: 1.66 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002726/0.01063, allocations: 0.4962 MB / 0.8826 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.01075, allocations: 27.98 kB / 0.8826 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.01097, allocations: 171.2 kB / 0.8828 GB, free: 0.9141 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.01121, allocations: 87.2 kB / 0.8829 GB, free: 0.8164 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.01121, allocations: 0 / 0.8829 GB, free: 0.8164 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003343/0.01154, allocations: 133.5 kB / 0.883 GB, free: 0.6797 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.01156, allocations: 8 kB / 0.883 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.01157, allocations: 0 / 0.883 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.01158, allocations: 0 / 0.883 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.01171, allocations: 19.98 kB / 0.883 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.01171, allocations: 0 / 0.883 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.256e-05/0.0118, allocations: 20 kB / 0.8831 GB, free: 0.6328 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.01182, allocations: 4 kB / 0.8831 GB, free: 0.6289 MB / 0.8386 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 0.0001399/0.01196, allocations: 176.5 kB / 0.8832 GB, free: 456 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.137e-05/0.01203, allocations: 11.89 kB / 0.8832 GB, free: 444 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002247/0.01225, allocations: 78 kB / 0.8833 GB, free: 352 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.01226, allocations: 0 / 0.8833 GB, free: 352 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.01226, allocations: 4 kB / 0.8833 GB, free: 348 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.01227, allocations: 0 / 0.8833 GB, free: 348 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003106/0.01258, allocations: 156.6 kB / 0.8835 GB, free: 156 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.01258, allocations: 0 / 0.8835 GB, free: 156 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.531e-05/0.01267, allocations: 23.92 kB / 0.8835 GB, free: 132 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.613e-06/0.01268, allocations: 3.938 kB / 0.8835 GB, free: 128 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.01269, allocations: 11.98 kB / 0.8835 GB, free: 116 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.01269, allocations: 0 / 0.8835 GB, free: 116 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01269, allocations: 0 / 0.8835 GB, free: 116 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005155/0.01321, allocations: 494.2 kB / 0.884 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.359e-05/0.01324, allocations: 23.72 kB / 0.884 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.01327, allocations: 3.984 kB / 0.884 GB, free: 15.58 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.01345, allocations: 12 kB / 0.884 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.541e-05/0.01353, allocations: 23.95 kB / 0.884 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.01354, allocations: 7.984 kB / 0.884 GB, free: 15.54 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001238/0.01367, allocations: 157.2 kB / 0.8842 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01367, allocations: 0 / 0.8842 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003129/0.01398, allocations: 20 kB / 0.8842 GB, free: 15.37 MB / 0.8542 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.0001412/0.01412, allocations: 99.23 kB / 0.8843 GB, free: 15.26 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003431/0.01446, allocations: 91.58 kB / 0.8844 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.01446, allocations: 0 / 0.8844 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.01462, allocations: 55.59 kB / 0.8844 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.01503, allocations: 22.42 kB / 0.8845 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005012/0.01553, allocations: 218.1 kB / 0.8847 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001133/0.01564, allocations: 88.17 kB / 0.8848 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 8.022e-05/0.01572, allocations: 21.17 kB / 0.8848 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.21e-05/0.01578, allocations: 20.5 kB / 0.8848 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of SimCode: time 6.32e-07/0.01578, allocations: 0 / 0.8848 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of Templates: time 0.005155/0.02094, allocations: 1.431 MB / 0.8862 GB, free: 13.27 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.703346533002332]