Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TAmb.y|onOffCon.u|pyt.yR.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom") translateModel(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TAmb.y|onOffCon.u|pyt.yR.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 114.3 kB / 16.37 MB, free: 6 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.001451/0.001451, allocations: 195.9 kB / 17.31 MB, free: 5.613 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.444/2.444, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 64.61 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2808, allocations: 153 MB / 1.027 GB, free: 2.027 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.003041/0.2839, allocations: 1.814 MB / 1.028 GB, free: 208 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002076/0.286, allocations: 1.615 MB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.464e-05/0.2861, allocations: 4 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001953/0.2863, allocations: 27.72 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001106/0.2864, allocations: 23.8 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005964/0.2871, allocations: 243.3 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002771/0.2873, allocations: 243.5 kB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.2875, allocations: 61.47 kB / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.2876, allocations: 95.73 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001332/0.2878, allocations: 79.67 kB / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.2878, allocations: 16 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003563/0.2882, allocations: 219.6 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.2883, allocations: 75.8 kB / 1.031 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.539e-05/0.2884, allocations: 95.47 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.2888, allocations: 386.9 kB / 1.032 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2889, allocations: 3.938 kB / 1.032 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2889, allocations: 0 / 1.032 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.2889, allocations: 0 / 1.032 GB, free: 13.03 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0007822/0.2897, allocations: 0.5545 MB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.2897, allocations: 12.03 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.34e-05/0.2898, allocations: 24.66 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.2901, allocations: 253.5 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.2901, allocations: 16.38 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.429e-05/0.2902, allocations: 35.78 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003333/0.2905, allocations: 213.3 kB / 1.033 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2905, allocations: 0 / 1.033 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.997e-05/0.2906, allocations: 4 kB / 1.033 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.2906, allocations: 4 kB / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002278/0.2908, allocations: 115.9 kB / 1.033 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.292, allocations: 0.582 MB / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.2923, allocations: 198.5 kB / 1.034 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.2924, allocations: 100.8 kB / 1.034 GB, free: 10.78 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.2925, allocations: 8.031 kB / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/0.2928, allocations: 176.6 kB / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=27): time 1.703e-06/0.2928, allocations: 0 / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=27): time 0.0006599/0.2934, allocations: 392.2 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.2935, allocations: 71.38 kB / 1.034 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.2936, allocations: 183.9 kB / 1.034 GB, free: 9.93 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.245e-05/0.2937, allocations: 49.69 kB / 1.034 GB, free: 9.875 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.396e-05/0.2938, allocations: 132.9 kB / 1.035 GB, free: 9.738 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.389e-05/0.2938, allocations: 79 kB / 1.035 GB, free: 9.66 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.158e-05/0.2939, allocations: 82.12 kB / 1.035 GB, free: 9.574 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.294, allocations: 334.8 kB / 1.035 GB, free: 9.238 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001861/0.2942, allocations: 116.8 kB / 1.035 GB, free: 9.125 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002766/0.2945, allocations: 253.5 kB / 1.035 GB, free: 8.816 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004463/0.295, allocations: 368 kB / 1.036 GB, free: 8.398 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.748e-06/0.295, allocations: 7.938 kB / 1.036 GB, free: 8.391 MB / 0.8106 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000592/0.2956, allocations: 424.6 kB / 1.036 GB, free: 7.969 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.2956, allocations: 4 kB / 1.036 GB, free: 7.965 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.2956, allocations: 8.469 kB / 1.036 GB, free: 7.957 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.2957, allocations: 8 kB / 1.036 GB, free: 7.949 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.2959, allocations: 63.91 kB / 1.036 GB, free: 7.887 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.2959, allocations: 11.92 kB / 1.036 GB, free: 7.875 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.296, allocations: 35.69 kB / 1.036 GB, free: 7.84 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.296, allocations: 20 kB / 1.036 GB, free: 7.82 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 34 (pyt.firstTrigger,$PRE.pyt.firstTrigger,pyt.yR[2],$PRE.pyt.yR[2],pyt.uRIntPre[1],$PRE.pyt.uRIntPre[1],pyt.uRIntPre[2],$PRE.pyt.uRIntPre[2],pyt.uRIntPre[3],$PRE.pyt.uRIntPre[3],pyt.uRIntPre[4],$PRE.pyt.uRIntPre[4],pyt.uRWri_temp[1],$PRE.pyt.uRWri_temp[1],pyt.uRWri[1],$PRE.pyt.uRWri[1],pyt.uRWri_temp[4],$PRE.pyt.uRWri_temp[4],pyt.uRWri[4],$PRE.pyt.uRWri[4],pyt.sampleTrigger,$whenCondition1,pyt.uRWri_temp[2],$PRE.pyt.uRWri_temp[2],pyt.uRWri[2],$PRE.pyt.uRWri[2],onOffCon.y,$PRE.onOffCon.y,pyt.uRWri_temp[3],$PRE.pyt.uRWri_temp[3],pyt.uRWri[3],$PRE.pyt.uRWri[3],pyt.yR[1],$PRE.pyt.yR[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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.0001649/0.2962, allocations: 198.1 kB / 1.037 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.262e-05/0.2963, allocations: 19.8 kB / 1.037 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.076e-05/0.2963, allocations: 18.56 kB / 1.037 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2963, allocations: 4 kB / 1.037 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.2963, allocations: 0 / 1.037 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.2963, allocations: 3.984 kB / 1.037 GB, free: 7.574 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009261/0.2973, allocations: 0.686 MB / 1.037 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2973, allocations: 0 / 1.037 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.2974, allocations: 19.98 kB / 1.037 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2974, allocations: 4 kB / 1.037 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.2974, allocations: 11.98 kB / 1.037 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2974, allocations: 3.938 kB / 1.037 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2974, allocations: 0 / 1.037 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006672/0.2981, allocations: 0.5122 MB / 1.038 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.499e-05/0.2982, allocations: 92.86 kB / 1.038 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.447e-05/0.2982, allocations: 20.22 kB / 1.038 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.2984, allocations: 19.98 kB / 1.038 GB, free: 6.117 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.613e-05/0.2984, allocations: 23.91 kB / 1.038 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/0.2985, allocations: 11.98 kB / 1.038 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.78e-05/0.2985, allocations: 135.1 kB / 1.038 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2986, allocations: 0 / 1.038 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000413/0.299, allocations: 107.9 kB / 1.038 GB, free: 5.844 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (pyt.uRInt[1],pyt.uRInt[2],pyt.uRInt[3],pyt.uRInt[4]) * Number of discrete variables: 18 (pyt.sampleTrigger,$whenCondition1,pyt.firstTrigger,pyt.yR[1],pyt.yR[2],pyt.uRIntPre[1],pyt.uRIntPre[2],pyt.uRIntPre[3],pyt.uRIntPre[4],pyt.uRWri[1],pyt.uRWri[2],pyt.uRWri[3],pyt.uRWri[4],pyt.uRWri_temp[1],pyt.uRWri_temp[2],pyt.uRWri_temp[3],pyt.uRWri_temp[4],onOffCon.y) * Number of discrete states: 5 (pyt.uR[1],pyt.uR[2],pyt.uR[3],pyt.uR[4],onOffCon.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.0006229/0.2996, allocations: 331.8 kB / 1.038 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004584/0.3001, allocations: 287.6 kB / 1.039 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3001, allocations: 0 / 1.039 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001766/0.3003, allocations: 103.9 kB / 1.039 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.3006, allocations: 20.92 kB / 1.039 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007804/0.3014, allocations: 0.4908 MB / 1.039 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.3016, allocations: 0.748 MB / 1.04 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001202/0.3018, allocations: 54.25 kB / 1.04 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.203e-05/0.3018, allocations: 19.44 kB / 1.04 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.3018, allocations: 0 / 1.04 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of Templates: time 0.006415/0.3082, allocations: 3.274 MB / 1.043 GB, free: 0.5469 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.sim & ./Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,TAmb.y,onOffCon.u,pyt.yR[2] Variables in the result:T0.k,T0.y,TAmb.amplitude,TAmb.f,TAmb.offset,TAmb.phase,TAmb.startTime,TAmb.y,mul.n1,mul.n2,mul.n3,mul.n4,mul.u1[1],mul.y[1],onOff.realFalse,onOff.realTrue,onOffCon.pre_y_start,onOffCon.u,onOffCon.uHigh,onOffCon.uLow,pyt.flaDblWri[1],pyt.flaDblWri[2],pyt.flaDblWri[3],pyt.flaDblWri[4],pyt.flag,pyt.nDblRea,pyt.nDblWri,pyt.passPythonObject,pyt.samplePeriod,pyt.startTime,pyt.uR[2],pyt.yR[2],sub1.u1,sub1.y,time