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.001335/0.001335, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001306/0.001306, allocations: 161 kB / 23.82 MB, free: 0.75 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 0.9431/0.9431, allocations: 177.2 MB / 204.2 MB, free: 5.598 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.707/1.707, allocations: 359 MB / 0.6052 GB, free: 10.99 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 2.154e-06/2.154e-06, allocations: 0 / 0.7871 GB, free: 11.38 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.725e-05/2.941e-05, allocations: 2.312 kB / 0.7871 GB, free: 11.38 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003183/0.003212, allocations: 1.701 MB / 0.7887 GB, free: 9.684 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001138/0.00435, allocations: 0.6055 MB / 0.7893 GB, free: 9.074 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.004454, allocations: 4.594 kB / 0.7893 GB, free: 9.07 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0002054/0.004659, allocations: 19.8 kB / 0.7893 GB, free: 9.051 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0002747/0.004934, allocations: 72.69 kB / 0.7894 GB, free: 8.98 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.005181, allocations: 77 kB / 0.7895 GB, free: 8.906 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0002207/0.005402, allocations: 135.4 kB / 0.7896 GB, free: 8.773 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.005555, allocations: 41.62 kB / 0.7897 GB, free: 8.73 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002151/0.00577, allocations: 85.55 kB / 0.7897 GB, free: 8.648 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.005877, allocations: 47.88 kB / 0.7898 GB, free: 8.602 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.693e-05/0.005904, allocations: 8 kB / 0.7898 GB, free: 8.594 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.395e-05/0.005978, allocations: 20 kB / 0.7898 GB, free: 8.574 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 8.878e-05/0.006067, allocations: 52.61 kB / 0.7899 GB, free: 8.523 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.141e-05/0.006118, allocations: 31.86 kB / 0.7899 GB, free: 8.492 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002189/0.006337, allocations: 120.2 kB / 0.79 GB, free: 8.375 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.006341, allocations: 1.312 kB / 0.79 GB, free: 8.375 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.192e-06/0.006342, allocations: 0 / 0.79 GB, free: 8.375 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.006347, allocations: 0 / 0.79 GB, free: 8.375 MB / 0.698 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.0005684/0.006915, allocations: 0.4888 MB / 0.7905 GB, free: 7.852 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.006958, allocations: 12.03 kB / 0.7905 GB, free: 7.84 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.007123, allocations: 32.78 kB / 0.7905 GB, free: 7.809 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000271/0.007394, allocations: 194.6 kB / 0.7907 GB, free: 7.594 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.007406, allocations: 384 / 0.7907 GB, free: 7.594 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.007424, allocations: 8.375 kB / 0.7907 GB, free: 7.586 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003516/0.007776, allocations: 141.9 kB / 0.7909 GB, free: 7.43 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.007785, allocations: 1.844 kB / 0.7909 GB, free: 7.43 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.007801, allocations: 4.375 kB / 0.7909 GB, free: 7.426 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.007813, allocations: 7.938 kB / 0.7909 GB, free: 7.418 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.982e-05/0.007863, allocations: 11.98 kB / 0.7909 GB, free: 7.406 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004984/0.008361, allocations: 361 kB / 0.7912 GB, free: 7.02 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.114e-05/0.008422, allocations: 31.06 kB / 0.7913 GB, free: 6.977 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.592e-05/0.008448, allocations: 7.688 kB / 0.7913 GB, free: 6.965 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.008462, allocations: 5.594 kB / 0.7913 GB, free: 6.961 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.008622, allocations: 135.8 kB / 0.7914 GB, free: 6.793 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.433e-06/0.008624, allocations: 0 / 0.7914 GB, free: 6.793 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0001931/0.008817, allocations: 57.59 kB / 0.7915 GB, free: 6.73 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.00886, allocations: 77.11 kB / 0.7915 GB, free: 6.637 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.009056, allocations: 265.3 kB / 0.7918 GB, free: 6.363 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.009073, allocations: 25.7 kB / 0.7918 GB, free: 6.332 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.14e-05/0.009164, allocations: 178.8 kB / 0.792 GB, free: 6.152 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/0.009186, allocations: 11.91 kB / 0.792 GB, free: 6.141 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.009224, allocations: 23.36 kB / 0.792 GB, free: 6.109 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.009361, allocations: 0.5 MB / 0.7925 GB, free: 5.598 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.265e-05/0.009384, allocations: 4.656 kB / 0.7925 GB, free: 5.594 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.86e-05/0.009432, allocations: 72.55 kB / 0.7926 GB, free: 5.5 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.954e-05/0.009482, allocations: 33.09 kB / 0.7926 GB, free: 5.457 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.009484, allocations: 4 kB / 0.7926 GB, free: 5.453 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000129/0.009613, allocations: 62.06 kB / 0.7927 GB, free: 5.387 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.009628, allocations: 5.344 kB / 0.7927 GB, free: 5.383 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.009634, allocations: 4 kB / 0.7927 GB, free: 5.379 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.00965, allocations: 7.938 kB / 0.7927 GB, free: 5.371 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.008e-05/0.00973, allocations: 5.156 kB / 0.7927 GB, free: 5.367 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.009735, allocations: 4 kB / 0.7927 GB, free: 5.363 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.983e-05/0.009785, allocations: 7.984 kB / 0.7927 GB, free: 5.355 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.739e-06/0.009795, allocations: 9.297 kB / 0.7927 GB, free: 5.348 MB / 0.698 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 9.277e-05/0.009888, allocations: 160.6 kB / 0.7929 GB, free: 5.18 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.49e-05/0.009912, allocations: 15.91 kB / 0.7929 GB, free: 5.164 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.594e-05/0.009948, allocations: 18.77 kB / 0.7929 GB, free: 5.145 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.009952, allocations: 4 kB / 0.7929 GB, free: 5.141 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.009956, allocations: 0 / 0.7929 GB, free: 5.141 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.00996, allocations: 0 / 0.7929 GB, free: 5.141 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.0101, allocations: 172.5 kB / 0.7931 GB, free: 4.938 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.0101, allocations: 0.5312 kB / 0.7931 GB, free: 4.938 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.029e-05/0.01014, allocations: 5 kB / 0.7931 GB, free: 4.934 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.01015, allocations: 0 / 0.7931 GB, free: 4.934 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.01016, allocations: 4 kB / 0.7931 GB, free: 4.93 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.01016, allocations: 3.469 kB / 0.7931 GB, free: 4.93 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.01016, allocations: 0 / 0.7931 GB, free: 4.93 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.01028, allocations: 104.1 kB / 0.7932 GB, free: 4.805 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.835e-05/0.0103, allocations: 19.83 kB / 0.7932 GB, free: 4.785 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.01031, allocations: 0 / 0.7932 GB, free: 4.785 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.868e-05/0.01035, allocations: 8 kB / 0.7932 GB, free: 4.777 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.479e-05/0.0104, allocations: 7.984 kB / 0.7932 GB, free: 4.77 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.01042, allocations: 4 kB / 0.7932 GB, free: 4.766 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001196/0.01054, allocations: 193.5 kB / 0.7934 GB, free: 4.578 MB / 0.698 GB Notification: Performance of sort global known variables: time 9.1e-08/0.01054, allocations: 0.5625 kB / 0.7934 GB, free: 4.578 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002262/0.01076, allocations: 17.91 kB / 0.7934 GB, free: 4.562 MB / 0.698 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.0002345/0.011, allocations: 121 kB / 0.7935 GB, free: 4.441 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001245/0.01112, allocations: 31.55 kB / 0.7936 GB, free: 4.406 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.01112, allocations: 4 kB / 0.7936 GB, free: 4.402 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 2.725e-05/0.01115, allocations: 16.2 kB / 0.7936 GB, free: 4.383 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.01144, allocations: 40.45 kB / 0.7936 GB, free: 4.344 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000776/0.01222, allocations: 269 kB / 0.7939 GB, free: 4.051 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.249e-05/0.01226, allocations: 76.16 kB / 0.7939 GB, free: 3.957 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 5.486e-05/0.01231, allocations: 21.8 kB / 0.794 GB, free: 3.938 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.665e-05/0.01235, allocations: 16.5 kB / 0.794 GB, free: 3.922 MB / 0.698 GB Notification: Performance of SimCode: time 9.61e-07/0.01235, allocations: 0 / 0.794 GB, free: 3.922 MB / 0.698 GB Notification: Performance of Templates: time 0.004033/0.01639, allocations: 1.905 MB / 0.7958 GB, free: 2.086 MB / 0.698 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.779634075239301]