Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Less,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u1|les.u2|les.y|lesHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Less,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u1|les.u2|les.y|lesHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001231/0.001231, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.474/2.474, allocations: 390.2 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 59.91 kB / 0.9516 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9848/0.9863, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Less): time 0.003575/0.99, allocations: 2.117 MB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002057/0.992, allocations: 1.239 MB / 1.092 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.9922, allocations: 8.344 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005239/0.9928, allocations: 160.4 kB / 1.092 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003888/0.9932, allocations: 158.2 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006888/0.9939, allocations: 239.4 kB / 1.092 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004902/0.9944, allocations: 350.6 kB / 1.093 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.9946, allocations: 80.73 kB / 1.093 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002622/0.9949, allocations: 163 kB / 1.093 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002469/0.9951, allocations: 163.9 kB / 1.093 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.286e-05/0.9952, allocations: 17 kB / 1.093 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.9954, allocations: 62.55 kB / 1.093 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.9955, allocations: 96.02 kB / 1.093 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.9956, allocations: 138.8 kB / 1.094 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005633/0.9962, allocations: 408.1 kB / 1.094 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.9962, allocations: 0.875 kB / 1.094 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.864e-06/0.9962, allocations: 0 / 1.094 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.009e-05/0.9962, allocations: 0.5938 kB / 1.094 GB, free: 2.246 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001114/0.9974, allocations: 0.6636 MB / 1.095 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.9974, allocations: 13.31 kB / 1.095 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.9975, allocations: 39.05 kB / 1.095 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005639/0.9981, allocations: 402.5 kB / 1.095 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.9981, allocations: 8.719 kB / 1.095 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.139e-05/0.9981, allocations: 11.92 kB / 1.095 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000302/0.9985, allocations: 119.6 kB / 1.095 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.9985, allocations: 0 / 1.095 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.9985, allocations: 6.641 kB / 1.095 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.9985, allocations: 5.906 kB / 1.095 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.9987, allocations: 68.67 kB / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009329/0.9997, allocations: 0.5324 MB / 1.096 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003628/1, allocations: 129.2 kB / 1.096 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/1, allocations: 44.67 kB / 1.096 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/1, allocations: 2.641 kB / 1.096 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/1, allocations: 118.7 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.773e-06/1, allocations: 0 / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0005513/1.001, allocations: 207.3 kB / 1.096 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/1.001, allocations: 57.83 kB / 1.096 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007227/1.002, allocations: 0.5255 MB / 1.097 GB, free: 356 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/1.002, allocations: 27.77 kB / 1.097 GB, free: 324 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/1.002, allocations: 188.7 kB / 1.097 GB, free: 164 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.939e-05/1.002, allocations: 32.81 kB / 1.097 GB, free: 140 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/1.002, allocations: 68.91 kB / 1.097 GB, free: 100 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002305/1.002, allocations: 350.6 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/1.003, allocations: 100.6 kB / 1.098 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002673/1.003, allocations: 131.7 kB / 1.098 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003379/1.003, allocations: 167 kB / 1.098 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/1.003, allocations: 0.6875 kB / 1.098 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006618/1.004, allocations: 315.7 kB / 1.098 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/1.004, allocations: 13.31 kB / 1.098 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/1.004, allocations: 5.125 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/1.004, allocations: 2.859 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002106/1.004, allocations: 45.47 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/1.004, allocations: 2.703 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/1.004, allocations: 26.75 kB / 1.098 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.315e-05/1.004, allocations: 12.81 kB / 1.098 GB, free: 15.43 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.timTabLin1.tab.nextTimeEvent,$whenCondition2,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition1,timTabLin1.tab.nextTimeEventScaled,$PRE.timTabLin1.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,lesHys.lesHys.y,$PRE.lesHys.lesHys.y,les.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.0002466/1.005, allocations: 177 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.688e-05/1.005, allocations: 39.72 kB / 1.098 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.967e-05/1.005, allocations: 39.56 kB / 1.098 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/1.005, allocations: 9.016 kB / 1.098 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/1.005, allocations: 7.875 kB / 1.098 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/1.005, allocations: 1.844 kB / 1.098 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004443/1.005, allocations: 308.5 kB / 1.099 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/1.005, allocations: 1.469 kB / 1.099 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.766e-05/1.005, allocations: 7.25 kB / 1.099 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/1.005, allocations: 4.906 kB / 1.099 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/1.005, allocations: 4.312 kB / 1.099 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/1.005, allocations: 0 / 1.099 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.005, allocations: 1.344 kB / 1.099 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003972/1.006, allocations: 198.9 kB / 1.099 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/1.006, allocations: 112.9 kB / 1.099 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.528e-05/1.006, allocations: 11.72 kB / 1.099 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/1.006, allocations: 12.41 kB / 1.099 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.208e-05/1.006, allocations: 19.17 kB / 1.099 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/1.006, allocations: 6.938 kB / 1.099 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005461/1.007, allocations: 326.1 kB / 1.099 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/1.007, allocations: 4.844 kB / 1.099 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003594/1.007, allocations: 68.06 kB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,les.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEvent,timTabLin1.tab.nextTimeEventScaled) * Number of discrete states: 5 (timTabLin1.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin1.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.00117/1.008, allocations: 431.2 kB / 1.1 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004679/1.009, allocations: 182.8 kB / 1.1 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/1.009, allocations: 0.875 kB / 1.1 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001503/1.009, allocations: 57.7 kB / 1.1 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005379/1.01, allocations: 84.45 kB / 1.1 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/1.011, allocations: 0.5797 MB / 1.101 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/1.011, allocations: 0.7939 MB / 1.102 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.901e-05/1.011, allocations: 34.27 kB / 1.102 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/1.011, allocations: 0 / 1.102 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of Templates: time 0.01168/1.023, allocations: 4.655 MB / 1.106 GB, free: 12.64 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Less.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches