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.0009951/0.0009951, allocations: 80.75 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.0009742/0.0009742, allocations: 181 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.9593/0.9593, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.482/2.482, 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.182e-06/1.182e-06, allocations: 0.7656 kB / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.46e-05/1.578e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002147/0.002163, allocations: 1.75 MB / 0.8403 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0007857/0.002948, allocations: 0.6037 MB / 0.8409 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.494e-05/0.003023, allocations: 3.938 kB / 0.8409 GB, free: 11.85 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.003176, allocations: 27.78 kB / 0.8409 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.003375, allocations: 75.47 kB / 0.841 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001522/0.003528, allocations: 75.84 kB / 0.8411 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001421/0.00367, allocations: 131.6 kB / 0.8412 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.00378, allocations: 38.23 kB / 0.8412 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.003939, allocations: 79.8 kB / 0.8413 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 8.71e-05/0.004026, allocations: 55.81 kB / 0.8414 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.004047, allocations: 8 kB / 0.8414 GB, free: 11.37 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 6.644e-05/0.004113, allocations: 27.88 kB / 0.8414 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 6.372e-05/0.004177, allocations: 47.83 kB / 0.8414 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 3.467e-05/0.004212, allocations: 35.86 kB / 0.8415 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.004357, allocations: 111.6 kB / 0.8416 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.004358, allocations: 0 / 0.8416 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.91e-07/0.004359, allocations: 0 / 0.8416 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.004363, allocations: 0 / 0.8416 GB, free: 11.15 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.0003558/0.004718, allocations: 379.9 kB / 0.8419 GB, free: 10.76 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.715e-05/0.004745, allocations: 8.625 kB / 0.842 GB, free: 10.75 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.004854, allocations: 20.92 kB / 0.842 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001885/0.005042, allocations: 189.4 kB / 0.8422 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.734e-06/0.00505, allocations: 384 / 0.8422 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.005064, allocations: 12.31 kB / 0.8422 GB, free: 10.51 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001459/0.005209, allocations: 133.2 kB / 0.8423 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.005217, allocations: 4.188 kB / 0.8423 GB, free: 10.35 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.005227, allocations: 8.359 kB / 0.8423 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.005233, allocations: 3.938 kB / 0.8423 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.427e-05/0.005257, allocations: 8 kB / 0.8423 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002669/0.005524, allocations: 221.7 kB / 0.8425 GB, free: 10.1 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.618e-05/0.00556, allocations: 18.56 kB / 0.8425 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.327e-05/0.005574, allocations: 8.922 kB / 0.8426 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.005584, allocations: 0 / 0.8426 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.523e-05/0.00568, allocations: 120.5 kB / 0.8427 GB, free: 9.91 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 5.31e-07/0.00568, allocations: 0 / 0.8427 GB, free: 9.91 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001397/0.00582, allocations: 49.88 kB / 0.8427 GB, free: 9.855 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.005854, allocations: 81.09 kB / 0.8428 GB, free: 9.758 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.005977, allocations: 205.1 kB / 0.843 GB, free: 9.543 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.00599, allocations: 33.69 kB / 0.843 GB, free: 9.504 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.902e-05/0.006029, allocations: 112.4 kB / 0.8431 GB, free: 9.391 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.9e-05/0.006048, allocations: 11.95 kB / 0.8431 GB, free: 9.379 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-05/0.006074, allocations: 13.7 kB / 0.8432 GB, free: 9.359 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.147e-05/0.006145, allocations: 334.7 kB / 0.8435 GB, free: 9.023 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.001e-05/0.006155, allocations: 4 kB / 0.8435 GB, free: 9.02 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.885e-05/0.006184, allocations: 53.12 kB / 0.8435 GB, free: 8.949 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.388e-05/0.006218, allocations: 37.36 kB / 0.8436 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.006219, allocations: 0 / 0.8436 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.142e-05/0.006281, allocations: 61.55 kB / 0.8436 GB, free: 8.836 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.00629, allocations: 4 kB / 0.8436 GB, free: 8.832 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.006293, allocations: 0 / 0.8436 GB, free: 8.832 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.006306, allocations: 4 kB / 0.8436 GB, free: 8.828 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.276e-05/0.006369, allocations: 8 kB / 0.8436 GB, free: 8.82 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.557e-06/0.006372, allocations: 8.078 kB / 0.8436 GB, free: 8.812 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.471e-05/0.006407, allocations: 15.92 kB / 0.8437 GB, free: 8.797 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.03e-06/0.006412, allocations: 0 / 0.8437 GB, free: 8.797 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.973e-05/0.006472, allocations: 120.6 kB / 0.8438 GB, free: 8.668 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.229e-05/0.006484, allocations: 7.984 kB / 0.8438 GB, free: 8.66 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.647e-05/0.006511, allocations: 25.02 kB / 0.8438 GB, free: 8.637 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.006512, allocations: 0 / 0.8438 GB, free: 8.637 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.006513, allocations: 0 / 0.8438 GB, free: 8.637 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.006516, allocations: 0 / 0.8438 GB, free: 8.637 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.654e-05/0.006592, allocations: 97.91 kB / 0.8439 GB, free: 8.523 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.006593, allocations: 4 kB / 0.8439 GB, free: 8.52 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.152e-05/0.006615, allocations: 4 kB / 0.8439 GB, free: 8.516 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.006617, allocations: 3.984 kB / 0.8439 GB, free: 8.512 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-06/0.006621, allocations: 4 kB / 0.8439 GB, free: 8.508 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.006623, allocations: 3.938 kB / 0.8439 GB, free: 8.504 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.006624, allocations: 0 / 0.8439 GB, free: 8.504 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.597e-05/0.00669, allocations: 73.05 kB / 0.844 GB, free: 8.414 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.289e-05/0.006703, allocations: 19.91 kB / 0.844 GB, free: 8.395 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.13e-05/0.006714, allocations: 0 / 0.844 GB, free: 8.395 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.513e-05/0.006739, allocations: 8 kB / 0.844 GB, free: 8.387 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.793e-05/0.006767, allocations: 7.984 kB / 0.844 GB, free: 8.379 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.006781, allocations: 4 kB / 0.844 GB, free: 8.375 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 4.888e-05/0.00683, allocations: 70.23 kB / 0.8441 GB, free: 8.305 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.00683, allocations: 0 / 0.8441 GB, free: 8.305 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001165/0.006946, allocations: 23.95 kB / 0.8441 GB, free: 8.281 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.0001567/0.007103, allocations: 115.4 kB / 0.8442 GB, free: 8.164 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.005e-05/0.007173, allocations: 20.78 kB / 0.8442 GB, free: 8.141 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.007176, allocations: 0 / 0.8442 GB, free: 8.141 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.7e-05/0.007193, allocations: 9 kB / 0.8443 GB, free: 8.129 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000156/0.007349, allocations: 50.41 kB / 0.8443 GB, free: 8.082 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004689/0.007818, allocations: 283.1 kB / 0.8446 GB, free: 7.777 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.569e-05/0.007854, allocations: 68.08 kB / 0.8446 GB, free: 7.691 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.574e-05/0.007889, allocations: 16.48 kB / 0.8447 GB, free: 7.676 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.529e-05/0.007965, allocations: 75.36 kB / 0.8447 GB, free: 7.602 MB / 0.8073 GB Notification: Performance of SimCode: time 4.3e-07/0.007965, allocations: 0 / 0.8447 GB, free: 7.602 MB / 0.8073 GB Notification: Performance of Templates: time 0.003337/0.0113, allocations: 1.802 MB / 0.8465 GB, free: 5.84 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 -s gbode -gbm=radauIIA3 -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.290206475183368]