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.001552/0.001552, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002142/0.002142, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.371/1.371, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.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.533/2.533, allocations: 437 MB / 0.7099 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00247/0.00247, allocations: 67.89 kB / 0.8685 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6667/0.6692, allocations: 151.6 MB / 1.017 GB, free: 2.746 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003284/0.6725, allocations: 1.708 MB / 1.018 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008617/0.6734, allocations: 0.5378 MB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.068e-05/0.6735, allocations: 7.938 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001851/0.6737, allocations: 23.8 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.6739, allocations: 59.8 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001496/0.6741, allocations: 59.88 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001704/0.6743, allocations: 119.6 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.6744, allocations: 57.38 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.6746, allocations: 47.8 kB / 1.019 GB, free: 116 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.6747, allocations: 59.69 kB / 1.019 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.018e-05/0.6747, allocations: 4 kB / 1.019 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.813e-05/0.6748, allocations: 23.98 kB / 1.019 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.685e-05/0.6749, allocations: 43.83 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.946e-05/0.675, allocations: 55.55 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001892/0.6752, allocations: 141.5 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.6752, allocations: 0 / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.52e-07/0.6752, allocations: 0 / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.6752, allocations: 0 / 1.019 GB, free: 15.79 MB / 0.7794 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.0007121/0.6759, allocations: 468.6 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.676, allocations: 12.03 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.77e-05/0.676, allocations: 16.75 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002664/0.6763, allocations: 236.7 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.6763, allocations: 8.312 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.6764, allocations: 8.375 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.6767, allocations: 109.9 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.6767, allocations: 0 / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.6767, allocations: 8 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.6767, allocations: 0 / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.6769, allocations: 63.88 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006075/0.6776, allocations: 384.5 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/0.6777, allocations: 46.48 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.6778, allocations: 28.89 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.6778, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002958/0.6781, allocations: 101.1 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.6782, allocations: 0 / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004777/0.6786, allocations: 133.2 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.987e-05/0.6787, allocations: 77.11 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.679, allocations: 257 kB / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.6791, allocations: 25.7 kB / 1.021 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.6792, allocations: 128 kB / 1.021 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.6792, allocations: 11.89 kB / 1.021 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.743e-05/0.6793, allocations: 13.72 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.6794, allocations: 326.8 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.6795, allocations: 23.97 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.6796, allocations: 55.34 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.6799, allocations: 70.5 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.6799, allocations: 4 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000279/0.6802, allocations: 101.4 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.6802, allocations: 5.562 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.6802, allocations: 0 / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.6802, allocations: 7.938 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.6804, allocations: 7.984 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.6804, allocations: 12.08 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.866e-05/0.6805, allocations: 11.94 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.6805, allocations: 3.984 kB / 1.022 GB, free: 12.83 MB / 0.7794 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.0001176/0.6806, allocations: 129.8 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.272e-05/0.6806, allocations: 23.73 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.293e-05/0.6807, allocations: 13.25 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.6807, allocations: 3.938 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.6807, allocations: 0 / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.6807, allocations: 4 kB / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.6809, allocations: 221.5 kB / 1.022 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6809, allocations: 0 / 1.022 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.384e-05/0.681, allocations: 11.98 kB / 1.022 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.681, allocations: 0 / 1.022 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.681, allocations: 0 / 1.022 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.681, allocations: 3.938 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.681, allocations: 0 / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002812/0.6813, allocations: 124.9 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.073e-05/0.6814, allocations: 93.23 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.6814, allocations: 4 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.6815, allocations: 11.92 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.63e-05/0.6816, allocations: 7.938 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.6816, allocations: 4 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001696/0.6818, allocations: 188.5 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6818, allocations: 8 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000218/0.682, allocations: 16 kB / 1.023 GB, free: 11.89 MB / 0.7794 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.0002351/0.6822, allocations: 126 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002704/0.6825, allocations: 55.94 kB / 1.023 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6825, allocations: 0 / 1.023 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.6826, allocations: 35.91 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.6829, allocations: 37.88 kB / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005118/0.6835, allocations: 318 kB / 1.023 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.6837, allocations: 0.7316 MB / 1.024 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.458e-05/0.6838, allocations: 12.55 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.883e-05/0.6838, allocations: 15.44 kB / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of SimCode: time 1.9e-07/0.6839, allocations: 0 / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of Templates: time 0.004385/0.6882, allocations: 1.604 MB / 1.026 GB, free: 8.914 MB / 0.7794 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 -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/jenkins/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