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.004743/0.004743, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001247/0.001247, allocations: 197.5 kB / 16.67 MB, free: 5.52 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.534/2.534, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 56.12 kB / 1.054 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8933/0.8946, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002986/0.8977, allocations: 1.659 MB / 1.209 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008737/0.8986, allocations: 0.5417 MB / 1.21 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.372e-05/0.8987, allocations: 4 kB / 1.21 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000188/0.8989, allocations: 23.73 kB / 1.21 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002756/0.8992, allocations: 59.67 kB / 1.21 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001575/0.8993, allocations: 67.91 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002126/0.8995, allocations: 139.5 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.8997, allocations: 45.47 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.8999, allocations: 55.83 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.9, allocations: 63.64 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.9, allocations: 8 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.139e-05/0.9001, allocations: 20 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.86e-05/0.9002, allocations: 51.83 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.281e-05/0.9003, allocations: 55.61 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002379/0.9005, allocations: 155.2 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.9005, allocations: 0 / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.242e-06/0.9006, allocations: 0 / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.246e-05/0.9006, allocations: 0 / 1.211 GB, free: 10.7 MB / 0.9356 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.0007312/0.9013, allocations: 460.5 kB / 1.211 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.9014, allocations: 8.031 kB / 1.211 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.955e-05/0.9014, allocations: 20.75 kB / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.9018, allocations: 248.7 kB / 1.211 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.9018, allocations: 384 / 1.211 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.9018, allocations: 4.375 kB / 1.211 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.9021, allocations: 121.8 kB / 1.211 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.9022, allocations: 0 / 1.211 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.9022, allocations: 0 / 1.211 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.9022, allocations: 8 kB / 1.211 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/0.9024, allocations: 63.94 kB / 1.211 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006423/0.9031, allocations: 380.4 kB / 1.212 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.9032, allocations: 46.55 kB / 1.212 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.9033, allocations: 28.89 kB / 1.212 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.9034, allocations: 3.938 kB / 1.212 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002124/0.9036, allocations: 97.09 kB / 1.212 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.363e-06/0.9036, allocations: 4 kB / 1.212 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0004305/0.904, allocations: 117.4 kB / 1.212 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.9041, allocations: 81.11 kB / 1.212 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.9043, allocations: 256.9 kB / 1.212 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.9044, allocations: 29.7 kB / 1.212 GB, free: 8.543 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.366e-05/0.9044, allocations: 128 kB / 1.213 GB, free: 8.414 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.9045, allocations: 11.91 kB / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.554e-05/0.9045, allocations: 17.7 kB / 1.213 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.9046, allocations: 330.8 kB / 1.213 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.9047, allocations: 27.97 kB / 1.213 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.9049, allocations: 47.41 kB / 1.213 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.9051, allocations: 66.47 kB / 1.213 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.9051, allocations: 0 / 1.213 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002584/0.9053, allocations: 105.4 kB / 1.213 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.9054, allocations: 6.344 kB / 1.213 GB, free: 7.773 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.9054, allocations: 4 kB / 1.213 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.9054, allocations: 3.938 kB / 1.213 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.9055, allocations: 11.98 kB / 1.213 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.086e-06/0.9055, allocations: 3.984 kB / 1.213 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.367e-05/0.9056, allocations: 19.84 kB / 1.213 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.9056, allocations: 4.094 kB / 1.213 GB, free: 7.727 MB / 0.9356 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.0001018/0.9057, allocations: 125.8 kB / 1.213 GB, free: 7.594 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.799e-05/0.9058, allocations: 19.8 kB / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.317e-05/0.9058, allocations: 17.25 kB / 1.213 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.9058, allocations: 11.88 kB / 1.213 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.9058, allocations: 0 / 1.213 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.9058, allocations: 0 / 1.213 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.906, allocations: 213.6 kB / 1.214 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.906, allocations: 0 / 1.214 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.271e-05/0.9061, allocations: 15.98 kB / 1.214 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.634e-06/0.9061, allocations: 0 / 1.214 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.9061, allocations: 4 kB / 1.214 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.9061, allocations: 11.81 kB / 1.214 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.9061, allocations: 0 / 1.214 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002721/0.9064, allocations: 116.9 kB / 1.214 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.264e-05/0.9064, allocations: 92.92 kB / 1.214 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.9065, allocations: 4.312 kB / 1.214 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.774e-05/0.9066, allocations: 15.92 kB / 1.214 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.718e-05/0.9066, allocations: 4 kB / 1.214 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.9066, allocations: 4 kB / 1.214 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001568/0.9068, allocations: 192.5 kB / 1.214 GB, free: 6.797 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9068, allocations: 0 / 1.214 GB, free: 6.797 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002094/0.907, allocations: 20.12 kB / 1.214 GB, free: 6.777 MB / 0.9356 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.0002309/0.9073, allocations: 127 kB / 1.214 GB, free: 6.648 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002837/0.9075, allocations: 59.88 kB / 1.214 GB, free: 6.59 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.9076, allocations: 192 / 1.214 GB, free: 6.59 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.9077, allocations: 31.97 kB / 1.214 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.908, allocations: 53.45 kB / 1.214 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005167/0.9085, allocations: 287.3 kB / 1.215 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.9088, allocations: 0.7158 MB / 1.215 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.226e-05/0.9089, allocations: 24.53 kB / 1.215 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.9089, allocations: 11.44 kB / 1.215 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of SimCode: time 3.2e-07/0.9089, allocations: 0 / 1.215 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of Templates: time 0.004509/0.9134, allocations: 1.767 MB / 1.217 GB, free: 3.688 MB / 0.9356 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