Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.004284/0.004284, allocations: 100.7 kB / 15.73 MB, free: 6.066 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.001035/0.001035, allocations: 195.5 kB / 16.67 MB, free: 5.969 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.287/1.287, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.22/2.22, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 67.91 kB / 0.9508 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031/1.032, allocations: 140.4 MB / 1.088 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003296/1.035, allocations: 1.652 MB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008625/1.036, allocations: 0.538 MB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/1.036, allocations: 6.281 kB / 1.09 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001957/1.036, allocations: 23.72 kB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002887/1.037, allocations: 65.22 kB / 1.09 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001823/1.037, allocations: 65.78 kB / 1.09 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002173/1.037, allocations: 129.2 kB / 1.09 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/1.037, allocations: 52.45 kB / 1.09 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/1.038, allocations: 58.81 kB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/1.038, allocations: 66.36 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.702e-05/1.038, allocations: 8.375 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.321e-05/1.038, allocations: 25.77 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001261/1.038, allocations: 40.48 kB / 1.091 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.69e-05/1.038, allocations: 59.83 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002974/1.038, allocations: 147.9 kB / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/1.038, allocations: 5.125 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.944e-06/1.038, allocations: 0 / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.053e-06/1.038, allocations: 0 / 1.091 GB, free: 3.625 MB / 0.8575 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.0006587/1.039, allocations: 474.5 kB / 1.091 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/1.039, allocations: 10.03 kB / 1.091 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.456e-05/1.039, allocations: 21.2 kB / 1.091 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/1.039, allocations: 243.6 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/1.039, allocations: 2.562 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/1.039, allocations: 7.969 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/1.04, allocations: 111.3 kB / 1.092 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/1.04, allocations: 0.75 kB / 1.092 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/1.04, allocations: 5.281 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/1.04, allocations: 2.062 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/1.04, allocations: 63.27 kB / 1.092 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005673/1.041, allocations: 377.4 kB / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/1.041, allocations: 42.8 kB / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/1.041, allocations: 30.02 kB / 1.092 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/1.041, allocations: 0 / 1.092 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002178/1.041, allocations: 97.33 kB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/1.041, allocations: 0 / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.000434/1.042, allocations: 126.5 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/1.042, allocations: 78.58 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/1.042, allocations: 263.8 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/1.042, allocations: 25.7 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.518e-05/1.042, allocations: 131.6 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/1.042, allocations: 10.17 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/1.042, allocations: 13.94 kB / 1.093 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.807e-05/1.042, allocations: 332.9 kB / 1.093 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/1.042, allocations: 24.06 kB / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/1.042, allocations: 50.78 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/1.043, allocations: 70.91 kB / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/1.043, allocations: 4.031 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002836/1.043, allocations: 100.9 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/1.043, allocations: 5.875 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/1.043, allocations: 1.281 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/1.043, allocations: 4.688 kB / 1.093 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/1.043, allocations: 12.22 kB / 1.093 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/1.043, allocations: 5.516 kB / 1.093 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.92e-05/1.043, allocations: 10.67 kB / 1.093 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/1.043, allocations: 1.844 kB / 1.093 GB, free: 1.492 MB / 0.8575 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 8.825e-05/1.043, allocations: 140.2 kB / 1.094 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.343e-05/1.043, allocations: 20.03 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.865e-05/1.043, allocations: 25.91 kB / 1.094 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-06/1.043, allocations: 5.312 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/1.043, allocations: 4.906 kB / 1.094 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/1.043, allocations: 4 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/1.044, allocations: 212.6 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/1.044, allocations: 1.266 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.021e-05/1.044, allocations: 12.2 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/1.044, allocations: 0 / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/1.044, allocations: 0.9688 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/1.044, allocations: 4.734 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/1.044, allocations: 0.9062 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002776/1.044, allocations: 125.3 kB / 1.094 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.717e-05/1.044, allocations: 89.66 kB / 1.094 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/1.044, allocations: 0.8438 kB / 1.094 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.782e-05/1.044, allocations: 14.05 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.794e-05/1.044, allocations: 11.39 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/1.044, allocations: 9.672 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001774/1.044, allocations: 186.5 kB / 1.094 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.6e-07/1.044, allocations: 4.781 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002339/1.045, allocations: 22.41 kB / 1.094 GB, free: 0.793 MB / 0.8575 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.0002074/1.045, allocations: 120.4 kB / 1.094 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002956/1.045, allocations: 53.94 kB / 1.094 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.045, allocations: 0.9062 kB / 1.094 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001379/1.045, allocations: 31.39 kB / 1.094 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/1.046, allocations: 41.88 kB / 1.094 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000701/1.046, allocations: 281.6 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/1.047, allocations: 0.7193 MB / 1.095 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001007/1.047, allocations: 19.31 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.152e-05/1.047, allocations: 19.64 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of SimCode: time 3e-07/1.047, allocations: 0 / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of Templates: time 0.006473/1.054, allocations: 1.784 MB / 1.097 GB, free: 15.55 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches