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.0008927/0.0008927, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.0009688/0.0009688, allocations: 169.3 kB / 23.02 MB, free: 1.551 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.9471/0.9471, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.096/2.096, allocations: 429.5 MB / 0.6733 GB, free: 4.031 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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.332e-06/1.332e-06, allocations: 0 / 0.8781 GB, free: 6.34 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.772e-05/1.906e-05, allocations: 2.969 kB / 0.8781 GB, free: 6.336 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002197/0.002217, allocations: 1.714 MB / 0.8798 GB, free: 4.633 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0007902/0.003007, allocations: 0.6103 MB / 0.8804 GB, free: 4.02 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.495e-05/0.003092, allocations: 7.938 kB / 0.8804 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001878/0.00328, allocations: 23.38 kB / 0.8804 GB, free: 3.992 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002259/0.003505, allocations: 71.61 kB / 0.8805 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001812/0.003687, allocations: 67.84 kB / 0.8806 GB, free: 3.855 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001588/0.003845, allocations: 139.5 kB / 0.8807 GB, free: 3.719 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.003977, allocations: 37.59 kB / 0.8807 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.004144, allocations: 83.73 kB / 0.8808 GB, free: 3.598 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.985e-05/0.004234, allocations: 47.88 kB / 0.8809 GB, free: 3.551 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.613e-05/0.00426, allocations: 8.938 kB / 0.8809 GB, free: 3.543 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.338e-05/0.004323, allocations: 23.98 kB / 0.8809 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.687e-05/0.0044, allocations: 52.77 kB / 0.8809 GB, free: 3.469 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.098e-05/0.004441, allocations: 31.86 kB / 0.881 GB, free: 3.438 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.004611, allocations: 116.2 kB / 0.8811 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.004613, allocations: 0 / 0.8811 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.12e-07/0.004614, allocations: 3.562 kB / 0.8811 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.004619, allocations: 3.984 kB / 0.8811 GB, free: 3.32 MB / 0.8386 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.0004557/0.005075, allocations: 495.6 kB / 0.8816 GB, free: 2.801 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.005112, allocations: 12.03 kB / 0.8816 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.005249, allocations: 36.78 kB / 0.8816 GB, free: 2.754 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.005457, allocations: 180.2 kB / 0.8818 GB, free: 2.551 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.005469, allocations: 9 kB / 0.8818 GB, free: 2.543 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.005484, allocations: 4.969 kB / 0.8818 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001754/0.00566, allocations: 139.1 kB / 0.8819 GB, free: 2.383 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.005672, allocations: 192 / 0.8819 GB, free: 2.383 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.005683, allocations: 5.266 kB / 0.8819 GB, free: 2.379 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.005692, allocations: 3.938 kB / 0.8819 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.839e-05/0.00573, allocations: 12 kB / 0.882 GB, free: 2.363 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003843/0.006114, allocations: 357 kB / 0.8823 GB, free: 1.98 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.731e-05/0.006162, allocations: 31 kB / 0.8823 GB, free: 1.938 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.162e-05/0.006183, allocations: 7.688 kB / 0.8823 GB, free: 1.926 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.006198, allocations: 12 kB / 0.8823 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001221/0.00632, allocations: 127.8 kB / 0.8825 GB, free: 1.754 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 8.31e-07/0.006321, allocations: 4 kB / 0.8825 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001517/0.006473, allocations: 57.53 kB / 0.8825 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.006505, allocations: 81.11 kB / 0.8826 GB, free: 1.59 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.006664, allocations: 274.6 kB / 0.8829 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.006676, allocations: 25.7 kB / 0.8829 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.288e-05/0.006749, allocations: 182.7 kB / 0.8831 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.683e-05/0.006766, allocations: 3.953 kB / 0.8831 GB, free: 1.086 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.047e-05/0.006797, allocations: 23.38 kB / 0.8831 GB, free: 1.055 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002731/0.00707, allocations: 0.5 MB / 0.8836 GB, free: 0.543 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.015e-05/0.00709, allocations: 7.984 kB / 0.8836 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.79e-05/0.007128, allocations: 68.62 kB / 0.8837 GB, free: 456 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.196e-05/0.00717, allocations: 35 kB / 0.8837 GB, free: 408 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.007172, allocations: 4 kB / 0.8837 GB, free: 404 kB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.641e-05/0.007248, allocations: 57.53 kB / 0.8837 GB, free: 340 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.00726, allocations: 4 kB / 0.8837 GB, free: 336 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.007264, allocations: 8.125 kB / 0.8838 GB, free: 328 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.007278, allocations: 0 / 0.8838 GB, free: 328 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.034e-05/0.007349, allocations: 7.984 kB / 0.8838 GB, free: 320 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.007354, allocations: 4 kB / 0.8838 GB, free: 316 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.813e-05/0.007392, allocations: 15.95 kB / 0.8838 GB, free: 300 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.007399, allocations: 3.938 kB / 0.8838 GB, free: 296 kB / 0.8386 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.952e-05/0.007469, allocations: 164.5 kB / 0.8839 GB, free: 120 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.627e-05/0.007485, allocations: 15.91 kB / 0.884 GB, free: 104 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.207e-05/0.007517, allocations: 13.03 kB / 0.884 GB, free: 88 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.00752, allocations: 4 kB / 0.884 GB, free: 84 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.007523, allocations: 4 kB / 0.884 GB, free: 80 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.007526, allocations: 0 / 0.884 GB, free: 80 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.00764, allocations: 168.5 kB / 0.8841 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.007642, allocations: 0 / 0.8841 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.654e-05/0.007668, allocations: 7.984 kB / 0.8841 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.00767, allocations: 0 / 0.8841 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.007677, allocations: 4 kB / 0.8841 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.007678, allocations: 0 / 0.8841 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.007678, allocations: 0 / 0.8841 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.597e-05/0.007764, allocations: 96.22 kB / 0.8842 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.232e-05/0.007777, allocations: 15.91 kB / 0.8843 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.007791, allocations: 4 kB / 0.8843 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.845e-05/0.00782, allocations: 11.98 kB / 0.8843 GB, free: 15.72 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.672e-05/0.007856, allocations: 3.938 kB / 0.8843 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.007875, allocations: 7.984 kB / 0.8843 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.108e-05/0.007966, allocations: 185.8 kB / 0.8845 GB, free: 15.53 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.007966, allocations: 0 / 0.8845 GB, free: 15.53 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001786/0.008145, allocations: 31.89 kB / 0.8845 GB, free: 15.5 MB / 0.8542 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.0001838/0.008328, allocations: 126.6 kB / 0.8846 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001026/0.008431, allocations: 23.61 kB / 0.8846 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.008432, allocations: 0 / 0.8846 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.345e-05/0.008456, allocations: 19.62 kB / 0.8847 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002068/0.008663, allocations: 42.66 kB / 0.8847 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005532/0.009216, allocations: 275.5 kB / 0.885 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.81e-05/0.009254, allocations: 71.33 kB / 0.885 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.52e-05/0.009299, allocations: 16.47 kB / 0.885 GB, free: 14.87 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.365e-05/0.009333, allocations: 20.5 kB / 0.8851 GB, free: 14.85 MB / 0.8542 GB Notification: Performance of SimCode: time 8.72e-07/0.009334, allocations: 0 / 0.8851 GB, free: 14.85 MB / 0.8542 GB Notification: Performance of Templates: time 0.003629/0.01296, allocations: 1.796 MB / 0.8868 GB, free: 13.1 MB / 0.8542 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.343388845212758]