Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001027/0.001027, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.001001/0.001001, allocations: 181 kB / 24.09 MB, free: 420 kB / 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 0.9374/0.9374, allocations: 177.1 MB / 204.5 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.867/1.867, allocations: 359 MB / 0.6055 GB, free: 10.89 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 0.7875 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.277e-05/1.401e-05, allocations: 2.312 kB / 0.7875 GB, free: 12.22 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002285/0.002299, allocations: 1.694 MB / 0.7892 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0007015/0.003001, allocations: 0.5989 MB / 0.7898 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.94e-05/0.00307, allocations: 7.938 kB / 0.7898 GB, free: 9.926 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.003219, allocations: 28.84 kB / 0.7898 GB, free: 9.898 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.003409, allocations: 63.62 kB / 0.7899 GB, free: 9.836 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001421/0.003552, allocations: 73.11 kB / 0.7899 GB, free: 9.766 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.003684, allocations: 139.5 kB / 0.7901 GB, free: 9.629 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.003793, allocations: 33.59 kB / 0.7901 GB, free: 9.594 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.003928, allocations: 81.81 kB / 0.7902 GB, free: 9.516 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.34e-05/0.004001, allocations: 59.8 kB / 0.7902 GB, free: 9.457 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.004022, allocations: 8 kB / 0.7902 GB, free: 9.449 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 4.954e-05/0.004071, allocations: 20 kB / 0.7903 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.095e-05/0.004132, allocations: 49.98 kB / 0.7903 GB, free: 9.383 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.185e-05/0.004164, allocations: 31.91 kB / 0.7903 GB, free: 9.352 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001379/0.004302, allocations: 123.4 kB / 0.7905 GB, free: 9.23 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.004304, allocations: 0 / 0.7905 GB, free: 9.23 MB / 0.7448 GB Notification: Performance of FrontEnd: time 5.41e-07/0.004304, allocations: 0 / 0.7905 GB, free: 9.23 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.196e-06/0.004307, allocations: 0 / 0.7905 GB, free: 9.23 MB / 0.7448 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.0004371/0.004745, allocations: 497.2 kB / 0.7909 GB, free: 8.711 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.004777, allocations: 8.031 kB / 0.7909 GB, free: 8.703 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.004882, allocations: 32.83 kB / 0.791 GB, free: 8.672 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.005055, allocations: 201.7 kB / 0.7912 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.264e-06/0.005062, allocations: 384 / 0.7912 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.005074, allocations: 13.31 kB / 0.7912 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.005207, allocations: 126.3 kB / 0.7913 GB, free: 8.293 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.751e-06/0.005212, allocations: 0.7812 kB / 0.7913 GB, free: 8.293 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.005221, allocations: 6.312 kB / 0.7913 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.005226, allocations: 3.938 kB / 0.7913 GB, free: 8.285 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.359e-05/0.00525, allocations: 15.92 kB / 0.7913 GB, free: 8.27 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002792/0.005529, allocations: 324.1 kB / 0.7916 GB, free: 7.926 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 3.329e-05/0.005562, allocations: 31 kB / 0.7917 GB, free: 7.883 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.436e-05/0.005577, allocations: 10.16 kB / 0.7917 GB, free: 7.871 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.005592, allocations: 3.984 kB / 0.7917 GB, free: 7.867 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.523e-05/0.005687, allocations: 131.9 kB / 0.7918 GB, free: 7.703 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 8.01e-07/0.005688, allocations: 0 / 0.7918 GB, free: 7.703 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001117/0.005799, allocations: 53.55 kB / 0.7919 GB, free: 7.645 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.005828, allocations: 85.09 kB / 0.7919 GB, free: 7.543 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.005947, allocations: 259.4 kB / 0.7922 GB, free: 7.273 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.528e-06/0.005957, allocations: 25.7 kB / 0.7922 GB, free: 7.242 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.006024, allocations: 183.2 kB / 0.7924 GB, free: 7.059 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.327e-05/0.006037, allocations: 9.609 kB / 0.7924 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002719/0.006309, allocations: 23.38 kB / 0.7924 GB, free: 7.02 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.006414, allocations: 0.5039 MB / 0.7929 GB, free: 6.504 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.538e-06/0.006424, allocations: 0 / 0.7929 GB, free: 6.504 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.08e-05/0.006455, allocations: 60.45 kB / 0.793 GB, free: 6.422 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.341e-05/0.006488, allocations: 40.81 kB / 0.793 GB, free: 6.371 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.006489, allocations: 0 / 0.793 GB, free: 6.371 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.03e-05/0.006549, allocations: 62.69 kB / 0.7931 GB, free: 6.305 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 9.247e-06/0.006559, allocations: 5.375 kB / 0.7931 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.006563, allocations: 0 / 0.7931 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.708e-06/0.006572, allocations: 0 / 0.7931 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.127e-05/0.006623, allocations: 15.98 kB / 0.7931 GB, free: 6.285 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.345e-06/0.006626, allocations: 4.781 kB / 0.7931 GB, free: 6.281 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.607e-05/0.006662, allocations: 7.938 kB / 0.7931 GB, free: 6.273 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-06/0.006666, allocations: 4.844 kB / 0.7931 GB, free: 6.27 MB / 0.7448 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 6.378e-05/0.00673, allocations: 176.4 kB / 0.7933 GB, free: 6.086 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.421e-05/0.006744, allocations: 17.19 kB / 0.7933 GB, free: 6.07 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.252e-05/0.006767, allocations: 13.03 kB / 0.7933 GB, free: 6.059 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.006768, allocations: 288 / 0.7933 GB, free: 6.059 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-06/0.00677, allocations: 0.8438 kB / 0.7933 GB, free: 6.059 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.006772, allocations: 3.984 kB / 0.7933 GB, free: 6.055 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.094e-05/0.006853, allocations: 142 kB / 0.7934 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-07/0.006854, allocations: 0 / 0.7934 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.091e-05/0.006875, allocations: 4 kB / 0.7934 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.006877, allocations: 5.562 kB / 0.7934 GB, free: 5.883 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.797e-06/0.006881, allocations: 0 / 0.7934 GB, free: 5.883 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.006882, allocations: 0 / 0.7934 GB, free: 5.883 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.006882, allocations: 0 / 0.7934 GB, free: 5.883 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.757e-05/0.00695, allocations: 97.45 kB / 0.7935 GB, free: 5.766 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.082e-05/0.006961, allocations: 11.91 kB / 0.7935 GB, free: 5.754 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/0.006972, allocations: 4 kB / 0.7936 GB, free: 5.75 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.404e-05/0.006996, allocations: 11.09 kB / 0.7936 GB, free: 5.742 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.778e-05/0.007023, allocations: 7.984 kB / 0.7936 GB, free: 5.734 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.007036, allocations: 4 kB / 0.7936 GB, free: 5.73 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.038e-05/0.007106, allocations: 185.5 kB / 0.7938 GB, free: 5.551 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.007106, allocations: 0 / 0.7938 GB, free: 5.551 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001301/0.007236, allocations: 20 kB / 0.7938 GB, free: 5.531 MB / 0.7448 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.0001409/0.007377, allocations: 124.4 kB / 0.7939 GB, free: 5.41 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 6.35e-05/0.007441, allocations: 24.61 kB / 0.7939 GB, free: 5.383 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.007442, allocations: 0 / 0.7939 GB, free: 5.383 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.95e-05/0.007461, allocations: 20.27 kB / 0.7939 GB, free: 5.359 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001712/0.007632, allocations: 57.5 kB / 0.794 GB, free: 5.309 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004126/0.008045, allocations: 263.2 kB / 0.7942 GB, free: 5.02 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.34e-05/0.008078, allocations: 71.89 kB / 0.7943 GB, free: 4.93 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.382e-05/0.008112, allocations: 18.73 kB / 0.7943 GB, free: 4.914 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.293e-05/0.008185, allocations: 94.17 kB / 0.7944 GB, free: 4.82 MB / 0.7448 GB Notification: Performance of SimCode: time 6.61e-07/0.008186, allocations: 0 / 0.7944 GB, free: 4.82 MB / 0.7448 GB Notification: Performance of Templates: time 0.003219/0.0114, allocations: 1.933 MB / 0.7963 GB, free: 2.93 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/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: 4.830239883158356]