Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.007881/0.007881, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001977/0.001977, allocations: 198.4 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.561/2.561, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 63.91 kB / 1.018 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8579/0.8591, allocations: 151.6 MB / 1.167 GB, free: 4.02 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003084/0.8622, allocations: 1.634 MB / 1.168 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009555/0.8632, allocations: 0.5494 MB / 1.169 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.8633, allocations: 4 kB / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001822/0.8635, allocations: 31.73 kB / 1.169 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002691/0.8638, allocations: 69.11 kB / 1.169 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.864, allocations: 59.91 kB / 1.169 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001888/0.8642, allocations: 139.5 kB / 1.169 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.8643, allocations: 49.47 kB / 1.169 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.8645, allocations: 51.83 kB / 1.169 GB, free: 1.418 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.8646, allocations: 67.64 kB / 1.169 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.282e-05/0.8646, allocations: 8 kB / 1.169 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.21e-05/0.8647, allocations: 20 kB / 1.169 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.359e-05/0.8648, allocations: 51.81 kB / 1.169 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.237e-05/0.8649, allocations: 55.61 kB / 1.169 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002106/0.8651, allocations: 148.2 kB / 1.169 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.8651, allocations: 0 / 1.169 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.376e-06/0.8651, allocations: 3.984 kB / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.8651, allocations: 0 / 1.169 GB, free: 1.07 MB / 0.8887 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.0006069/0.8657, allocations: 466.5 kB / 1.17 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.8658, allocations: 16.92 kB / 1.17 GB, free: 0.5508 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.775e-05/0.8658, allocations: 28.8 kB / 1.17 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003103/0.8662, allocations: 237 kB / 1.17 GB, free: 256 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.8662, allocations: 4.312 kB / 1.17 GB, free: 252 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.8662, allocations: 8.375 kB / 1.17 GB, free: 244 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002728/0.8665, allocations: 113.9 kB / 1.17 GB, free: 124 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.8665, allocations: 4 kB / 1.17 GB, free: 120 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.8665, allocations: 4 kB / 1.17 GB, free: 116 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.8665, allocations: 4 kB / 1.17 GB, free: 112 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002165/0.8668, allocations: 59.94 kB / 1.17 GB, free: 52 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005874/0.8673, allocations: 376.5 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001292/0.8675, allocations: 42.55 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.8676, allocations: 32.89 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.8676, allocations: 3.938 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002208/0.8679, allocations: 97.05 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=3): time 1.372e-06/0.8679, allocations: 0 / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3): time 0.00045/0.8683, allocations: 125.5 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.8684, allocations: 77.11 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002869/0.8687, allocations: 256.9 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.8687, allocations: 33.64 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.567e-05/0.8688, allocations: 136 kB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/0.8688, allocations: 7.938 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.8689, allocations: 13.72 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.869, allocations: 330.8 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.8691, allocations: 27.97 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.8693, allocations: 51.41 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002125/0.8695, allocations: 66.47 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.8695, allocations: 0 / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002782/0.8698, allocations: 105.5 kB / 1.172 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.8698, allocations: 8 kB / 1.172 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.8698, allocations: 0 / 1.172 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.8698, allocations: 7.922 kB / 1.172 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.87, allocations: 12.27 kB / 1.172 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.87, allocations: 0 / 1.172 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.194e-05/0.8701, allocations: 20.03 kB / 1.172 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.8701, allocations: 4 kB / 1.172 GB, free: 14.09 MB / 0.9044 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.8702, allocations: 125.8 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.408e-05/0.8703, allocations: 23.83 kB / 1.172 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.778e-05/0.8703, allocations: 17.25 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.8703, allocations: 3.938 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.8703, allocations: 0 / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.8703, allocations: 3.984 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.8705, allocations: 217.5 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.8705, allocations: 4 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.038e-05/0.8706, allocations: 11.98 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.654e-06/0.8706, allocations: 0 / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.8706, allocations: 0 / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.8707, allocations: 11.88 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.8707, allocations: 0 / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.871, allocations: 124.9 kB / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.956e-05/0.871, allocations: 97 kB / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.8711, allocations: 0 / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.397e-05/0.8711, allocations: 15.92 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.8712, allocations: 0 / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.8712, allocations: 4 kB / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001942/0.8714, allocations: 192.5 kB / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of sort global known variables: time 4.01e-07/0.8714, allocations: 0 / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002311/0.8717, allocations: 20 kB / 1.173 GB, free: 13.14 MB / 0.9044 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002595/0.8719, allocations: 127.5 kB / 1.173 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002954/0.8722, allocations: 63.88 kB / 1.173 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.8722, allocations: 0 / 1.173 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.8724, allocations: 27.97 kB / 1.173 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.8727, allocations: 45 kB / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005514/0.8732, allocations: 283.7 kB / 1.173 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.8736, allocations: 0.7199 MB / 1.174 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.179e-05/0.8736, allocations: 20.53 kB / 1.174 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.371e-05/0.8737, allocations: 11.44 kB / 1.174 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.8737, allocations: 0 / 1.174 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of Templates: time 0.005138/0.8788, allocations: 1.771 MB / 1.176 GB, free: 10.05 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches