Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.008177/0.008177, allocations: 99.38 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.00179/0.00179, allocations: 197.5 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.915/2.915, allocations: 469.8 MB / 0.7425 GB, free: 7.336 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 71.89 kB / 1.065 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3249, allocations: 159.1 MB / 1.221 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003136/0.3281, allocations: 1.647 MB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009595/0.329, allocations: 0.5417 MB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.413e-05/0.3291, allocations: 7.938 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.3293, allocations: 27.78 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002666/0.3295, allocations: 59.67 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001539/0.3297, allocations: 67.86 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001892/0.3299, allocations: 135.5 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001564/0.33, allocations: 41.47 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.3302, allocations: 63.7 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.3303, allocations: 59.7 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.3303, allocations: 8 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.045e-05/0.3304, allocations: 24 kB / 1.223 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.945e-05/0.3305, allocations: 51.83 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.386e-05/0.3305, allocations: 59.55 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002119/0.3307, allocations: 143.2 kB / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3307, allocations: 0 / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3307, allocations: 0 / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.3308, allocations: 0 / 1.223 GB, free: 10.9 MB / 0.9825 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.0006522/0.3314, allocations: 483.8 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.3314, allocations: 12.03 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.3316, allocations: 20.8 kB / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002888/0.3318, allocations: 248.9 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.3318, allocations: 8.375 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.3319, allocations: 384 / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002972/0.3322, allocations: 117.9 kB / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.3322, allocations: 0 / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.3322, allocations: 4 kB / 1.224 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.3322, allocations: 0 / 1.224 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002169/0.3324, allocations: 67.88 kB / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005749/0.333, allocations: 376.6 kB / 1.225 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001369/0.3331, allocations: 42.48 kB / 1.225 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.914e-05/0.3332, allocations: 24.91 kB / 1.225 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.3332, allocations: 3.984 kB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.3335, allocations: 105.1 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.3335, allocations: 0 / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004345/0.3339, allocations: 125.4 kB / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.3339, allocations: 77.11 kB / 1.225 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/0.3342, allocations: 264.9 kB / 1.225 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.3342, allocations: 25.7 kB / 1.225 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.818e-05/0.3343, allocations: 124.1 kB / 1.225 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.3343, allocations: 3.953 kB / 1.225 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.12e-05/0.3344, allocations: 21.7 kB / 1.226 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.3345, allocations: 326.8 kB / 1.226 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.3346, allocations: 23.97 kB / 1.226 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.3348, allocations: 55.34 kB / 1.226 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001991/0.335, allocations: 70.5 kB / 1.226 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.335, allocations: 0 / 1.226 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000264/0.3352, allocations: 105.4 kB / 1.226 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.3352, allocations: 8 kB / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.3352, allocations: 0 / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.3353, allocations: 3.938 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.3354, allocations: 20.02 kB / 1.226 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3354, allocations: 0 / 1.226 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.742e-05/0.3355, allocations: 15.92 kB / 1.226 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.3355, allocations: 4 kB / 1.226 GB, free: 7.91 MB / 0.9825 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.0001047/0.3356, allocations: 129.8 kB / 1.226 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.818e-05/0.3356, allocations: 19.84 kB / 1.226 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.745e-05/0.3356, allocations: 21.23 kB / 1.226 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.3356, allocations: 3.938 kB / 1.226 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/0.3357, allocations: 0 / 1.226 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3357, allocations: 4 kB / 1.226 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.3358, allocations: 225.5 kB / 1.226 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3358, allocations: 0 / 1.226 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.268e-05/0.3359, allocations: 11.98 kB / 1.227 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3359, allocations: 0 / 1.227 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.3359, allocations: 0 / 1.227 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3359, allocations: 3.938 kB / 1.227 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3359, allocations: 0 / 1.227 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002677/0.3362, allocations: 125 kB / 1.227 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.482e-05/0.3363, allocations: 89.02 kB / 1.227 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.481e-05/0.3363, allocations: 3.984 kB / 1.227 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.092e-05/0.3364, allocations: 11.94 kB / 1.227 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.3364, allocations: 7.984 kB / 1.227 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.3364, allocations: 7.938 kB / 1.227 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002267/0.3367, allocations: 192.5 kB / 1.227 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3367, allocations: 0 / 1.227 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002202/0.3369, allocations: 27.95 kB / 1.227 GB, free: 6.945 MB / 0.9825 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.0002596/0.3371, allocations: 129.6 kB / 1.227 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002698/0.3374, allocations: 59.94 kB / 1.227 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.3374, allocations: 3.984 kB / 1.227 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.3375, allocations: 27.92 kB / 1.227 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.3378, allocations: 44.11 kB / 1.227 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00053/0.3383, allocations: 287.8 kB / 1.227 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.3386, allocations: 0.7197 MB / 1.228 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.77e-05/0.3387, allocations: 24.47 kB / 1.228 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.929e-05/0.3387, allocations: 11.44 kB / 1.228 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.3387, allocations: 0 / 1.228 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of Templates: time 0.004829/0.3436, allocations: 1.769 MB / 1.23 GB, free: 3.855 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches