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.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.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.001034/0.001034, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001153/0.001153, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.88/2.88, allocations: 462.6 MB / 0.736 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003836, allocations: 17.05 kB / 0.9021 GB, free: 36.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.378/0.3784, allocations: 159.6 MB / 1.058 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002574/0.381, allocations: 1.327 MB / 1.059 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008629/0.3819, allocations: 0.5301 MB / 1.06 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.116e-05/0.382, allocations: 3.938 kB / 1.06 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001872/0.3822, allocations: 19.88 kB / 1.06 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000251/0.3825, allocations: 51.8 kB / 1.06 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001411/0.3826, allocations: 63.86 kB / 1.06 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001742/0.3828, allocations: 111.6 kB / 1.06 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.383, allocations: 37.47 kB / 1.06 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.3831, allocations: 47.83 kB / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.741e-05/0.3832, allocations: 43.72 kB / 1.06 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.643e-05/0.3832, allocations: 11.98 kB / 1.06 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.806e-05/0.3833, allocations: 15.98 kB / 1.06 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.43e-05/0.3834, allocations: 39.78 kB / 1.06 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.812e-05/0.3834, allocations: 41.64 kB / 1.06 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001581/0.3836, allocations: 100 kB / 1.06 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3836, allocations: 0 / 1.06 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3836, allocations: 0 / 1.06 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.3836, allocations: 0 / 1.06 GB, free: 2.84 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.0007185/0.3843, allocations: 458.6 kB / 1.061 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.3844, allocations: 8.031 kB / 1.061 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.83e-05/0.3845, allocations: 15.81 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.3848, allocations: 231.6 kB / 1.061 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.3848, allocations: 4 kB / 1.061 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.3849, allocations: 7.953 kB / 1.061 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003333/0.3852, allocations: 121.6 kB / 1.061 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.3852, allocations: 0 / 1.061 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.3852, allocations: 4 kB / 1.061 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.3853, allocations: 0 / 1.061 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002346/0.3855, allocations: 75.94 kB / 1.061 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007058/0.3862, allocations: 396.4 kB / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.3864, allocations: 42.55 kB / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.3865, allocations: 36.91 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.3865, allocations: 4 kB / 1.062 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000257/0.3868, allocations: 109 kB / 1.062 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.3868, allocations: 3.938 kB / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004217/0.3872, allocations: 145.4 kB / 1.062 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/0.3873, allocations: 77.11 kB / 1.062 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000265/0.3875, allocations: 256.9 kB / 1.062 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.3876, allocations: 29.7 kB / 1.062 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.379e-05/0.3877, allocations: 124.1 kB / 1.062 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.3877, allocations: 11.81 kB / 1.062 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-06/0.3877, allocations: 0 / 1.062 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.3879, allocations: 330.8 kB / 1.063 GB, free: 180 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.388, allocations: 31.98 kB / 1.063 GB, free: 148 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.3881, allocations: 59.52 kB / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.3882, allocations: 40 kB / 1.063 GB, free: 36 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3882, allocations: 0 / 1.063 GB, free: 36 kB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002835/0.3885, allocations: 117.5 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.3886, allocations: 8 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3886, allocations: 0 / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.3886, allocations: 7.938 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.3887, allocations: 20.08 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.3887, allocations: 3.953 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.349e-05/0.3888, allocations: 15.98 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.3888, allocations: 4 kB / 1.063 GB, free: 15.85 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.389, allocations: 125.8 kB / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.436e-05/0.389, allocations: 15.81 kB / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.659e-05/0.389, allocations: 25.23 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.389, allocations: 0 / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.389, allocations: 0 / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.3891, allocations: 3.953 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001916/0.3893, allocations: 221.5 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3893, allocations: 3.938 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.677e-05/0.3893, allocations: 11.98 kB / 1.063 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3894, allocations: 0 / 1.063 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-06/0.3894, allocations: 4 kB / 1.063 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3894, allocations: 4 kB / 1.063 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3894, allocations: 0 / 1.063 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002779/0.3897, allocations: 140.8 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.875e-05/0.3897, allocations: 96.91 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.394e-05/0.3898, allocations: 0 / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.365e-05/0.3899, allocations: 15.98 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.559e-05/0.3899, allocations: 4 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.39, allocations: 7.984 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001821/0.3902, allocations: 184.5 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3902, allocations: 4 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002283/0.3904, allocations: 31.86 kB / 1.064 GB, free: 14.88 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002523/0.3907, allocations: 119.4 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002978/0.391, allocations: 71.94 kB / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.391, allocations: 0 / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.3911, allocations: 36.16 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.3914, allocations: 39.59 kB / 1.064 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006085/0.392, allocations: 322.3 kB / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.3924, allocations: 0.7198 MB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.787e-05/0.3925, allocations: 24.53 kB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.058e-05/0.3925, allocations: 15.42 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3926, allocations: 0 / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of Templates: time 0.004726/0.3973, allocations: 1.564 MB / 1.067 GB, free: 11.94 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