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.293/2.293, allocations: 393.5 MB / 408.4 MB, free: 11.09 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.001217/0.001216, allocations: 176 kB / 0.4902 GB, free: 2.293 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.666/1.666, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.001042/0.001042, allocations: 94.48 kB / 0.9396 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004254/0.0004253, allocations: 10.38 kB / 1.09 GB, free: 216.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.338, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2052/0.5433, allocations: 152 MB / 1.378 GB, free: 1.562 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003321/0.5437, allocations: 87.94 kB / 1.378 GB, free: 1.477 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0102/0.5539, allocations: 3.326 MB / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.375e-06/0.554, allocations: 0 / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.356e-05/0.554, allocations: 8 kB / 1.381 GB, free: 14.14 MB / 0.8855 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.000662/0.5547, allocations: 462.6 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.5548, allocations: 15.97 kB / 1.381 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.897e-05/0.5549, allocations: 19.8 kB / 1.381 GB, free: 13.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.5552, allocations: 235.5 kB / 1.382 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.5552, allocations: 4 kB / 1.382 GB, free: 13.32 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.902e-05/0.5553, allocations: 4 kB / 1.382 GB, free: 13.32 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003224/0.5556, allocations: 105.6 kB / 1.382 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.5556, allocations: 4 kB / 1.382 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.5556, allocations: 0 / 1.382 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.5557, allocations: 0 / 1.382 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002637/0.5559, allocations: 83.92 kB / 1.382 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000723/0.5567, allocations: 400.4 kB / 1.382 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.5568, allocations: 54.44 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.5569, allocations: 4.062 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002426/0.5571, allocations: 101.1 kB / 1.382 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 1.473e-06/0.5571, allocations: 0 / 1.382 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0004857/0.5576, allocations: 153.3 kB / 1.383 GB, free: 12.34 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.5577, allocations: 77.11 kB / 1.383 GB, free: 12.25 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.5579, allocations: 228.2 kB / 1.383 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.558, allocations: 25.7 kB / 1.383 GB, free: 11.99 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.971e-05/0.5581, allocations: 124 kB / 1.383 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.301e-05/0.5581, allocations: 15.83 kB / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.429e-06/0.5581, allocations: 0 / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.5582, allocations: 326.8 kB / 1.383 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.5584, allocations: 35.97 kB / 1.383 GB, free: 11.48 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.5585, allocations: 59.58 kB / 1.383 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.5586, allocations: 32.02 kB / 1.383 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.5586, allocations: 0 / 1.383 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003198/0.559, allocations: 125.4 kB / 1.384 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.559, allocations: 4 kB / 1.384 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.559, allocations: 0 / 1.384 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.559, allocations: 0 / 1.384 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.5592, allocations: 23.92 kB / 1.384 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.5592, allocations: 3.984 kB / 1.384 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.5593, allocations: 16.06 kB / 1.384 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.5593, allocations: 7.984 kB / 1.384 GB, free: 11.2 MB / 0.8855 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.0001229/0.5595, allocations: 122.6 kB / 1.384 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.283e-05/0.5595, allocations: 23.75 kB / 1.384 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.385e-05/0.5596, allocations: 17.25 kB / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.5596, allocations: 0 / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.5596, allocations: 0 / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.5596, allocations: 0 / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/0.5598, allocations: 225.5 kB / 1.384 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.5598, allocations: 3.938 kB / 1.384 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.377e-05/0.5599, allocations: 11.98 kB / 1.384 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.56, allocations: 7.938 kB / 1.384 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.56, allocations: 3.953 kB / 1.384 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.56, allocations: 0 / 1.384 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.56, allocations: 0 / 1.384 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003265/0.5603, allocations: 144.8 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.057e-05/0.5604, allocations: 92.92 kB / 1.384 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.893e-05/0.5604, allocations: 7.984 kB / 1.384 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.811e-05/0.5605, allocations: 19.94 kB / 1.384 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/0.5606, allocations: 4 kB / 1.384 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.5606, allocations: 4 kB / 1.384 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001916/0.5608, allocations: 184.5 kB / 1.384 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.61e-07/0.5608, allocations: 0 / 1.384 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000237/0.5611, allocations: 23.94 kB / 1.384 GB, free: 10.22 MB / 0.8855 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.0002855/0.5614, allocations: 122.9 kB / 1.385 GB, free: 10.1 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003171/0.5617, allocations: 75.88 kB / 1.385 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5617, allocations: 4 kB / 1.385 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.5618, allocations: 31.97 kB / 1.385 GB, free: 9.988 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.5621, allocations: 38.16 kB / 1.385 GB, free: 9.953 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006211/0.5628, allocations: 314.5 kB / 1.385 GB, free: 9.617 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.5631, allocations: 0.7316 MB / 1.386 GB, free: 8.859 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.456e-05/0.5632, allocations: 16.48 kB / 1.386 GB, free: 8.844 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.763e-05/0.5632, allocations: 23.36 kB / 1.386 GB, free: 8.82 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.5632, allocations: 3.938 kB / 1.386 GB, free: 8.816 MB / 0.8855 GB Notification: Performance of Templates: time 0.004637/0.5679, allocations: 1.606 MB / 1.387 GB, free: 7.23 MB / 0.8855 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