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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001134/0.001134, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001305/0.001305, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.596/1.596, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.468/2.468, allocations: 390.3 MB / 0.6653 GB, free: 3.008 MB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003404, allocations: 8 kB / 0.8145 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6858/0.6861, allocations: 142.3 MB / 0.9535 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002161/0.6884, allocations: 1.311 MB / 0.9548 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007341/0.6891, allocations: 0.5046 MB / 0.9553 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.452e-05/0.6892, allocations: 5.344 kB / 0.9553 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.6894, allocations: 23.62 kB / 0.9553 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002374/0.6896, allocations: 61.81 kB / 0.9554 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001317/0.6898, allocations: 55.16 kB / 0.9554 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001604/0.6899, allocations: 88 kB / 0.9555 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.6901, allocations: 38.69 kB / 0.9555 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.6902, allocations: 49.39 kB / 0.9556 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.657e-05/0.6903, allocations: 44.86 kB / 0.9556 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.075e-05/0.6903, allocations: 6.812 kB / 0.9556 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.882e-05/0.6904, allocations: 7.219 kB / 0.9556 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.16e-05/0.6905, allocations: 31.12 kB / 0.9557 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.167e-05/0.6905, allocations: 47.98 kB / 0.9557 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.6906, allocations: 103.7 kB / 0.9558 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.6906, allocations: 3.938 kB / 0.9558 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.363e-06/0.6906, allocations: 4 kB / 0.9558 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.6907, allocations: 0 / 0.9558 GB, free: 6.312 MB / 0.7169 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.0004881/0.6912, allocations: 454.2 kB / 0.9563 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.6912, allocations: 8.875 kB / 0.9563 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.704e-05/0.6913, allocations: 20.39 kB / 0.9563 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.6915, allocations: 229.8 kB / 0.9565 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.6915, allocations: 6.656 kB / 0.9565 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.6915, allocations: 6.875 kB / 0.9565 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/0.6918, allocations: 107 kB / 0.9566 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.6918, allocations: 0 / 0.9566 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.6918, allocations: 5.438 kB / 0.9566 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.6918, allocations: 5 kB / 0.9566 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002257/0.6921, allocations: 85.42 kB / 0.9567 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004973/0.6926, allocations: 391.4 kB / 0.9571 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001302/0.6927, allocations: 47.28 kB / 0.9571 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.6927, allocations: 4 kB / 0.9571 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002189/0.6929, allocations: 104.2 kB / 0.9572 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.693, allocations: 0 / 0.9572 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004011/0.6934, allocations: 144.4 kB / 0.9574 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.667e-05/0.6934, allocations: 82.14 kB / 0.9575 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.6936, allocations: 254.3 kB / 0.9577 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.6936, allocations: 31.52 kB / 0.9577 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.136e-05/0.6937, allocations: 125 kB / 0.9578 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.25e-05/0.6937, allocations: 3.906 kB / 0.9579 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-06/0.6937, allocations: 1.781 kB / 0.9579 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.808e-05/0.6938, allocations: 330.4 kB / 0.9582 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.6939, allocations: 31.73 kB / 0.9582 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.694, allocations: 53.34 kB / 0.9582 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001133/0.6941, allocations: 38.25 kB / 0.9583 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.6941, allocations: 3.953 kB / 0.9583 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002542/0.6944, allocations: 119.5 kB / 0.9584 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.6944, allocations: 9.594 kB / 0.9584 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.6944, allocations: 0 / 0.9584 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.6944, allocations: 1.188 kB / 0.9584 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.6946, allocations: 20.23 kB / 0.9584 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.6946, allocations: 1.312 kB / 0.9584 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.671e-05/0.6947, allocations: 25.86 kB / 0.9585 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.6947, allocations: 2.594 kB / 0.9585 GB, free: 3.996 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.105e-05/0.6947, allocations: 127.4 kB / 0.9586 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.482e-05/0.6948, allocations: 20.48 kB / 0.9586 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.087e-05/0.6948, allocations: 18.58 kB / 0.9586 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.6948, allocations: 5.094 kB / 0.9586 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.6948, allocations: 0 / 0.9586 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.6948, allocations: 1.062 kB / 0.9586 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.695, allocations: 219.4 kB / 0.9588 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.695, allocations: 3.938 kB / 0.9588 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.858e-05/0.695, allocations: 18.88 kB / 0.9589 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.6951, allocations: 1.469 kB / 0.9589 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.503e-06/0.6951, allocations: 0 / 0.9589 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.6951, allocations: 0 / 0.9589 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6951, allocations: 5.219 kB / 0.9589 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00026/0.6953, allocations: 137.2 kB / 0.959 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.771e-05/0.6954, allocations: 96.81 kB / 0.9591 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.226e-05/0.6954, allocations: 9.641 kB / 0.9591 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.388e-05/0.6955, allocations: 14.08 kB / 0.9591 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/0.6956, allocations: 5.578 kB / 0.9591 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.6956, allocations: 8.422 kB / 0.9591 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001238/0.6957, allocations: 183 kB / 0.9593 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6957, allocations: 0 / 0.9593 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002117/0.6959, allocations: 33.36 kB / 0.9593 GB, free: 3.23 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001834/0.6961, allocations: 116.2 kB / 0.9594 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002703/0.6964, allocations: 77.22 kB / 0.9595 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6964, allocations: 0 / 0.9595 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.6965, allocations: 36.12 kB / 0.9595 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.6968, allocations: 34.47 kB / 0.9596 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004369/0.6972, allocations: 311.4 kB / 0.9599 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000155/0.6974, allocations: 0.7312 MB / 0.9606 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.799e-05/0.6974, allocations: 26.03 kB / 0.9606 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.6975, allocations: 20.92 kB / 0.9606 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.6975, allocations: 0 / 0.9606 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of Templates: time 0.00423/0.7017, allocations: 1.547 MB / 0.9621 GB, free: 1.293 MB / 0.7169 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","../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches