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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.814/2.814, allocations: 387.1 MB / 399.7 MB, free: 9.492 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 170.5 kB / 492.3 MB, free: 0.6445 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.56/1.56, allocations: 221.3 MB / 0.7871 GB, free: 12.96 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008884/0.0008883, allocations: 95.47 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.408e-05/4.41e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2865, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9949/1.281, allocations: 151.1 MB / 1.36 GB, free: 18.84 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/1.282, allocations: 82.98 kB / 1.36 GB, free: 18.84 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009853/1.292, allocations: 3.327 MB / 1.363 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.773e-06/1.292, allocations: 0 / 1.363 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.318e-05/1.292, allocations: 11 kB / 1.363 GB, free: 34.36 MB / 0.8386 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.0004878/1.292, allocations: 431.6 kB / 1.364 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/1.292, allocations: 8.734 kB / 1.364 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.86e-05/1.292, allocations: 22.5 kB / 1.364 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/1.293, allocations: 236.2 kB / 1.364 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/1.293, allocations: 3.688 kB / 1.364 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/1.293, allocations: 11.91 kB / 1.364 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/1.293, allocations: 83.12 kB / 1.364 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/1.293, allocations: 3.938 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/1.293, allocations: 3.5 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/1.293, allocations: 3.688 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.381e-05/1.293, allocations: 31.67 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005579/1.294, allocations: 382.3 kB / 1.364 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.514e-05/1.294, allocations: 26.33 kB / 1.364 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.929e-05/1.294, allocations: 16.27 kB / 1.365 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/1.294, allocations: 7.625 kB / 1.365 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000136/1.294, allocations: 83.48 kB / 1.365 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/1.294, allocations: 0 / 1.365 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001632/1.294, allocations: 65.72 kB / 1.365 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/1.294, allocations: 80.95 kB / 1.365 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/1.294, allocations: 221.3 kB / 1.365 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/1.294, allocations: 29.3 kB / 1.365 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.547e-05/1.294, allocations: 128.2 kB / 1.365 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.432e-05/1.294, allocations: 11.66 kB / 1.365 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/1.294, allocations: 0 / 1.365 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001226/1.295, allocations: 327.5 kB / 1.365 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.429e-05/1.295, allocations: 10.23 kB / 1.365 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.485e-05/1.295, allocations: 34.92 kB / 1.365 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.193e-05/1.295, allocations: 21.75 kB / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/1.295, allocations: 0 / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001015/1.295, allocations: 70.69 kB / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/1.295, allocations: 11.7 kB / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/1.295, allocations: 0 / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/1.295, allocations: 0 / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/1.295, allocations: 17.22 kB / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/1.295, allocations: 4.094 kB / 1.366 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.221e-05/1.295, allocations: 14.28 kB / 1.366 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/1.295, allocations: 7.781 kB / 1.366 GB, free: 32.54 MB / 0.8386 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 () * 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.09e-05/1.295, allocations: 108.5 kB / 1.366 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.486e-05/1.295, allocations: 18.17 kB / 1.366 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.916e-05/1.295, allocations: 23.14 kB / 1.366 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/1.295, allocations: 0 / 1.366 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/1.295, allocations: 4 kB / 1.366 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/1.295, allocations: 0 / 1.366 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001419/1.295, allocations: 214 kB / 1.366 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/1.295, allocations: 2.953 kB / 1.366 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.895e-05/1.296, allocations: 22.16 kB / 1.366 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/1.296, allocations: 0 / 1.366 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/1.296, allocations: 0 / 1.366 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/1.296, allocations: 7.891 kB / 1.366 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/1.296, allocations: 0 / 1.366 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/1.296, allocations: 97.22 kB / 1.366 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.151e-05/1.296, allocations: 99.17 kB / 1.366 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/1.296, allocations: 0 / 1.366 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.939e-05/1.296, allocations: 16.91 kB / 1.366 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/1.296, allocations: 6.766 kB / 1.366 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/1.296, allocations: 3.969 kB / 1.366 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001505/1.296, allocations: 185.7 kB / 1.366 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.296, allocations: 0 / 1.366 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002125/1.296, allocations: 23.5 kB / 1.366 GB, free: 31.94 MB / 0.8386 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 () * 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.0003155/1.297, allocations: 132.9 kB / 1.367 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001141/1.297, allocations: 25.36 kB / 1.367 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/1.297, allocations: 3.969 kB / 1.367 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.054e-05/1.297, allocations: 11.69 kB / 1.367 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/1.297, allocations: 31.27 kB / 1.367 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003746/1.297, allocations: 189.8 kB / 1.367 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/1.298, allocations: 0.7245 MB / 1.367 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.85e-05/1.298, allocations: 26.12 kB / 1.368 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.932e-05/1.298, allocations: 11.28 kB / 1.368 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of SimCode: time 2e-07/1.298, allocations: 0 / 1.368 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of Templates: time 0.004908/1.303, allocations: 1.618 MB / 1.369 GB, free: 30.84 MB / 0.8386 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