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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000972/0.000972, allocations: 86.05 kB / 19.87 MB, free: 4.617 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001811/0.001811, allocations: 170 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.029/1.029, allocations: 177.1 MB / 203.7 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.475/2.475, allocations: 438.1 MB / 0.682 GB, free: 14.15 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.274e-06/2.274e-06, allocations: 0 / 0.8897 GB, free: 9.777 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.072e-05/3.299e-05, allocations: 5.266 kB / 0.8897 GB, free: 9.773 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.0031/0.003133, allocations: 1.692 MB / 0.8914 GB, free: 8.07 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.000984/0.004117, allocations: 0.596 MB / 0.892 GB, free: 7.469 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.004236, allocations: 3.938 kB / 0.892 GB, free: 7.465 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0002169/0.004453, allocations: 23.8 kB / 0.892 GB, free: 7.441 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0002675/0.004721, allocations: 75.59 kB / 0.8921 GB, free: 7.367 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.00494, allocations: 71.84 kB / 0.8921 GB, free: 7.297 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001752/0.005115, allocations: 143.4 kB / 0.8923 GB, free: 7.156 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.005269, allocations: 37.59 kB / 0.8923 GB, free: 7.117 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.005466, allocations: 79.8 kB / 0.8924 GB, free: 7.039 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 9.27e-05/0.005559, allocations: 47.88 kB / 0.8924 GB, free: 6.992 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.005584, allocations: 8 kB / 0.8924 GB, free: 6.984 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 7.704e-05/0.005661, allocations: 20 kB / 0.8925 GB, free: 6.965 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 7.753e-05/0.005739, allocations: 47.83 kB / 0.8925 GB, free: 6.918 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 3.936e-05/0.005778, allocations: 39.84 kB / 0.8925 GB, free: 6.879 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001851/0.005963, allocations: 119.4 kB / 0.8926 GB, free: 6.762 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.005966, allocations: 3.938 kB / 0.8927 GB, free: 6.758 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.132e-06/0.005968, allocations: 0 / 0.8927 GB, free: 6.758 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.005972, allocations: 0 / 0.8927 GB, free: 6.758 MB / 0.8542 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.0005703/0.006542, allocations: 0.4918 MB / 0.8931 GB, free: 6.23 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.006589, allocations: 8.625 kB / 0.8931 GB, free: 6.223 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.006726, allocations: 36.8 kB / 0.8932 GB, free: 6.188 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/0.006926, allocations: 184.3 kB / 0.8934 GB, free: 5.98 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.006938, allocations: 4.375 kB / 0.8934 GB, free: 5.977 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.006952, allocations: 12.38 kB / 0.8934 GB, free: 5.965 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.007116, allocations: 130.3 kB / 0.8935 GB, free: 5.816 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.007123, allocations: 192 / 0.8935 GB, free: 5.816 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.007133, allocations: 8.312 kB / 0.8935 GB, free: 5.809 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.00714, allocations: 7.938 kB / 0.8935 GB, free: 5.801 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.368e-05/0.007164, allocations: 11.98 kB / 0.8935 GB, free: 5.789 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003521/0.007516, allocations: 328.1 kB / 0.8938 GB, free: 5.441 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 4.489e-05/0.007561, allocations: 23.06 kB / 0.8939 GB, free: 5.406 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.83e-05/0.007579, allocations: 11.75 kB / 0.8939 GB, free: 5.391 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.007597, allocations: 0 / 0.8939 GB, free: 5.391 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001194/0.007717, allocations: 131.8 kB / 0.894 GB, free: 5.227 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=3): time 7.62e-07/0.007717, allocations: 4 kB / 0.894 GB, free: 5.223 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3): time 0.0001415/0.007859, allocations: 53.55 kB / 0.894 GB, free: 5.164 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.007895, allocations: 85.11 kB / 0.8941 GB, free: 5.062 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003111/0.008206, allocations: 254.6 kB / 0.8944 GB, free: 4.797 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.008223, allocations: 37.69 kB / 0.8944 GB, free: 4.754 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.725e-05/0.0083, allocations: 174.7 kB / 0.8946 GB, free: 4.578 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.008318, allocations: 7.906 kB / 0.8946 GB, free: 4.57 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.008359, allocations: 27.36 kB / 0.8946 GB, free: 4.535 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.008487, allocations: 0.5 MB / 0.8951 GB, free: 4.023 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.286e-05/0.0085, allocations: 4 kB / 0.8951 GB, free: 4.02 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.573e-05/0.008546, allocations: 64.39 kB / 0.8952 GB, free: 3.934 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.322e-05/0.008589, allocations: 39.05 kB / 0.8952 GB, free: 3.883 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.008591, allocations: 4.031 kB / 0.8952 GB, free: 3.879 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.517e-05/0.008676, allocations: 53.55 kB / 0.8953 GB, free: 3.82 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.008689, allocations: 4 kB / 0.8953 GB, free: 3.816 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.008696, allocations: 4 kB / 0.8953 GB, free: 3.812 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.008712, allocations: 4.266 kB / 0.8953 GB, free: 3.809 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-05/0.008773, allocations: 7.938 kB / 0.8953 GB, free: 3.801 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.008778, allocations: 7.984 kB / 0.8953 GB, free: 3.793 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.595e-05/0.008814, allocations: 11.92 kB / 0.8953 GB, free: 3.781 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.008822, allocations: 4 kB / 0.8953 GB, free: 3.777 MB / 0.8542 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 8.166e-05/0.008903, allocations: 172.6 kB / 0.8955 GB, free: 3.598 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.081e-05/0.008924, allocations: 15.91 kB / 0.8955 GB, free: 3.582 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.745e-05/0.008962, allocations: 17.02 kB / 0.8955 GB, free: 3.562 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.008964, allocations: 0 / 0.8955 GB, free: 3.562 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.008968, allocations: 4 kB / 0.8955 GB, free: 3.559 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.008971, allocations: 0 / 0.8955 GB, free: 3.559 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.009076, allocations: 133.1 kB / 0.8956 GB, free: 3.402 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.009078, allocations: 0 / 0.8956 GB, free: 3.402 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.669e-05/0.009105, allocations: 11.98 kB / 0.8956 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.009107, allocations: 0 / 0.8956 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.009113, allocations: 4 kB / 0.8956 GB, free: 3.387 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.009114, allocations: 0 / 0.8956 GB, free: 3.387 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.009115, allocations: 0 / 0.8956 GB, free: 3.387 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001038/0.009219, allocations: 104.2 kB / 0.8957 GB, free: 3.262 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.274e-05/0.009232, allocations: 7.953 kB / 0.8957 GB, free: 3.254 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.009248, allocations: 4 kB / 0.8957 GB, free: 3.25 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.627e-05/0.009274, allocations: 7.984 kB / 0.8958 GB, free: 3.242 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.602e-05/0.00931, allocations: 8 kB / 0.8958 GB, free: 3.234 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.00933, allocations: 7.984 kB / 0.8958 GB, free: 3.227 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 8.392e-05/0.009414, allocations: 177.7 kB / 0.8959 GB, free: 3.055 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.1e-08/0.009414, allocations: 0 / 0.8959 GB, free: 3.055 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001568/0.00957, allocations: 23.95 kB / 0.896 GB, free: 3.031 MB / 0.8542 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.0002223/0.009793, allocations: 118.8 kB / 0.8961 GB, free: 2.906 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001007/0.009893, allocations: 23.62 kB / 0.8961 GB, free: 2.879 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.009896, allocations: 0 / 0.8961 GB, free: 2.879 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.173e-05/0.009918, allocations: 19.86 kB / 0.8961 GB, free: 2.855 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.01014, allocations: 49.95 kB / 0.8962 GB, free: 2.809 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005518/0.0107, allocations: 267.4 kB / 0.8964 GB, free: 2.52 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.489e-05/0.01074, allocations: 71.83 kB / 0.8965 GB, free: 2.43 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.005e-05/0.01079, allocations: 12.62 kB / 0.8965 GB, free: 2.414 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.458e-05/0.01088, allocations: 94.17 kB / 0.8966 GB, free: 2.32 MB / 0.8542 GB Notification: Performance of SimCode: time 1.112e-06/0.01088, allocations: 4 kB / 0.8966 GB, free: 2.316 MB / 0.8542 GB Notification: Performance of Templates: time 0.004473/0.01535, allocations: 1.949 MB / 0.8985 GB, free: 420 kB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.644737876020372]