Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008135/0.0008133, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.005091/0.005091, allocations: 171.3 kB / 16.26 MB, free: 6.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.389/1.389, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.876/2.876, allocations: 462.7 MB / 0.7364 GB, free: 260 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003533, allocations: 9.406 kB / 0.9028 GB, free: 36.79 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3335, allocations: 159.6 MB / 1.059 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00215/0.3357, allocations: 1.365 MB / 1.06 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009169/0.3366, allocations: 0.5415 MB / 1.061 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.3368, allocations: 0 / 1.061 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.337, allocations: 23.84 kB / 1.061 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002621/0.3373, allocations: 55.75 kB / 1.061 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.3375, allocations: 59.94 kB / 1.061 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001899/0.3377, allocations: 131.5 kB / 1.061 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.3378, allocations: 41.48 kB / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.338, allocations: 43.78 kB / 1.061 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.3381, allocations: 47.7 kB / 1.061 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.3381, allocations: 4 kB / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.004e-05/0.3382, allocations: 23.92 kB / 1.061 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.098e-05/0.3383, allocations: 31.91 kB / 1.061 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.373e-05/0.3384, allocations: 81.3 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000181/0.3386, allocations: 127.7 kB / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3386, allocations: 3.938 kB / 1.061 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.325e-06/0.3386, allocations: 4 kB / 1.061 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.3386, allocations: 4 kB / 1.061 GB, free: 2.867 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006043/0.3392, allocations: 446.8 kB / 1.062 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.3392, allocations: 11.97 kB / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.779e-05/0.3393, allocations: 16.75 kB / 1.062 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.3396, allocations: 236.8 kB / 1.062 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.3396, allocations: 8.375 kB / 1.062 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.3396, allocations: 4.375 kB / 1.062 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003023/0.3399, allocations: 117.9 kB / 1.062 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.3399, allocations: 0 / 1.062 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.34, allocations: 4 kB / 1.062 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.34, allocations: 11.92 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002616/0.3402, allocations: 75.94 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006382/0.3409, allocations: 404.4 kB / 1.062 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001532/0.3411, allocations: 38.56 kB / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.3412, allocations: 40.89 kB / 1.063 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.3412, allocations: 0 / 1.063 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.3415, allocations: 113 kB / 1.063 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.3415, allocations: 0 / 1.063 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005035/0.342, allocations: 145.4 kB / 1.063 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.3421, allocations: 77.11 kB / 1.063 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.3423, allocations: 253 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.3424, allocations: 25.7 kB / 1.063 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.636e-05/0.3425, allocations: 132 kB / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.3425, allocations: 3.906 kB / 1.063 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.526e-05/0.3425, allocations: 17.72 kB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.3426, allocations: 330.8 kB / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.3428, allocations: 31.92 kB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.3429, allocations: 55.41 kB / 1.064 GB, free: 80 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.3432, allocations: 86.62 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3432, allocations: 0 / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003163/0.3435, allocations: 121.4 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3435, allocations: 4.781 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.3435, allocations: 0 / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.3436, allocations: 7.938 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.3437, allocations: 15.92 kB / 1.064 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.3437, allocations: 4.062 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.3438, allocations: 19.89 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.3438, allocations: 4 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.000103/0.3439, allocations: 127.4 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/0.344, allocations: 15.81 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.41e-05/0.344, allocations: 21.52 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.344, allocations: 3.938 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.344, allocations: 0 / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.344, allocations: 7.984 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.3442, allocations: 221.5 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3442, allocations: 0 / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.112e-05/0.3443, allocations: 15.98 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3443, allocations: 4 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.3443, allocations: 0 / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.3444, allocations: 3.938 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3444, allocations: 0 / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003255/0.3447, allocations: 144.8 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-05/0.3448, allocations: 96.86 kB / 1.065 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.3448, allocations: 4 kB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.3449, allocations: 19.92 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.092e-05/0.345, allocations: 7.984 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.345, allocations: 4 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001722/0.3452, allocations: 188.5 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3452, allocations: 0 / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000235/0.3454, allocations: 23.91 kB / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0002393/0.3457, allocations: 127.3 kB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003292/0.346, allocations: 75.88 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.346, allocations: 0 / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.3462, allocations: 31.98 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003165/0.3465, allocations: 40.58 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005693/0.3471, allocations: 322.4 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.3474, allocations: 0.7277 MB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.901e-05/0.3475, allocations: 16.62 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.131e-05/0.3475, allocations: 19.38 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.3475, allocations: 4 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of Templates: time 0.004821/0.3524, allocations: 1.587 MB / 1.068 GB, free: 11.84 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches