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.001483/0.001483, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001677/0.001677, allocations: 192.6 kB / 16.14 MB, free: 6.711 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.362/1.362, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.737/2.737, allocations: 461.9 MB / 0.7342 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001245, allocations: 66.81 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3238, allocations: 157.4 MB / 1.052 GB, free: 8.883 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003015/0.3269, allocations: 1.704 MB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008185/0.3277, allocations: 0.5493 MB / 1.054 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.63e-05/0.3278, allocations: 7.938 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001781/0.328, allocations: 15.88 kB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002827/0.3283, allocations: 59.73 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000167/0.3285, allocations: 55.94 kB / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001754/0.3287, allocations: 127.5 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.3288, allocations: 49.45 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.329, allocations: 51.78 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001182/0.3291, allocations: 59.69 kB / 1.055 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.529e-05/0.3291, allocations: 8 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.945e-05/0.3292, allocations: 23.94 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.883e-05/0.3293, allocations: 39.89 kB / 1.055 GB, free: 6.117 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.341e-05/0.3294, allocations: 59.55 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.3296, allocations: 139.7 kB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3296, allocations: 0 / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.91e-07/0.3296, allocations: 0 / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.3296, allocations: 0 / 1.055 GB, free: 5.922 MB / 0.8106 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.0006222/0.3302, allocations: 470.6 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.3303, allocations: 8.031 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.201e-05/0.3303, allocations: 20.73 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002464/0.3306, allocations: 232.8 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.3306, allocations: 384 / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.68e-05/0.3306, allocations: 8.375 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002855/0.3309, allocations: 109.9 kB / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.3309, allocations: 3.938 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.3309, allocations: 4 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.331, allocations: 8 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.3312, allocations: 59.94 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005581/0.3317, allocations: 388.4 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.3319, allocations: 42.55 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.332, allocations: 32.89 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.3321, allocations: 0 / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00028/0.3323, allocations: 101 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 2.385e-06/0.3324, allocations: 0 / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004124/0.3328, allocations: 125.3 kB / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.3328, allocations: 77.11 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002398/0.3331, allocations: 253 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.3331, allocations: 25.7 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.758e-05/0.3332, allocations: 140 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.3332, allocations: 7.906 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/0.3333, allocations: 9.719 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3334, allocations: 326.8 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.3335, allocations: 27.97 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.3336, allocations: 51.41 kB / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.3338, allocations: 70.45 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3339, allocations: 0 / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002726/0.3341, allocations: 101.4 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.3342, allocations: 15.92 kB / 1.058 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3342, allocations: 0 / 1.058 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.3342, allocations: 3.938 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.3343, allocations: 11.98 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.3344, allocations: 3.938 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.3345, allocations: 12.08 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.3345, allocations: 8 kB / 1.058 GB, free: 2.969 MB / 0.8106 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.0001093/0.3346, allocations: 127.4 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.216e-05/0.3347, allocations: 19.72 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.504e-05/0.3347, allocations: 17.25 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3347, allocations: 3.938 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3347, allocations: 3.984 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.3347, allocations: 0 / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.3349, allocations: 213.6 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3349, allocations: 4 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.302e-05/0.335, allocations: 15.98 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.335, allocations: 0 / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.335, allocations: 0 / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.335, allocations: 3.938 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.335, allocations: 0 / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002793/0.3353, allocations: 129.1 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.076e-05/0.3354, allocations: 96.89 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.3354, allocations: 3.984 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.604e-05/0.3355, allocations: 19.86 kB / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.3355, allocations: 0 / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/0.3356, allocations: 7.984 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001747/0.3358, allocations: 188.5 kB / 1.058 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.51e-07/0.3358, allocations: 0 / 1.058 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002585/0.336, allocations: 23.98 kB / 1.058 GB, free: 2.012 MB / 0.8106 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.000262/0.3363, allocations: 118.9 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002828/0.3366, allocations: 59.88 kB / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3366, allocations: 4.188 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.3367, allocations: 31.91 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.3371, allocations: 36.41 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000613/0.3377, allocations: 314.1 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.338, allocations: 0.7199 MB / 1.06 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.289e-05/0.3381, allocations: 24.53 kB / 1.06 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.479e-05/0.3382, allocations: 11.44 kB / 1.06 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.3382, allocations: 0 / 1.06 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of Templates: time 0.00478/0.343, allocations: 1.613 MB / 1.061 GB, free: 15.05 MB / 0.8262 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