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.0009334/0.0009332, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0009575/0.0009576, allocations: 177.3 kB / 15.94 MB, free: 228 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.453/1.453, allocations: 223.2 MB / 239.9 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.762/2.762, allocations: 436.5 MB / 0.7104 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004229/0.000423, allocations: 11.94 kB / 0.8708 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8904/0.8909, allocations: 153.6 MB / 1.021 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002137/0.8931, allocations: 1.332 MB / 1.022 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00084/0.8939, allocations: 0.507 MB / 1.023 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.828e-05/0.894, allocations: 7.938 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.8942, allocations: 23.86 kB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002498/0.8945, allocations: 59.78 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001555/0.8946, allocations: 55.86 kB / 1.023 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000193/0.8948, allocations: 87.83 kB / 1.023 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.895, allocations: 41.45 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.8951, allocations: 43.78 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.198e-05/0.8952, allocations: 43.78 kB / 1.023 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.8953, allocations: 4 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.679e-05/0.8953, allocations: 8 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.639e-05/0.8954, allocations: 35.83 kB / 1.023 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.492e-05/0.8955, allocations: 45.64 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.8956, allocations: 101.7 kB / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.8956, allocations: 0 / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8956, allocations: 0 / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.411e-06/0.8957, allocations: 8 kB / 1.023 GB, free: 14.71 MB / 0.7794 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.0006805/0.8963, allocations: 452.8 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.8964, allocations: 15.98 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.064e-05/0.8964, allocations: 15.81 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/0.8967, allocations: 227.6 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.8968, allocations: 12 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/0.8968, allocations: 4 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.8971, allocations: 117.6 kB / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.8971, allocations: 3.938 kB / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.8971, allocations: 0 / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.8971, allocations: 8 kB / 1.024 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002579/0.8974, allocations: 83.94 kB / 1.024 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006977/0.8981, allocations: 392.4 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.8983, allocations: 50.53 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.8983, allocations: 4 kB / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003172/0.8986, allocations: 101.1 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.8986, allocations: 0 / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004751/0.8991, allocations: 141.4 kB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.8992, allocations: 85.11 kB / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002833/0.8995, allocations: 256.9 kB / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.8995, allocations: 25.7 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.46e-05/0.8996, allocations: 132 kB / 1.025 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.8996, allocations: 7.906 kB / 1.025 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-06/0.8996, allocations: 0 / 1.025 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.8998, allocations: 326.8 kB / 1.025 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.8999, allocations: 31.97 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.9, allocations: 55.41 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.9002, allocations: 39.94 kB / 1.026 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.9002, allocations: 0 / 1.026 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002988/0.9005, allocations: 121.4 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.9005, allocations: 4 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.9005, allocations: 0 / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.9005, allocations: 0 / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.9007, allocations: 16.08 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.9007, allocations: 8 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.403e-05/0.9008, allocations: 27.72 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.9008, allocations: 4 kB / 1.026 GB, free: 11.76 MB / 0.7794 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.0001168/0.9009, allocations: 125.8 kB / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.9009, allocations: 15.81 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.439e-05/0.901, allocations: 21.23 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.901, allocations: 0 / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.901, allocations: 4 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.901, allocations: 0 / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.9012, allocations: 221.5 kB / 1.026 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.9012, allocations: 0 / 1.026 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.449e-05/0.9013, allocations: 19.92 kB / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.9013, allocations: 0 / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.9014, allocations: 0 / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.9014, allocations: 0 / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.9014, allocations: 0 / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003119/0.9017, allocations: 140.8 kB / 1.026 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.276e-05/0.9018, allocations: 96.92 kB / 1.026 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.9018, allocations: 4 kB / 1.026 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.515e-05/0.9019, allocations: 11.98 kB / 1.026 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.9019, allocations: 11.92 kB / 1.026 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.902, allocations: 4 kB / 1.026 GB, free: 11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000192/0.9022, allocations: 188.5 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9022, allocations: 0 / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002254/0.9024, allocations: 23.91 kB / 1.027 GB, free: 10.8 MB / 0.7794 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.0002843/0.9027, allocations: 123.2 kB / 1.027 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000304/0.903, allocations: 75.88 kB / 1.027 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.903, allocations: 0 / 1.027 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.9031, allocations: 32.17 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.9034, allocations: 46.53 kB / 1.027 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005877/0.904, allocations: 321.9 kB / 1.027 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.9044, allocations: 0.7197 MB / 1.028 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.902e-05/0.9044, allocations: 24.52 kB / 1.028 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.731e-05/0.9045, allocations: 15.44 kB / 1.028 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.9045, allocations: 4 kB / 1.028 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of Templates: time 0.00491/0.9094, allocations: 1.554 MB / 1.029 GB, free: 7.855 MB / 0.7794 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