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.001007/0.001007, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.001029/0.001029, allocations: 164.7 kB / 24.87 MB, free: 8.891 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.9594/0.9594, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.749/1.749, allocations: 359 MB / 0.6063 GB, free: 10.9 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.312e-06/1.312e-06, allocations: 3.938 kB / 0.7883 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.005e-05/1.136e-05, allocations: 2.312 kB / 0.7883 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001883/0.001894, allocations: 1.697 MB / 0.7899 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.000691/0.002585, allocations: 0.5982 MB / 0.7905 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.681e-05/0.002652, allocations: 8.5 kB / 0.7905 GB, free: 9.926 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.002796, allocations: 27.73 kB / 0.7906 GB, free: 9.898 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001858/0.002982, allocations: 68.52 kB / 0.7906 GB, free: 9.832 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001457/0.003128, allocations: 68.5 kB / 0.7907 GB, free: 9.766 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001479/0.003276, allocations: 144.7 kB / 0.7908 GB, free: 9.625 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.003385, allocations: 33.61 kB / 0.7909 GB, free: 9.59 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.003551, allocations: 83.73 kB / 0.7909 GB, free: 9.508 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 9.167e-05/0.003643, allocations: 49.5 kB / 0.791 GB, free: 9.461 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.188e-05/0.003665, allocations: 8 kB / 0.791 GB, free: 9.453 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.815e-05/0.003723, allocations: 27.98 kB / 0.791 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.85e-05/0.003791, allocations: 43.83 kB / 0.7911 GB, free: 9.383 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.481e-05/0.003826, allocations: 37.06 kB / 0.7911 GB, free: 9.348 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.003964, allocations: 119.4 kB / 0.7912 GB, free: 9.23 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.003967, allocations: 4 kB / 0.7912 GB, free: 9.227 MB / 0.7448 GB Notification: Performance of FrontEnd: time 4.81e-07/0.003967, allocations: 0.6875 kB / 0.7912 GB, free: 9.227 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.306e-06/0.00397, allocations: 0 / 0.7912 GB, free: 9.227 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.0003669/0.004337, allocations: 497.2 kB / 0.7917 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 2.779e-05/0.004365, allocations: 11.97 kB / 0.7917 GB, free: 8.695 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.004477, allocations: 32.83 kB / 0.7917 GB, free: 8.664 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001829/0.00466, allocations: 192.3 kB / 0.7919 GB, free: 8.453 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.004669, allocations: 4.375 kB / 0.7919 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.00468, allocations: 8.375 kB / 0.7919 GB, free: 8.441 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/0.004824, allocations: 126.3 kB / 0.792 GB, free: 8.297 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.541e-06/0.00483, allocations: 192 / 0.792 GB, free: 8.297 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.004839, allocations: 4.375 kB / 0.7921 GB, free: 8.293 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.004845, allocations: 3.938 kB / 0.7921 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.766e-05/0.004873, allocations: 15.92 kB / 0.7921 GB, free: 8.273 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003552/0.005228, allocations: 328.8 kB / 0.7924 GB, free: 7.926 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 3.897e-05/0.005267, allocations: 28.72 kB / 0.7924 GB, free: 7.887 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.384e-05/0.005281, allocations: 7.688 kB / 0.7924 GB, free: 7.875 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.005293, allocations: 3.984 kB / 0.7924 GB, free: 7.871 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.329e-05/0.005386, allocations: 131.9 kB / 0.7926 GB, free: 7.707 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.005387, allocations: 1.562 kB / 0.7926 GB, free: 7.707 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001064/0.005493, allocations: 57.53 kB / 0.7926 GB, free: 7.645 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.862e-05/0.005522, allocations: 85.05 kB / 0.7927 GB, free: 7.543 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.005641, allocations: 262.6 kB / 0.7929 GB, free: 7.27 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.005653, allocations: 27.05 kB / 0.793 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.201e-05/0.005715, allocations: 182.7 kB / 0.7931 GB, free: 7.055 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.455e-05/0.005729, allocations: 7.953 kB / 0.7931 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-05/0.005758, allocations: 23.38 kB / 0.7932 GB, free: 7.016 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.972e-05/0.005858, allocations: 0.5014 MB / 0.7937 GB, free: 6.504 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.649e-06/0.005867, allocations: 0 / 0.7937 GB, free: 6.504 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.91e-05/0.005896, allocations: 64.44 kB / 0.7937 GB, free: 6.418 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.316e-05/0.00593, allocations: 41.12 kB / 0.7938 GB, free: 6.367 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.005931, allocations: 0 / 0.7938 GB, free: 6.367 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.195e-05/0.005993, allocations: 58.53 kB / 0.7938 GB, free: 6.305 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.006004, allocations: 8 kB / 0.7938 GB, free: 6.297 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.006008, allocations: 0 / 0.7938 GB, free: 6.297 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.54e-06/0.006013, allocations: 0.5312 kB / 0.7938 GB, free: 6.297 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.23e-05/0.006065, allocations: 12.52 kB / 0.7938 GB, free: 6.285 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.806e-06/0.006068, allocations: 5 kB / 0.7938 GB, free: 6.281 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.907e-05/0.006107, allocations: 15.94 kB / 0.7939 GB, free: 6.266 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-06/0.006113, allocations: 4 kB / 0.7939 GB, free: 6.262 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 5.971e-05/0.006173, allocations: 157.1 kB / 0.794 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.602e-05/0.006189, allocations: 16.44 kB / 0.794 GB, free: 6.082 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.312e-05/0.006212, allocations: 22.39 kB / 0.794 GB, free: 6.062 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.006213, allocations: 0 / 0.794 GB, free: 6.062 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.006214, allocations: 0 / 0.794 GB, free: 6.062 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.006216, allocations: 0 / 0.794 GB, free: 6.062 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.053e-05/0.006297, allocations: 142.2 kB / 0.7942 GB, free: 5.898 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.006298, allocations: 0 / 0.7942 GB, free: 5.898 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.262e-05/0.006321, allocations: 7.984 kB / 0.7942 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.006322, allocations: 0.9375 kB / 0.7942 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-06/0.006328, allocations: 4 kB / 0.7942 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-07/0.006328, allocations: 0 / 0.7942 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.61e-07/0.006329, allocations: 0.8125 kB / 0.7942 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.004e-05/0.006399, allocations: 96.22 kB / 0.7943 GB, free: 5.77 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.151e-05/0.00641, allocations: 12.84 kB / 0.7943 GB, free: 5.758 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.086e-05/0.006421, allocations: 0 / 0.7943 GB, free: 5.758 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.657e-05/0.006448, allocations: 13.33 kB / 0.7943 GB, free: 5.746 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.506e-05/0.006473, allocations: 11.92 kB / 0.7943 GB, free: 5.734 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.006485, allocations: 4 kB / 0.7943 GB, free: 5.73 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.509e-05/0.00655, allocations: 181.5 kB / 0.7945 GB, free: 5.555 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.00655, allocations: 0.9688 kB / 0.7945 GB, free: 5.555 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001359/0.006686, allocations: 20 kB / 0.7945 GB, free: 5.535 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.0003686/0.007054, allocations: 128.2 kB / 0.7946 GB, free: 5.406 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 6.543e-05/0.00712, allocations: 31.05 kB / 0.7947 GB, free: 5.375 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 9.02e-07/0.007121, allocations: 0 / 0.7947 GB, free: 5.375 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.751e-05/0.007138, allocations: 11.69 kB / 0.7947 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.000174/0.007312, allocations: 57.2 kB / 0.7947 GB, free: 5.309 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004008/0.007713, allocations: 266.5 kB / 0.795 GB, free: 5.02 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.117e-05/0.007744, allocations: 71.33 kB / 0.7951 GB, free: 4.93 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.597e-05/0.00778, allocations: 17.53 kB / 0.7951 GB, free: 4.914 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.335e-05/0.007854, allocations: 94.73 kB / 0.7952 GB, free: 4.82 MB / 0.7448 GB Notification: Performance of SimCode: time 5.31e-07/0.007854, allocations: 0 / 0.7952 GB, free: 4.82 MB / 0.7448 GB Notification: Performance of Templates: time 0.003201/0.01105, allocations: 1.971 MB / 0.7971 GB, free: 2.91 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.759266966022551]