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.001106/0.001106, allocations: 71.75 kB / 20.97 MB, free: 3.582 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.001155/0.001155, allocations: 169 kB / 24.28 MB, free: 280 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.9168/0.9168, allocations: 177.1 MB / 204.6 MB, free: 5.641 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.683/1.683, allocations: 359 MB / 0.6055 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 1.463e-06/1.463e-06, allocations: 0 / 0.7871 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.856e-05/2.002e-05, allocations: 6.25 kB / 0.7871 GB, free: 12.85 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002091/0.002111, allocations: 1.708 MB / 0.7887 GB, free: 11.15 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0007244/0.002836, allocations: 0.5985 MB / 0.7893 GB, free: 10.55 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.231e-05/0.002918, allocations: 4 kB / 0.7893 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001716/0.00309, allocations: 31.72 kB / 0.7893 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0002128/0.003302, allocations: 68.86 kB / 0.7894 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001871/0.00349, allocations: 73.27 kB / 0.7895 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.003652, allocations: 135.5 kB / 0.7896 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.00379, allocations: 37.59 kB / 0.7896 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.003948, allocations: 80.98 kB / 0.7897 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.906e-05/0.004027, allocations: 47.88 kB / 0.7898 GB, free: 10.08 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.22e-05/0.004049, allocations: 8 kB / 0.7898 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.853e-05/0.004108, allocations: 28.55 kB / 0.7898 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 7.298e-05/0.004181, allocations: 55.77 kB / 0.7899 GB, free: 9.988 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.902e-05/0.00422, allocations: 29.33 kB / 0.7899 GB, free: 9.961 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001615/0.004381, allocations: 119.4 kB / 0.79 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.004383, allocations: 0 / 0.79 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.71e-07/0.004384, allocations: 1 kB / 0.79 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.004391, allocations: 0 / 0.79 GB, free: 9.844 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.0004529/0.004844, allocations: 496.5 kB / 0.7905 GB, free: 9.324 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.004881, allocations: 12.03 kB / 0.7905 GB, free: 9.312 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001301/0.005011, allocations: 33.91 kB / 0.7905 GB, free: 9.281 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002128/0.005223, allocations: 189.2 kB / 0.7907 GB, free: 9.07 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.005234, allocations: 4.375 kB / 0.7907 GB, free: 9.066 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.005248, allocations: 13.97 kB / 0.7907 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000183/0.005431, allocations: 138.3 kB / 0.7908 GB, free: 8.898 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.005438, allocations: 192 / 0.7908 GB, free: 8.898 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.005449, allocations: 384 / 0.7908 GB, free: 8.898 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-06/0.005458, allocations: 5.125 kB / 0.7909 GB, free: 8.895 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.972e-05/0.005497, allocations: 21.61 kB / 0.7909 GB, free: 8.875 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003609/0.005858, allocations: 359.5 kB / 0.7912 GB, free: 8.488 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.425e-05/0.005903, allocations: 28.66 kB / 0.7912 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.2e-05/0.005925, allocations: 7.75 kB / 0.7913 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.005938, allocations: 4 kB / 0.7913 GB, free: 8.434 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001146/0.006052, allocations: 131.8 kB / 0.7914 GB, free: 8.27 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.006054, allocations: 5.25 kB / 0.7914 GB, free: 8.266 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001454/0.006199, allocations: 53.78 kB / 0.7914 GB, free: 8.207 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.006236, allocations: 81.11 kB / 0.7915 GB, free: 8.109 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.006389, allocations: 269.7 kB / 0.7918 GB, free: 7.832 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.006401, allocations: 29.7 kB / 0.7918 GB, free: 7.797 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.927e-05/0.00647, allocations: 182.7 kB / 0.792 GB, free: 7.613 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.006485, allocations: 3.953 kB / 0.792 GB, free: 7.609 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-05/0.006513, allocations: 23.36 kB / 0.792 GB, free: 7.578 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.006629, allocations: 0.5039 MB / 0.7925 GB, free: 7.062 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.542e-05/0.006644, allocations: 4 kB / 0.7925 GB, free: 7.059 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.626e-05/0.00668, allocations: 72.42 kB / 0.7926 GB, free: 6.965 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.826e-05/0.006718, allocations: 32.78 kB / 0.7926 GB, free: 6.922 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.00672, allocations: 0 / 0.7926 GB, free: 6.922 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.35e-05/0.006794, allocations: 66.78 kB / 0.7927 GB, free: 6.852 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.006804, allocations: 4 kB / 0.7927 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.006809, allocations: 4.531 kB / 0.7927 GB, free: 6.844 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.00682, allocations: 1.375 kB / 0.7927 GB, free: 6.844 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.235e-05/0.006882, allocations: 8 kB / 0.7927 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.006886, allocations: 0 / 0.7927 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.237e-05/0.006919, allocations: 9.141 kB / 0.7927 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.006925, allocations: 3.938 kB / 0.7927 GB, free: 6.824 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 6.203e-05/0.006987, allocations: 160.6 kB / 0.7928 GB, free: 6.656 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.746e-05/0.007004, allocations: 17 kB / 0.7929 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.574e-05/0.00703, allocations: 17.02 kB / 0.7929 GB, free: 6.625 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.007034, allocations: 4 kB / 0.7929 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.007036, allocations: 5.688 kB / 0.7929 GB, free: 6.617 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.007039, allocations: 0 / 0.7929 GB, free: 6.617 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001001/0.007139, allocations: 172.5 kB / 0.793 GB, free: 6.414 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.007141, allocations: 0 / 0.793 GB, free: 6.414 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.392e-05/0.007165, allocations: 6.094 kB / 0.7931 GB, free: 6.41 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.007166, allocations: 0 / 0.7931 GB, free: 6.41 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.007172, allocations: 4 kB / 0.7931 GB, free: 6.406 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.007174, allocations: 3.938 kB / 0.7931 GB, free: 6.402 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.007176, allocations: 4 kB / 0.7931 GB, free: 6.398 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.186e-05/0.007268, allocations: 96.27 kB / 0.7932 GB, free: 6.281 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.112e-05/0.007279, allocations: 12.53 kB / 0.7932 GB, free: 6.27 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.007292, allocations: 4 kB / 0.7932 GB, free: 6.266 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.627e-05/0.007318, allocations: 7.438 kB / 0.7932 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.826e-05/0.007357, allocations: 7.984 kB / 0.7932 GB, free: 6.254 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.007371, allocations: 4 kB / 0.7932 GB, free: 6.25 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.744e-05/0.007458, allocations: 193.5 kB / 0.7934 GB, free: 6.062 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.007458, allocations: 0 / 0.7934 GB, free: 6.062 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001409/0.007599, allocations: 27.94 kB / 0.7934 GB, free: 6.035 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.0001805/0.00778, allocations: 119.8 kB / 0.7935 GB, free: 5.918 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 8.936e-05/0.007869, allocations: 23.56 kB / 0.7935 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.007871, allocations: 0 / 0.7935 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.438e-05/0.007895, allocations: 20.31 kB / 0.7936 GB, free: 5.867 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001985/0.008094, allocations: 56.5 kB / 0.7936 GB, free: 5.816 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005387/0.008632, allocations: 272 kB / 0.7939 GB, free: 5.52 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.702e-05/0.008669, allocations: 71.31 kB / 0.7939 GB, free: 5.43 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.208e-05/0.008712, allocations: 25.22 kB / 0.794 GB, free: 5.406 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.025e-05/0.008742, allocations: 17.44 kB / 0.794 GB, free: 5.387 MB / 0.7448 GB Notification: Performance of SimCode: time 6.91e-07/0.008742, allocations: 0 / 0.794 GB, free: 5.387 MB / 0.7448 GB Notification: Performance of Templates: time 0.003461/0.0122, allocations: 1.796 MB / 0.7957 GB, free: 3.652 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.875666285865009]