Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009543/0.0009543, allocations: 80.8 kB / 20.75 MB, free: 3.738 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.0009342/0.0009342, allocations: 161.4 kB / 24.17 MB, free: 324 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.9576/0.9576, allocations: 177.1 MB / 204.6 MB, free: 5.035 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.933/1.933, allocations: 377.9 MB / 0.624 GB, free: 8.359 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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_12_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_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.294e-06/2.294e-06, allocations: 0 / 0.76 GB, free: 6.637 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.167e-05/2.397e-05, allocations: 4.562 kB / 0.76 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002467/0.002491, allocations: 1.706 MB / 0.7617 GB, free: 4.934 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0008615/0.003352, allocations: 0.5998 MB / 0.7622 GB, free: 4.336 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.088e-05/0.003443, allocations: 7.938 kB / 0.7622 GB, free: 4.328 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001755/0.003619, allocations: 33.19 kB / 0.7623 GB, free: 4.297 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.000223/0.003842, allocations: 72.91 kB / 0.7623 GB, free: 4.234 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.004042, allocations: 69.44 kB / 0.7624 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.000161/0.004203, allocations: 137 kB / 0.7625 GB, free: 4.039 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.004324, allocations: 46.81 kB / 0.7626 GB, free: 3.988 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.004496, allocations: 79.8 kB / 0.7627 GB, free: 3.91 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 9.203e-05/0.004588, allocations: 48.75 kB / 0.7627 GB, free: 3.863 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/0.00461, allocations: 8 kB / 0.7627 GB, free: 3.855 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 6.859e-05/0.004678, allocations: 37.3 kB / 0.7628 GB, free: 3.82 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 6.911e-05/0.004747, allocations: 43.83 kB / 0.7628 GB, free: 3.777 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.561e-05/0.004783, allocations: 27.88 kB / 0.7628 GB, free: 3.75 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.004944, allocations: 116.2 kB / 0.7629 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.004947, allocations: 0 / 0.7629 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of FrontEnd: time 9.92e-07/0.004948, allocations: 0.875 kB / 0.7629 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.004952, allocations: 0 / 0.7629 GB, free: 3.637 MB / 0.7136 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.0003843/0.005336, allocations: 369.2 kB / 0.7633 GB, free: 3.254 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.005367, allocations: 12.03 kB / 0.7633 GB, free: 3.242 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.005482, allocations: 16.92 kB / 0.7633 GB, free: 3.227 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002057/0.005687, allocations: 198.9 kB / 0.7635 GB, free: 3.008 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.005699, allocations: 9.406 kB / 0.7635 GB, free: 3 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.005715, allocations: 8.375 kB / 0.7635 GB, free: 2.992 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.005866, allocations: 133.2 kB / 0.7636 GB, free: 2.84 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.525e-06/0.005873, allocations: 5.422 kB / 0.7637 GB, free: 2.836 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.005883, allocations: 4.375 kB / 0.7637 GB, free: 2.832 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.00589, allocations: 7.938 kB / 0.7637 GB, free: 2.824 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.219e-05/0.005913, allocations: 9.031 kB / 0.7637 GB, free: 2.816 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002871/0.0062, allocations: 217.7 kB / 0.7639 GB, free: 2.586 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.158e-05/0.006241, allocations: 19.11 kB / 0.7639 GB, free: 2.559 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.58e-05/0.006257, allocations: 10.61 kB / 0.7639 GB, free: 2.547 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/0.00627, allocations: 4.062 kB / 0.7639 GB, free: 2.543 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.872e-05/0.006369, allocations: 120.5 kB / 0.764 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.00637, allocations: 0 / 0.764 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001058/0.006476, allocations: 50.84 kB / 0.7641 GB, free: 2.34 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.006515, allocations: 81.09 kB / 0.7642 GB, free: 2.242 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.006636, allocations: 213 kB / 0.7644 GB, free: 2.02 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.006649, allocations: 25.7 kB / 0.7644 GB, free: 1.988 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.542e-05/0.006694, allocations: 117.8 kB / 0.7645 GB, free: 1.871 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.547e-05/0.00671, allocations: 7.891 kB / 0.7645 GB, free: 1.863 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.797e-05/0.006738, allocations: 17.7 kB / 0.7645 GB, free: 1.84 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.973e-05/0.006817, allocations: 331.5 kB / 0.7648 GB, free: 1.508 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.171e-05/0.006829, allocations: 0 / 0.7648 GB, free: 1.508 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.226e-05/0.006861, allocations: 57.97 kB / 0.7649 GB, free: 1.434 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.434e-05/0.006896, allocations: 26.75 kB / 0.7649 GB, free: 1.398 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.006898, allocations: 7.938 kB / 0.7649 GB, free: 1.391 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.483e-05/0.006962, allocations: 51.86 kB / 0.765 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.006974, allocations: 8 kB / 0.765 GB, free: 1.328 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.00698, allocations: 3.984 kB / 0.765 GB, free: 1.324 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.006992, allocations: 0 / 0.765 GB, free: 1.324 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.614e-05/0.007058, allocations: 10.44 kB / 0.765 GB, free: 1.316 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.007062, allocations: 3.984 kB / 0.765 GB, free: 1.312 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.49e-05/0.007097, allocations: 11.92 kB / 0.765 GB, free: 1.301 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.007104, allocations: 4 kB / 0.765 GB, free: 1.297 MB / 0.7136 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.758e-05/0.007171, allocations: 120.6 kB / 0.7651 GB, free: 1.168 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.408e-05/0.007186, allocations: 11.98 kB / 0.7651 GB, free: 1.156 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.685e-05/0.007212, allocations: 19.11 kB / 0.7652 GB, free: 1.141 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.007215, allocations: 0 / 0.7652 GB, free: 1.141 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-06/0.007216, allocations: 0 / 0.7652 GB, free: 1.141 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.007219, allocations: 0 / 0.7652 GB, free: 1.141 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.693e-05/0.007306, allocations: 101.7 kB / 0.7653 GB, free: 1.023 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.007307, allocations: 1.031 kB / 0.7653 GB, free: 1.023 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.632e-05/0.007333, allocations: 8 kB / 0.7653 GB, free: 1.016 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.007335, allocations: 3.984 kB / 0.7653 GB, free: 1.012 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-06/0.007339, allocations: 4.875 kB / 0.7653 GB, free: 1.008 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.007341, allocations: 0 / 0.7653 GB, free: 1.008 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.007342, allocations: 0.875 kB / 0.7653 GB, free: 1.008 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.84e-05/0.00742, allocations: 77.05 kB / 0.7653 GB, free: 0.9141 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.182e-05/0.007432, allocations: 11.95 kB / 0.7654 GB, free: 0.9023 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.007444, allocations: 2.75 kB / 0.7654 GB, free: 0.9023 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.508e-05/0.007469, allocations: 7.938 kB / 0.7654 GB, free: 0.8945 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.917e-05/0.007498, allocations: 7.984 kB / 0.7654 GB, free: 0.8867 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.479e-05/0.007513, allocations: 4 kB / 0.7654 GB, free: 0.8828 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.525e-05/0.007568, allocations: 73.98 kB / 0.7655 GB, free: 0.8086 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6e-08/0.007568, allocations: 0 / 0.7655 GB, free: 0.8086 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001232/0.007692, allocations: 23.95 kB / 0.7655 GB, free: 0.7852 MB / 0.7136 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.0002089/0.0079, allocations: 113.2 kB / 0.7656 GB, free: 0.6719 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.656e-05/0.007987, allocations: 22.78 kB / 0.7656 GB, free: 0.6484 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.007993, allocations: 4 kB / 0.7656 GB, free: 0.6445 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.798e-05/0.008011, allocations: 8.859 kB / 0.7656 GB, free: 0.6328 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/0.008194, allocations: 46.91 kB / 0.7657 GB, free: 0.5898 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005711/0.008765, allocations: 285.2 kB / 0.7659 GB, free: 288 kB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.729e-05/0.008812, allocations: 75.33 kB / 0.766 GB, free: 192 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.486e-05/0.008857, allocations: 9.125 kB / 0.766 GB, free: 184 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.068e-05/0.008938, allocations: 72.03 kB / 0.7661 GB, free: 112 kB / 0.7136 GB Notification: Performance of SimCode: time 9.82e-07/0.008939, allocations: 0 / 0.7661 GB, free: 112 kB / 0.7136 GB Notification: Performance of Templates: time 0.004151/0.01309, allocations: 1.806 MB / 0.7678 GB, free: 14.45 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.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: 5.011710098944604]