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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.004437/0.004437, allocations: 96.84 kB / 15.73 MB, free: 6.047 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.001054/0.001054, allocations: 192.8 kB / 16.67 MB, free: 5.957 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.587/2.587, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 59.91 kB / 1.054 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9181/0.9193, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00307/0.9224, allocations: 1.642 MB / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008974/0.9233, allocations: 0.5378 MB / 1.21 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.627e-05/0.9234, allocations: 7.938 kB / 1.21 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002023/0.9236, allocations: 27.78 kB / 1.21 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000265/0.9239, allocations: 55.69 kB / 1.21 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001567/0.9241, allocations: 67.91 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002163/0.9243, allocations: 131.5 kB / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.9245, allocations: 45.47 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.9246, allocations: 59.77 kB / 1.21 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.9247, allocations: 63.64 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.936e-05/0.9248, allocations: 12 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.583e-05/0.9248, allocations: 27.97 kB / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.55e-05/0.9249, allocations: 39.91 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.438e-05/0.925, allocations: 63.53 kB / 1.21 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000204/0.9252, allocations: 143.2 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.9252, allocations: 4 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.294e-06/0.9252, allocations: 0 / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.9252, allocations: 0 / 1.211 GB, free: 10.67 MB / 0.9356 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.0006449/0.9259, allocations: 464.5 kB / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.9259, allocations: 8.031 kB / 1.211 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.466e-05/0.926, allocations: 20.75 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003162/0.9263, allocations: 244.7 kB / 1.211 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.9263, allocations: 8.312 kB / 1.211 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.405e-05/0.9264, allocations: 4.375 kB / 1.211 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002744/0.9266, allocations: 114 kB / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.9267, allocations: 0 / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.9267, allocations: 0 / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.9267, allocations: 4 kB / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002259/0.9269, allocations: 63.94 kB / 1.211 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005682/0.9275, allocations: 388.4 kB / 1.212 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/0.9276, allocations: 46.5 kB / 1.212 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.9278, allocations: 24.89 kB / 1.212 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.9278, allocations: 4 kB / 1.212 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.928, allocations: 101.1 kB / 1.212 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.342e-06/0.928, allocations: 0 / 1.212 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0004416/0.9285, allocations: 117.3 kB / 1.212 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.9285, allocations: 85.09 kB / 1.212 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.9288, allocations: 253 kB / 1.212 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.9288, allocations: 29.7 kB / 1.212 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.96e-05/0.9289, allocations: 128 kB / 1.213 GB, free: 8.387 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.9289, allocations: 3.906 kB / 1.213 GB, free: 8.383 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-05/0.929, allocations: 21.66 kB / 1.213 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.9291, allocations: 334.8 kB / 1.213 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.9292, allocations: 19.98 kB / 1.213 GB, free: 8 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.9293, allocations: 55.41 kB / 1.213 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/0.9296, allocations: 66.45 kB / 1.213 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.698e-06/0.9296, allocations: 4 kB / 1.213 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00027/0.9299, allocations: 105.4 kB / 1.213 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.9299, allocations: 5.562 kB / 1.213 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.9299, allocations: 4 kB / 1.213 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.9299, allocations: 3.938 kB / 1.213 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.93, allocations: 11.98 kB / 1.213 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.9301, allocations: 0 / 1.213 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.706e-05/0.9302, allocations: 23.92 kB / 1.213 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.9302, allocations: 0 / 1.213 GB, free: 7.699 MB / 0.9356 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.0001081/0.9303, allocations: 129.8 kB / 1.213 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/0.9303, allocations: 15.81 kB / 1.213 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.825e-05/0.9304, allocations: 25.23 kB / 1.213 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.9304, allocations: 3.938 kB / 1.213 GB, free: 7.52 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.9304, allocations: 0 / 1.213 GB, free: 7.52 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.9304, allocations: 0 / 1.213 GB, free: 7.52 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.9306, allocations: 209.6 kB / 1.214 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.9306, allocations: 8 kB / 1.214 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.518e-05/0.9306, allocations: 11.92 kB / 1.214 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.9307, allocations: 7.938 kB / 1.214 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.9307, allocations: 0 / 1.214 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.9307, allocations: 3.938 kB / 1.214 GB, free: 7.234 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.9307, allocations: 0 / 1.214 GB, free: 7.234 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000291/0.931, allocations: 124.9 kB / 1.214 GB, free: 7.094 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.313e-05/0.931, allocations: 89.25 kB / 1.214 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.9311, allocations: 0 / 1.214 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.202e-05/0.9312, allocations: 15.92 kB / 1.214 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.427e-05/0.9312, allocations: 4 kB / 1.214 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-05/0.9312, allocations: 11.97 kB / 1.214 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001722/0.9314, allocations: 184.5 kB / 1.214 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9314, allocations: 0 / 1.214 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000217/0.9316, allocations: 32.11 kB / 1.214 GB, free: 6.742 MB / 0.9356 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.0002634/0.9319, allocations: 124.4 kB / 1.214 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002936/0.9322, allocations: 60 kB / 1.214 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.9322, allocations: 0 / 1.214 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.9323, allocations: 27.97 kB / 1.214 GB, free: 6.531 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.9326, allocations: 53.61 kB / 1.214 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005097/0.9332, allocations: 276 kB / 1.215 GB, free: 6.191 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.9335, allocations: 0.7237 MB / 1.215 GB, free: 5.441 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.153e-05/0.9335, allocations: 16.55 kB / 1.215 GB, free: 5.426 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.517e-05/0.9336, allocations: 11.44 kB / 1.215 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.9336, allocations: 7.938 kB / 1.215 GB, free: 5.406 MB / 0.9356 GB Notification: Performance of Templates: time 0.00474/0.9383, allocations: 1.82 MB / 1.217 GB, free: 3.613 MB / 0.9356 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches