Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.356/1.356, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 183.9 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.4 MB / 0.5775 GB, free: 20.29 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008002/0.0008002, allocations: 91.73 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.00035, allocations: 6.531 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1851/0.1854, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.162/0.3475, allocations: 133.7 MB / 1.031 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.3478, allocations: 79.89 kB / 1.031 GB, free: 9.996 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009207/0.357, allocations: 3.283 MB / 1.034 GB, free: 6.707 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.955e-06/0.357, allocations: 3.984 kB / 1.034 GB, free: 6.703 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.593e-05/0.357, allocations: 8 kB / 1.034 GB, free: 6.695 MB / 0.6823 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.0005471/0.3576, allocations: 462.5 kB / 1.034 GB, free: 6.195 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.3576, allocations: 12.03 kB / 1.034 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.126e-05/0.3577, allocations: 19.8 kB / 1.034 GB, free: 6.164 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/0.358, allocations: 231.7 kB / 1.035 GB, free: 5.895 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.358, allocations: 4 kB / 1.035 GB, free: 5.891 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.3581, allocations: 8 kB / 1.035 GB, free: 5.883 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002845/0.3584, allocations: 103.4 kB / 1.035 GB, free: 5.777 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3584, allocations: 0 / 1.035 GB, free: 5.777 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.3584, allocations: 7.984 kB / 1.035 GB, free: 5.77 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.3584, allocations: 3.938 kB / 1.035 GB, free: 5.766 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002396/0.3587, allocations: 83.88 kB / 1.035 GB, free: 5.684 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006096/0.3593, allocations: 392.4 kB / 1.035 GB, free: 5.25 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001404/0.3594, allocations: 50.53 kB / 1.035 GB, free: 5.191 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.3595, allocations: 7.984 kB / 1.035 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/0.3597, allocations: 101.1 kB / 1.035 GB, free: 5.066 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.3597, allocations: 0 / 1.035 GB, free: 5.066 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0004467/0.3602, allocations: 153.3 kB / 1.036 GB, free: 4.91 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.3602, allocations: 81.11 kB / 1.036 GB, free: 4.812 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/0.3605, allocations: 228.1 kB / 1.036 GB, free: 4.578 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.3605, allocations: 25.7 kB / 1.036 GB, free: 4.547 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.824e-05/0.3606, allocations: 120.1 kB / 1.036 GB, free: 4.426 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.619e-05/0.3606, allocations: 11.89 kB / 1.036 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/0.3606, allocations: 0 / 1.036 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.3607, allocations: 326.8 kB / 1.036 GB, free: 4.086 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.3608, allocations: 35.97 kB / 1.036 GB, free: 4.051 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.361, allocations: 51.41 kB / 1.036 GB, free: 3.988 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001087/0.3611, allocations: 39.95 kB / 1.036 GB, free: 3.949 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3611, allocations: 0 / 1.036 GB, free: 3.949 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002649/0.3614, allocations: 117.4 kB / 1.037 GB, free: 3.828 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.3614, allocations: 11.95 kB / 1.037 GB, free: 3.816 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3614, allocations: 0 / 1.037 GB, free: 3.816 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.3614, allocations: 3.984 kB / 1.037 GB, free: 3.812 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.3615, allocations: 20.08 kB / 1.037 GB, free: 3.793 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.3616, allocations: 0 / 1.037 GB, free: 3.793 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.477e-05/0.3617, allocations: 23.83 kB / 1.037 GB, free: 3.77 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.3617, allocations: 4 kB / 1.037 GB, free: 3.766 MB / 0.6823 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 9.77e-05/0.3618, allocations: 127.9 kB / 1.037 GB, free: 3.633 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.437e-05/0.3618, allocations: 15.81 kB / 1.037 GB, free: 3.617 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/0.3618, allocations: 21.2 kB / 1.037 GB, free: 3.598 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3619, allocations: 4 kB / 1.037 GB, free: 3.594 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3619, allocations: 0 / 1.037 GB, free: 3.594 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3619, allocations: 3.984 kB / 1.037 GB, free: 3.59 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.3621, allocations: 213.6 kB / 1.037 GB, free: 3.332 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3621, allocations: 3.938 kB / 1.037 GB, free: 3.328 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.551e-05/0.3622, allocations: 19.92 kB / 1.037 GB, free: 3.309 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.3622, allocations: 4 kB / 1.037 GB, free: 3.305 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.3622, allocations: 0 / 1.037 GB, free: 3.305 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.3622, allocations: 3.953 kB / 1.037 GB, free: 3.301 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3622, allocations: 4 kB / 1.037 GB, free: 3.297 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002747/0.3625, allocations: 136.9 kB / 1.037 GB, free: 3.145 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.849e-05/0.3626, allocations: 104.8 kB / 1.037 GB, free: 3.023 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.3626, allocations: 4 kB / 1.037 GB, free: 3.02 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.505e-05/0.3627, allocations: 11.98 kB / 1.037 GB, free: 3.008 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.7e-05/0.3627, allocations: 7.953 kB / 1.037 GB, free: 3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.307e-05/0.3628, allocations: 4 kB / 1.037 GB, free: 2.996 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001584/0.3629, allocations: 184.5 kB / 1.037 GB, free: 2.82 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3629, allocations: 0 / 1.037 GB, free: 2.82 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002079/0.3631, allocations: 32.06 kB / 1.037 GB, free: 2.789 MB / 0.6823 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.0002238/0.3634, allocations: 122.3 kB / 1.038 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002872/0.3637, allocations: 79.88 kB / 1.038 GB, free: 2.582 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3637, allocations: 0 / 1.038 GB, free: 2.582 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.3638, allocations: 36.16 kB / 1.038 GB, free: 2.547 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.364, allocations: 36.41 kB / 1.038 GB, free: 2.512 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004986/0.3645, allocations: 314.3 kB / 1.038 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.3649, allocations: 0.7277 MB / 1.039 GB, free: 1.422 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 6.453e-05/0.3649, allocations: 20.47 kB / 1.039 GB, free: 1.402 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.218e-05/0.365, allocations: 23.42 kB / 1.039 GB, free: 1.379 MB / 0.6823 GB Notification: Performance of SimCode: time 4.71e-07/0.365, allocations: 0 / 1.039 GB, free: 1.379 MB / 0.6823 GB Notification: Performance of Templates: time 0.003969/0.369, allocations: 1.61 MB / 1.04 GB, free: 15.79 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches