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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.387/2.387, allocations: 390.3 MB / 402.8 MB, free: 6.688 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.001396/0.001396, allocations: 172.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.632/1.632, allocations: 221.3 MB / 0.7915 GB, free: 5.375 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.00095/0.0009502, allocations: 95.44 kB / 0.9317 GB, free: 5.699 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.783e-05/3.798e-05, allocations: 7.984 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2922, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9756/1.268, allocations: 151.9 MB / 1.367 GB, free: 2.148 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/1.268, allocations: 79.77 kB / 1.367 GB, free: 2.105 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00925/1.277, allocations: 3.329 MB / 1.37 GB, free: 15.22 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.014e-06/1.277, allocations: 4 kB / 1.37 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.832e-05/1.277, allocations: 8.875 kB / 1.37 GB, free: 15.21 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.00051/1.278, allocations: 431.1 kB / 1.371 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/1.278, allocations: 8.031 kB / 1.371 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.588e-05/1.278, allocations: 15.81 kB / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003011/1.278, allocations: 237.4 kB / 1.371 GB, free: 14.46 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/1.278, allocations: 11.38 kB / 1.371 GB, free: 14.46 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/1.278, allocations: 7.984 kB / 1.371 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/1.279, allocations: 87.72 kB / 1.371 GB, free: 14.38 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/1.279, allocations: 7.875 kB / 1.371 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/1.279, allocations: 3.188 kB / 1.371 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/1.279, allocations: 0 / 1.371 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.185e-05/1.279, allocations: 29.06 kB / 1.371 GB, free: 14.35 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000617/1.279, allocations: 398.9 kB / 1.372 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.879e-05/1.279, allocations: 22.53 kB / 1.372 GB, free: 13.91 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.231e-05/1.28, allocations: 16.3 kB / 1.372 GB, free: 13.9 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/1.28, allocations: 0 / 1.372 GB, free: 13.9 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001508/1.28, allocations: 86.73 kB / 1.372 GB, free: 13.8 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/1.28, allocations: 0 / 1.372 GB, free: 13.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.000179/1.28, allocations: 64.25 kB / 1.372 GB, free: 13.74 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/1.28, allocations: 77.11 kB / 1.372 GB, free: 13.65 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002422/1.28, allocations: 225.2 kB / 1.372 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/1.28, allocations: 25.7 kB / 1.372 GB, free: 13.43 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.253e-05/1.28, allocations: 130.1 kB / 1.372 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/1.28, allocations: 15.8 kB / 1.372 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/1.28, allocations: 0 / 1.372 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000126/1.281, allocations: 329.9 kB / 1.373 GB, free: 12.98 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.49e-05/1.281, allocations: 7.812 kB / 1.373 GB, free: 12.98 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.021e-05/1.281, allocations: 30.88 kB / 1.373 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.446e-05/1.281, allocations: 19.95 kB / 1.373 GB, free: 12.92 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/1.281, allocations: 3.938 kB / 1.373 GB, free: 12.92 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001215/1.281, allocations: 75.83 kB / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/1.281, allocations: 8 kB / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/1.281, allocations: 0 / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/1.281, allocations: 0 / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/1.281, allocations: 23.27 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/1.281, allocations: 0 / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.367e-05/1.281, allocations: 15.98 kB / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/1.281, allocations: 0 / 1.373 GB, free: 12.8 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 8.287e-05/1.281, allocations: 109.6 kB / 1.373 GB, free: 12.69 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/1.281, allocations: 19.91 kB / 1.373 GB, free: 12.67 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.85e-05/1.281, allocations: 23.59 kB / 1.373 GB, free: 12.65 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/1.281, allocations: 4 kB / 1.373 GB, free: 12.65 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/1.281, allocations: 7.938 kB / 1.373 GB, free: 12.64 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-06/1.281, allocations: 0 / 1.373 GB, free: 12.64 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/1.281, allocations: 214.2 kB / 1.373 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/1.281, allocations: 0 / 1.373 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.359e-05/1.282, allocations: 19.92 kB / 1.373 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/1.282, allocations: 0 / 1.373 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/1.282, allocations: 3.953 kB / 1.373 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/1.282, allocations: 4 kB / 1.373 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/1.282, allocations: 0 / 1.373 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001521/1.282, allocations: 95.03 kB / 1.373 GB, free: 12.27 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.585e-05/1.282, allocations: 100.1 kB / 1.373 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/1.282, allocations: 0 / 1.373 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.478e-05/1.282, allocations: 15.94 kB / 1.373 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.08e-05/1.282, allocations: 7.984 kB / 1.373 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/1.282, allocations: 8 kB / 1.373 GB, free: 12.13 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001827/1.282, allocations: 186.9 kB / 1.374 GB, free: 11.98 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.71e-07/1.282, allocations: 0 / 1.374 GB, free: 11.98 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002068/1.282, allocations: 20 kB / 1.374 GB, free: 11.96 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.0002978/1.283, allocations: 117 kB / 1.374 GB, free: 11.84 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001292/1.283, allocations: 31.3 kB / 1.374 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.283, allocations: 0 / 1.374 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.818e-05/1.283, allocations: 15.75 kB / 1.374 GB, free: 11.81 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/1.283, allocations: 40.3 kB / 1.374 GB, free: 11.78 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004155/1.284, allocations: 182.8 kB / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/1.284, allocations: 0.7274 MB / 1.375 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.82e-05/1.284, allocations: 24.66 kB / 1.375 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.52e-05/1.284, allocations: 19.36 kB / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of SimCode: time 5.81e-07/1.284, allocations: 0 / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of Templates: time 0.004465/1.289, allocations: 1.615 MB / 1.376 GB, free: 9.211 MB / 0.8386 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","../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches