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.0008538/0.000854, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005244/0.005244, allocations: 170 kB / 16.26 MB, free: 6.613 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.343/1.343, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.695/2.695, allocations: 462.7 MB / 0.7364 GB, free: 252 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003479/0.0003479, allocations: 9.281 kB / 0.9028 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3083, allocations: 159.6 MB / 1.059 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001914/0.3103, allocations: 1.365 MB / 1.06 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008542/0.3112, allocations: 0.5492 MB / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.109e-05/0.3113, allocations: 4 kB / 1.061 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000185/0.3115, allocations: 19.86 kB / 1.061 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002404/0.3117, allocations: 55.75 kB / 1.061 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001613/0.3119, allocations: 63.92 kB / 1.061 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.3121, allocations: 123.6 kB / 1.061 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.3122, allocations: 45.45 kB / 1.061 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.3123, allocations: 39.78 kB / 1.061 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.3125, allocations: 59.7 kB / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/0.3125, allocations: 0 / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.374e-05/0.3126, allocations: 27.92 kB / 1.061 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.776e-05/0.3127, allocations: 35.89 kB / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.714e-05/0.3127, allocations: 73.31 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.3129, allocations: 131.7 kB / 1.061 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.3129, allocations: 7.938 kB / 1.061 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.543e-06/0.313, allocations: 0 / 1.061 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.313, allocations: 0 / 1.061 GB, free: 2.848 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.0005933/0.3136, allocations: 450.8 kB / 1.062 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.3136, allocations: 8.031 kB / 1.062 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.637e-05/0.3137, allocations: 16.75 kB / 1.062 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002503/0.3139, allocations: 236.9 kB / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.314, allocations: 384 / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.314, allocations: 4.375 kB / 1.062 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003095/0.3143, allocations: 125.9 kB / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.3143, allocations: 0 / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.3143, allocations: 0 / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.3144, allocations: 3.938 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.3146, allocations: 83.94 kB / 1.062 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006007/0.3152, allocations: 392.4 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.3154, allocations: 50.55 kB / 1.063 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.3155, allocations: 40.89 kB / 1.063 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.3156, allocations: 0 / 1.063 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002621/0.3158, allocations: 105 kB / 1.063 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.3158, allocations: 4 kB / 1.063 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004582/0.3163, allocations: 141.5 kB / 1.063 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.3164, allocations: 85.11 kB / 1.063 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.3166, allocations: 252.9 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.3167, allocations: 29.7 kB / 1.063 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.3168, allocations: 132 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.007e-05/0.3168, allocations: 7.906 kB / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.767e-05/0.3169, allocations: 9.719 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.317, allocations: 330.8 kB / 1.064 GB, free: 168 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.3171, allocations: 35.91 kB / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.3173, allocations: 55.41 kB / 1.064 GB, free: 64 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002595/0.3175, allocations: 82.62 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3176, allocations: 0 / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002998/0.3179, allocations: 121.4 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3179, allocations: 4 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3179, allocations: 0 / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.3179, allocations: 11.86 kB / 1.064 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.3181, allocations: 15.98 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.3181, allocations: 0 / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.577e-05/0.3182, allocations: 23.95 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.3182, allocations: 4 kB / 1.064 GB, free: 15.79 MB / 0.8262 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 9.879e-05/0.3183, allocations: 125.8 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.3183, allocations: 15.81 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.686e-05/0.3184, allocations: 17.25 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3184, allocations: 3.938 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3184, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3184, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.3186, allocations: 229.5 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3186, allocations: 4 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.47e-05/0.3187, allocations: 11.98 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.3187, allocations: 4 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.3187, allocations: 4 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3187, allocations: 3.938 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3187, allocations: 0 / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003135/0.319, allocations: 136.8 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.053e-05/0.3191, allocations: 100.8 kB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.3192, allocations: 4 kB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.286e-05/0.3193, allocations: 19.92 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.322e-05/0.3193, allocations: 7.984 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.3193, allocations: 4 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001986/0.3196, allocations: 192.5 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3196, allocations: 0 / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002285/0.3198, allocations: 19.91 kB / 1.065 GB, free: 14.8 MB / 0.8262 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.0002486/0.32, allocations: 124.1 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003109/0.3204, allocations: 75.95 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3204, allocations: 0 / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.3205, allocations: 35.97 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.3208, allocations: 35.92 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005774/0.3214, allocations: 330.5 kB / 1.065 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.3217, allocations: 0.7238 MB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.388e-05/0.3218, allocations: 24.47 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.789e-05/0.3218, allocations: 11.44 kB / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of SimCode: time 3.4e-07/0.3219, allocations: 0 / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of Templates: time 0.004716/0.3266, allocations: 1.596 MB / 1.068 GB, free: 11.83 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