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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.292/2.292, allocations: 390.5 MB / 398 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 184.6 kB / 491.2 MB, free: 1.535 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 221.5 MB / 0.7868 GB, free: 13.27 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009056/0.0009056, allocations: 90.19 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.499e-05/1.502e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2686, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9104/1.179, allocations: 151.2 MB / 1.36 GB, free: 17.55 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/1.179, allocations: 79.55 kB / 1.36 GB, free: 17.55 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009108/1.188, allocations: 3.31 MB / 1.363 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.753e-06/1.189, allocations: 0 / 1.363 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.466e-05/1.189, allocations: 8.719 kB / 1.363 GB, free: 33.08 MB / 0.8386 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.0005745/1.189, allocations: 427.9 kB / 1.364 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/1.189, allocations: 11.56 kB / 1.364 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.075e-05/1.189, allocations: 15.62 kB / 1.364 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003021/1.19, allocations: 236.7 kB / 1.364 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/1.19, allocations: 0 / 1.364 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/1.19, allocations: 4.656 kB / 1.364 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001149/1.19, allocations: 28.34 kB / 1.364 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001618/1.19, allocations: 79.33 kB / 1.364 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/1.19, allocations: 0 / 1.364 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/1.19, allocations: 3.844 kB / 1.364 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/1.19, allocations: 7.984 kB / 1.364 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005909/1.191, allocations: 358.9 kB / 1.364 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.711e-05/1.191, allocations: 29.98 kB / 1.364 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.948e-05/1.191, allocations: 21.22 kB / 1.364 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/1.191, allocations: 7.797 kB / 1.365 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000143/1.191, allocations: 74.56 kB / 1.365 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/1.191, allocations: 0 / 1.365 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001739/1.191, allocations: 59.61 kB / 1.365 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/1.191, allocations: 81.11 kB / 1.365 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/1.191, allocations: 198.2 kB / 1.365 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/1.191, allocations: 25.7 kB / 1.365 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.494e-05/1.191, allocations: 126.8 kB / 1.365 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.174e-05/1.191, allocations: 11.66 kB / 1.365 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/1.191, allocations: 3.938 kB / 1.365 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000118/1.192, allocations: 326.7 kB / 1.365 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.23e-05/1.192, allocations: 7.812 kB / 1.365 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.295e-05/1.192, allocations: 37.55 kB / 1.365 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.72e-05/1.192, allocations: 9.406 kB / 1.365 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/1.192, allocations: 0 / 1.365 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.628e-05/1.192, allocations: 66.42 kB / 1.365 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/1.192, allocations: 7.797 kB / 1.365 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/1.192, allocations: 1.766 kB / 1.365 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/1.192, allocations: 7.875 kB / 1.366 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/1.192, allocations: 10.86 kB / 1.366 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/1.192, allocations: 3.906 kB / 1.366 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.011e-05/1.192, allocations: 16.28 kB / 1.366 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/1.192, allocations: 3.969 kB / 1.366 GB, free: 31.3 MB / 0.8386 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 () * 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 8.283e-05/1.192, allocations: 108.9 kB / 1.366 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.662e-05/1.192, allocations: 16.89 kB / 1.366 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.744e-05/1.192, allocations: 23.03 kB / 1.366 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/1.192, allocations: 0 / 1.366 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/1.192, allocations: 0 / 1.366 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/1.192, allocations: 3.938 kB / 1.366 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001494/1.193, allocations: 196.2 kB / 1.366 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/1.193, allocations: 0 / 1.366 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.876e-05/1.193, allocations: 14.88 kB / 1.366 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/1.193, allocations: 4 kB / 1.366 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/1.193, allocations: 0 / 1.366 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/1.193, allocations: 0 / 1.366 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/1.193, allocations: 10.55 kB / 1.366 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00012/1.193, allocations: 85.95 kB / 1.366 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.581e-05/1.193, allocations: 95.86 kB / 1.366 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.538e-05/1.193, allocations: 3.906 kB / 1.366 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.657e-05/1.193, allocations: 16.97 kB / 1.366 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.342e-05/1.193, allocations: 6.094 kB / 1.366 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/1.193, allocations: 11.73 kB / 1.366 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001263/1.193, allocations: 155.8 kB / 1.366 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.193, allocations: 0 / 1.366 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002285/1.193, allocations: 23.38 kB / 1.366 GB, free: 30.73 MB / 0.8386 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 () * 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.0002518/1.194, allocations: 125.4 kB / 1.366 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001052/1.194, allocations: 25.89 kB / 1.366 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/1.194, allocations: 0 / 1.366 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.596e-05/1.194, allocations: 10.81 kB / 1.366 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/1.194, allocations: 32.98 kB / 1.366 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003795/1.194, allocations: 189.6 kB / 1.367 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/1.195, allocations: 0.7208 MB / 1.367 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.78e-05/1.195, allocations: 17.06 kB / 1.367 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/1.195, allocations: 16.75 kB / 1.367 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.195, allocations: 0 / 1.367 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of Templates: time 0.004077/1.199, allocations: 1.467 MB / 1.369 GB, free: 29.64 MB / 0.8386 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","../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches