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.001149/0.001149, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001109/0.001109, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.2/1.2, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.179/2.179, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 58.88 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2559, allocations: 153 MB / 1.027 GB, free: 2.074 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.002678/0.2586, allocations: 1.818 MB / 1.028 GB, free: 252 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001865/0.2605, allocations: 1.607 MB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.678e-05/0.2605, allocations: 8 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.2607, allocations: 31.66 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.016e-05/0.2608, allocations: 15.81 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005369/0.2614, allocations: 239.3 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002504/0.2616, allocations: 243.5 kB / 1.031 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.2617, allocations: 69.52 kB / 1.031 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.2619, allocations: 91.73 kB / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.262, allocations: 75.67 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.7e-05/0.262, allocations: 16 kB / 1.031 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000303/0.2623, allocations: 215.6 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.235e-05/0.2624, allocations: 83.73 kB / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.461e-05/0.2625, allocations: 99.45 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003647/0.2629, allocations: 390.9 kB / 1.032 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2629, allocations: 4 kB / 1.032 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.273e-06/0.2629, allocations: 0 / 1.032 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.2629, allocations: 0 / 1.032 GB, free: 13.07 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.000697/0.2636, allocations: 0.5494 MB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.735e-05/0.2637, allocations: 8.031 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.821e-05/0.2637, allocations: 28.66 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.264, allocations: 253.5 kB / 1.032 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.264, allocations: 16.38 kB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.085e-05/0.2641, allocations: 43.81 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/0.2644, allocations: 201.3 kB / 1.033 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.2644, allocations: 0 / 1.033 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.2645, allocations: 12 kB / 1.033 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.2645, allocations: 4 kB / 1.033 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00023/0.2647, allocations: 119.9 kB / 1.033 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.2658, allocations: 0.5782 MB / 1.033 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002991/0.2661, allocations: 206.1 kB / 1.034 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001501/0.2663, allocations: 100.8 kB / 1.034 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.2663, allocations: 11.94 kB / 1.034 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.2666, allocations: 164.7 kB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=27): time 1.613e-06/0.2666, allocations: 0 / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of matching and sorting (n=27): time 0.0006089/0.2672, allocations: 392.2 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.2673, allocations: 75.33 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.2674, allocations: 187.9 kB / 1.034 GB, free: 9.969 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.834e-05/0.2675, allocations: 49.69 kB / 1.034 GB, free: 9.914 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.38e-05/0.2675, allocations: 125 kB / 1.035 GB, free: 9.785 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.691e-05/0.2676, allocations: 78.98 kB / 1.035 GB, free: 9.707 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.955e-05/0.2677, allocations: 82.12 kB / 1.035 GB, free: 9.621 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.2678, allocations: 338.8 kB / 1.035 GB, free: 9.281 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.268, allocations: 112.8 kB / 1.035 GB, free: 9.172 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.2683, allocations: 257.5 kB / 1.035 GB, free: 8.859 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004147/0.2687, allocations: 371.9 kB / 1.036 GB, free: 8.438 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.2687, allocations: 3.938 kB / 1.036 GB, free: 8.434 MB / 0.8106 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005572/0.2693, allocations: 421.2 kB / 1.036 GB, free: 8.016 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2693, allocations: 12.06 kB / 1.036 GB, free: 8.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.2693, allocations: 7.984 kB / 1.036 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.2693, allocations: 8 kB / 1.036 GB, free: 7.988 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.2695, allocations: 59.86 kB / 1.036 GB, free: 7.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/0.2695, allocations: 15.92 kB / 1.036 GB, free: 7.914 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.2697, allocations: 35.69 kB / 1.036 GB, free: 7.879 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.2697, allocations: 12 kB / 1.036 GB, free: 7.867 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.0001625/0.2699, allocations: 202.1 kB / 1.037 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.005e-05/0.2699, allocations: 15.81 kB / 1.037 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.874e-05/0.2699, allocations: 22.56 kB / 1.037 GB, free: 7.625 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.2699, allocations: 7.984 kB / 1.037 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.27, allocations: 0 / 1.037 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.27, allocations: 3.984 kB / 1.037 GB, free: 7.613 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008795/0.2708, allocations: 0.686 MB / 1.037 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.2709, allocations: 4 kB / 1.037 GB, free: 6.867 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.271, allocations: 15.98 kB / 1.037 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.271, allocations: 0 / 1.037 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.271, allocations: 11.98 kB / 1.037 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.271, allocations: 4 kB / 1.037 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.271, allocations: 0 / 1.037 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006153/0.2716, allocations: 0.5161 MB / 1.038 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.046e-05/0.2717, allocations: 92.86 kB / 1.038 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.183e-05/0.2717, allocations: 16.03 kB / 1.038 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.2719, allocations: 11.98 kB / 1.038 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.694e-05/0.2719, allocations: 27.91 kB / 1.038 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.592e-05/0.272, allocations: 11.98 kB / 1.038 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.801e-05/0.2721, allocations: 127.2 kB / 1.038 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.6e-07/0.2721, allocations: 0 / 1.038 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004005/0.2725, allocations: 115.8 kB / 1.038 GB, free: 5.891 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.0006146/0.2731, allocations: 329.7 kB / 1.038 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004346/0.2735, allocations: 275.6 kB / 1.039 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2736, allocations: 4 kB / 1.039 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001667/0.2737, allocations: 108.8 kB / 1.039 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.274, allocations: 34.2 kB / 1.039 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007428/0.2748, allocations: 490.6 kB / 1.039 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.2751, allocations: 0.748 MB / 1.04 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001133/0.2752, allocations: 50.25 kB / 1.04 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.215e-05/0.2752, allocations: 27.42 kB / 1.04 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.2752, allocations: 0 / 1.04 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of Templates: time 0.005887/0.2811, allocations: 3.278 MB / 1.043 GB, free: 0.5859 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 cvode -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