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.001398/0.001398, allocations: 112.1 kB / 16.41 MB, free: 6.016 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.001377/0.001378, allocations: 190 kB / 17.34 MB, free: 5.629 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 / 241 MB, free: 15.19 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.402/2.402, allocations: 437.1 MB / 0.7112 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 63.91 kB / 1.019 GB, free: 9.406 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6838/0.6856, allocations: 151.6 MB / 1.167 GB, free: 3.859 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002774/0.6884, allocations: 1.642 MB / 1.169 GB, free: 2.207 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0008733/0.6893, allocations: 0.5417 MB / 1.169 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.866e-05/0.6893, allocations: 3.938 kB / 1.169 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.6895, allocations: 27.78 kB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002371/0.6897, allocations: 65.44 kB / 1.17 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001491/0.6899, allocations: 63.91 kB / 1.17 GB, free: 1.504 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001983/0.6901, allocations: 147.4 kB / 1.17 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.6903, allocations: 41.47 kB / 1.17 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.6904, allocations: 59.83 kB / 1.17 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.6905, allocations: 59.64 kB / 1.17 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.6905, allocations: 8 kB / 1.17 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 5.667e-05/0.6906, allocations: 27.97 kB / 1.17 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.473e-05/0.6907, allocations: 39.84 kB / 1.17 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.561e-05/0.6908, allocations: 63.59 kB / 1.17 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002049/0.691, allocations: 147.8 kB / 1.17 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.691, allocations: 0 / 1.17 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.202e-06/0.691, allocations: 0 / 1.17 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.109e-06/0.691, allocations: 4 kB / 1.17 GB, free: 0.9141 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.000646/0.6917, allocations: 470.5 kB / 1.171 GB, free: 416 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 2.968e-05/0.6917, allocations: 8.922 kB / 1.171 GB, free: 408 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.675e-05/0.6918, allocations: 20.8 kB / 1.171 GB, free: 388 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.6921, allocations: 244.9 kB / 1.171 GB, free: 100 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.6921, allocations: 8.375 kB / 1.171 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.6921, allocations: 12.38 kB / 1.171 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.6924, allocations: 117.9 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.6924, allocations: 0 / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.6924, allocations: 0 / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.6924, allocations: 0 / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.6927, allocations: 63.89 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006188/0.6933, allocations: 388.6 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.6934, allocations: 42.5 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.6936, allocations: 24.89 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.6936, allocations: 0 / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000215/0.6938, allocations: 109 kB / 1.172 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.6938, allocations: 0 / 1.172 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3): time 0.000463/0.6943, allocations: 117.4 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.6943, allocations: 85.09 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.6946, allocations: 253 kB / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/0.6947, allocations: 25.7 kB / 1.172 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.06e-05/0.6948, allocations: 136 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.642e-05/0.6948, allocations: 3.953 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.695e-05/0.6948, allocations: 17.72 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.695, allocations: 334.8 kB / 1.173 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.6951, allocations: 19.98 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.6952, allocations: 47.41 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.6954, allocations: 78.48 kB / 1.173 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.6954, allocations: 0 / 1.173 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002757/0.6957, allocations: 105.4 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.6957, allocations: 4 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.6957, allocations: 0 / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.6958, allocations: 7.938 kB / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.801e-05/0.6959, allocations: 16.08 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.6959, allocations: 0 / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.122e-05/0.696, allocations: 15.94 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.696, allocations: 0 / 1.173 GB, free: 13.94 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.000113/0.6961, allocations: 133.8 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.6961, allocations: 15.91 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.836e-05/0.6962, allocations: 17.23 kB / 1.173 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.6962, allocations: 7.875 kB / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.6962, allocations: 8 kB / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.6962, allocations: 0 / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001863/0.6964, allocations: 213.6 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.6964, allocations: 0 / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.439e-05/0.6965, allocations: 15.92 kB / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.6965, allocations: 0 / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.6965, allocations: 0 / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.6965, allocations: 7.938 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.6965, allocations: 0 / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002849/0.6968, allocations: 128.9 kB / 1.173 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.96e-05/0.6969, allocations: 85.02 kB / 1.173 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.6969, allocations: 8 kB / 1.173 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.037e-05/0.697, allocations: 11.92 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/0.697, allocations: 8.328 kB / 1.173 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.6971, allocations: 7.984 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001949/0.6973, allocations: 188.5 kB / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6973, allocations: 0 / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002059/0.6975, allocations: 23.98 kB / 1.174 GB, free: 12.98 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.0002267/0.6977, allocations: 132.6 kB / 1.174 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002644/0.698, allocations: 59.94 kB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.698, allocations: 0 / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.6981, allocations: 27.97 kB / 1.174 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.6984, allocations: 36.66 kB / 1.174 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000491/0.6989, allocations: 287.9 kB / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.6992, allocations: 0.7197 MB / 1.175 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.964e-05/0.6993, allocations: 20.48 kB / 1.175 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.043e-05/0.6993, allocations: 11.44 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/0.6993, allocations: 0 / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of Templates: time 0.004797/0.7041, allocations: 1.773 MB / 1.177 GB, free: 9.895 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 -s cvode -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/jenkins1/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