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.001299/0.001299, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.001429/0.001429, allocations: 173 kB / 23.36 MB, free: 1.133 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.9537/0.9537, allocations: 177.1 MB / 203.8 MB, free: 5.492 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.36/2.36, allocations: 438.8 MB / 0.6827 GB, free: 13.64 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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 1.102e-06/1.102e-06, allocations: 0 / 0.8385 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.468e-05/1.578e-05, allocations: 2.312 kB / 0.8385 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002154/0.002169, allocations: 1.704 MB / 0.8402 GB, free: 12.58 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0007565/0.002926, allocations: 0.6037 MB / 0.8408 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.147e-05/0.002997, allocations: 3.938 kB / 0.8408 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.003154, allocations: 23.8 kB / 0.8408 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.00336, allocations: 79.47 kB / 0.8409 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.003541, allocations: 75.84 kB / 0.841 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001591/0.0037, allocations: 131.5 kB / 0.8411 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.003826, allocations: 38.25 kB / 0.8411 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.003992, allocations: 79.8 kB / 0.8412 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 8.799e-05/0.00408, allocations: 51.81 kB / 0.8413 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.004102, allocations: 8 kB / 0.8413 GB, free: 11.49 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 6.617e-05/0.004168, allocations: 31.88 kB / 0.8413 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 7.633e-05/0.004245, allocations: 47.83 kB / 0.8413 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 3.317e-05/0.004278, allocations: 27.86 kB / 0.8414 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.000157/0.004435, allocations: 123.5 kB / 0.8415 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.004436, allocations: 0 / 0.8415 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of FrontEnd: time 5.71e-07/0.004437, allocations: 0 / 0.8415 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.136e-06/0.00444, allocations: 0 / 0.8415 GB, free: 11.26 MB / 0.8073 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.0003701/0.00481, allocations: 367.9 kB / 0.8418 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.004843, allocations: 8.625 kB / 0.8418 GB, free: 10.87 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.004956, allocations: 32.86 kB / 0.8419 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/0.00515, allocations: 177.4 kB / 0.8421 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-06/0.005159, allocations: 8.375 kB / 0.8421 GB, free: 10.63 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.005181, allocations: 8.312 kB / 0.8421 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001509/0.005332, allocations: 136.9 kB / 0.8422 GB, free: 10.47 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.00534, allocations: 192 / 0.8422 GB, free: 10.47 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-06/0.005348, allocations: 4.375 kB / 0.8422 GB, free: 10.47 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.005356, allocations: 11.92 kB / 0.8422 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.24e-05/0.005379, allocations: 11.98 kB / 0.8422 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000285/0.005664, allocations: 221.7 kB / 0.8424 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.89e-05/0.005703, allocations: 14.58 kB / 0.8424 GB, free: 10.19 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.886e-05/0.005721, allocations: 16.91 kB / 0.8425 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/0.005733, allocations: 0 / 0.8425 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.836e-05/0.005831, allocations: 124.4 kB / 0.8426 GB, free: 10.02 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 7.31e-07/0.005832, allocations: 0 / 0.8426 GB, free: 10.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001046/0.005937, allocations: 41.69 kB / 0.8426 GB, free: 9.969 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.005967, allocations: 77.11 kB / 0.8427 GB, free: 9.875 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.006076, allocations: 209.1 kB / 0.8429 GB, free: 9.656 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.00609, allocations: 33.7 kB / 0.8429 GB, free: 9.617 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.029e-05/0.00613, allocations: 116.4 kB / 0.843 GB, free: 9.5 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.591e-05/0.006146, allocations: 3.953 kB / 0.843 GB, free: 9.496 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/0.006175, allocations: 21.7 kB / 0.8431 GB, free: 9.469 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.589e-05/0.006251, allocations: 330.7 kB / 0.8434 GB, free: 9.137 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.034e-05/0.006262, allocations: 7.938 kB / 0.8434 GB, free: 9.129 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.753e-05/0.006289, allocations: 53.12 kB / 0.8434 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.284e-05/0.006322, allocations: 33.42 kB / 0.8435 GB, free: 9.016 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.006324, allocations: 0 / 0.8435 GB, free: 9.016 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.112e-05/0.006375, allocations: 57.5 kB / 0.8435 GB, free: 8.953 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.006385, allocations: 7.984 kB / 0.8435 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.015e-06/0.006388, allocations: 0 / 0.8435 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.006401, allocations: 4 kB / 0.8435 GB, free: 8.941 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.2e-05/0.006453, allocations: 4 kB / 0.8435 GB, free: 8.938 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.676e-06/0.006456, allocations: 0 / 0.8435 GB, free: 8.938 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.199e-05/0.006488, allocations: 15.92 kB / 0.8436 GB, free: 8.922 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.006494, allocations: 8.094 kB / 0.8436 GB, free: 8.914 MB / 0.8073 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 5.612e-05/0.00655, allocations: 116.6 kB / 0.8437 GB, free: 8.789 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.295e-05/0.006563, allocations: 11.98 kB / 0.8437 GB, free: 8.777 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.28e-05/0.006586, allocations: 17.03 kB / 0.8437 GB, free: 8.762 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.006588, allocations: 3.984 kB / 0.8437 GB, free: 8.758 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.00659, allocations: 0 / 0.8437 GB, free: 8.758 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.006593, allocations: 0 / 0.8437 GB, free: 8.758 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.603e-05/0.006669, allocations: 97.78 kB / 0.8438 GB, free: 8.645 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.006669, allocations: 0 / 0.8438 GB, free: 8.645 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.117e-05/0.006691, allocations: 8 kB / 0.8438 GB, free: 8.637 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.02e-07/0.006692, allocations: 4 kB / 0.8438 GB, free: 8.633 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.278e-06/0.006696, allocations: 0 / 0.8438 GB, free: 8.633 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.006699, allocations: 7.984 kB / 0.8438 GB, free: 8.625 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.0067, allocations: 7.922 kB / 0.8438 GB, free: 8.617 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.828e-05/0.006758, allocations: 69.33 kB / 0.8439 GB, free: 8.531 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.349e-05/0.006772, allocations: 19.94 kB / 0.8439 GB, free: 8.512 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.006785, allocations: 7.984 kB / 0.8439 GB, free: 8.504 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.257e-05/0.006808, allocations: 4 kB / 0.8439 GB, free: 8.5 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.877e-05/0.006837, allocations: 7.984 kB / 0.8439 GB, free: 8.492 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.00685, allocations: 4 kB / 0.8439 GB, free: 8.488 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 4.995e-05/0.0069, allocations: 70.25 kB / 0.844 GB, free: 8.418 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.0069, allocations: 0 / 0.844 GB, free: 8.418 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001125/0.007013, allocations: 19.95 kB / 0.844 GB, free: 8.398 MB / 0.8073 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.0001648/0.007178, allocations: 106.3 kB / 0.8441 GB, free: 8.289 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.077e-05/0.007248, allocations: 16.92 kB / 0.8441 GB, free: 8.27 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.007252, allocations: 12 kB / 0.8441 GB, free: 8.258 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.652e-05/0.007268, allocations: 12.84 kB / 0.8442 GB, free: 8.242 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001528/0.007421, allocations: 48.23 kB / 0.8442 GB, free: 8.199 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000461/0.007882, allocations: 279.1 kB / 0.8445 GB, free: 7.898 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.513e-05/0.007917, allocations: 71.89 kB / 0.8445 GB, free: 7.809 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.78e-05/0.007955, allocations: 12.5 kB / 0.8446 GB, free: 7.797 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.827e-05/0.008033, allocations: 71.34 kB / 0.8446 GB, free: 7.727 MB / 0.8073 GB Notification: Performance of SimCode: time 6.11e-07/0.008034, allocations: 0 / 0.8446 GB, free: 7.727 MB / 0.8073 GB Notification: Performance of Templates: time 0.00392/0.01195, allocations: 1.814 MB / 0.8464 GB, free: 5.949 MB / 0.8073 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.338845108170062]