Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.Sources.Examples.DayType.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.Sources.Examples.DayType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayTypMon.y.1.|dayTypSat.y.1.|dayTypTwoWeeks.y.1.|dayTypMonThr.y.1.|dayTypMonThr.y.2.|dayTypMonThr.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayTypMon.y.1.|dayTypSat.y.1.|dayTypTwoWeeks.y.1.|dayTypMonThr.y.1.|dayTypMonThr.y.2.|dayTypMonThr.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 108 kB / 16.42 MB, free: 6.449 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.001687/0.001688, allocations: 185.7 kB / 17.35 MB, free: 5.734 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.503/1.503, allocations: 222.9 MB / 241.1 MB, free: 15.16 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.339/2.339, allocations: 390.2 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 63.89 kB / 0.9515 GB, free: 7.703 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.122/1.124, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.002531/1.126, allocations: 1.431 MB / 1.09 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0005907/1.127, allocations: 278.2 kB / 1.09 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.779e-05/1.127, allocations: 5.031 kB / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001268/1.127, allocations: 12.64 kB / 1.09 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.396e-05/1.127, allocations: 20.31 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003286/1.128, allocations: 90.56 kB / 1.09 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002979/1.128, allocations: 234.8 kB / 1.091 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.789e-05/1.128, allocations: 12.89 kB / 1.091 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.23e-05/1.128, allocations: 85.77 kB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/1.128, allocations: 104.5 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.067e-05/1.128, allocations: 16.16 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.15e-05/1.128, allocations: 16.19 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001168/1.129, allocations: 83.64 kB / 1.091 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001179/1.129, allocations: 104.5 kB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003084/1.129, allocations: 258.1 kB / 1.091 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/1.129, allocations: 0 / 1.091 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.833e-06/1.129, allocations: 0 / 1.091 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.211e-06/1.129, allocations: 5.062 kB / 1.091 GB, free: 3.891 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0009105/1.13, allocations: 0.696 MB / 1.092 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/1.13, allocations: 9.219 kB / 1.092 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.406e-05/1.13, allocations: 26.48 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/1.13, allocations: 266 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.089e-05/1.13, allocations: 17.45 kB / 1.092 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.35e-05/1.13, allocations: 17.39 kB / 1.092 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006717/1.131, allocations: 456.8 kB / 1.093 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/1.131, allocations: 1 kB / 1.093 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/1.131, allocations: 10.52 kB / 1.093 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/1.131, allocations: 3.781 kB / 1.093 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004761/1.132, allocations: 324.3 kB / 1.093 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006992/1.132, allocations: 0.5638 MB / 1.094 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/1.134, allocations: 1.037 MB / 1.095 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/1.135, allocations: 0.6647 MB / 1.095 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.894e-05/1.135, allocations: 9.062 kB / 1.095 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007593/1.136, allocations: 482.8 kB / 1.096 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=37): time 1.974e-06/1.136, allocations: 0 / 1.096 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of matching and sorting (n=37): time 0.001887/1.138, allocations: 1.112 MB / 1.097 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/1.138, allocations: 140.9 kB / 1.097 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/1.138, allocations: 261.4 kB / 1.097 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/1.138, allocations: 37.67 kB / 1.097 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.024e-05/1.138, allocations: 127.4 kB / 1.097 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.033e-05/1.138, allocations: 77.8 kB / 1.097 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/1.138, allocations: 112.8 kB / 1.097 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.329e-05/1.139, allocations: 339.5 kB / 1.098 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004794/1.139, allocations: 333.1 kB / 1.098 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005808/1.14, allocations: 425 kB / 1.099 GB, free: 488 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/1.141, allocations: 0.7626 MB / 1.099 GB, free: 228 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/1.141, allocations: 0 / 1.099 GB, free: 228 kB / 0.8575 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001161/1.142, allocations: 0.836 MB / 1.1 GB, free: 0 / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/1.142, allocations: 5.781 kB / 1.1 GB, free: 0 / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.64e-05/1.142, allocations: 3.703 kB / 1.1 GB, free: 16 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.786e-05/1.142, allocations: 9.484 kB / 1.1 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/1.142, allocations: 43.88 kB / 1.1 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/1.142, allocations: 5.25 kB / 1.1 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/1.143, allocations: 35.27 kB / 1.1 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00042/1.143, allocations: 268.8 kB / 1.1 GB, free: 15.94 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 (dayTypMonThr.skipIDayIncrement,$PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.iDay,$PRE.dayTypMonThr.iDay,dayTypMonThr.y[3],dayTypMonThr.y[2],dayTypMonThr.y[1],dayTypTwoWeeks.skipIDayIncrement,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.iDay,$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.y[14],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[1],dayTypSat.skipIDayIncrement,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.iDay,$PRE.dayTypSat.iDay,dayTypSat.y[2],dayTypSat.y[1],dayTypMon.skipIDayIncrement,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.iDay,$PRE.dayTypMon.iDay,dayTypMon.y[2],dayTypMon.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.0003589/1.143, allocations: 198 kB / 1.101 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.858e-05/1.143, allocations: 25.55 kB / 1.101 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.996e-05/1.144, allocations: 42.08 kB / 1.101 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/1.144, allocations: 1.922 kB / 1.101 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/1.144, allocations: 1.469 kB / 1.101 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.178e-05/1.144, allocations: 106.5 kB / 1.101 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.279e-05/1.144, allocations: 9.469 kB / 1.101 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/1.144, allocations: 8.156 kB / 1.101 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/1.144, allocations: 52.39 kB / 1.101 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001388/1.145, allocations: 1.136 MB / 1.102 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001363/1.147, allocations: 1.202 MB / 1.103 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007352/1.148, allocations: 387 kB / 1.104 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002407/1.148, allocations: 173.4 kB / 1.104 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of Backend: time 1.563e-06/1.148, allocations: 0 / 1.104 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001418/1.149, allocations: 495.4 kB / 1.104 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of SimCode: time 0.002166/1.151, allocations: 1.047 MB / 1.105 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of Templates: time 0.01707/1.168, allocations: 6.959 MB / 1.112 GB, free: 12.95 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_9_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_9_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Sources.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Sources_Examples_DayType.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Sources.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches