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.001841/0.001841, allocations: 93.47 kB / 19.44 MB, free: 336 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.001995/0.001995, allocations: 169.6 kB / 22.76 MB, free: 1.664 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 1.542/1.542, allocations: 177.1 MB / 203.1 MB, free: 5.25 MB / 186.7 MB " [Timeout remaining time 178] 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 3.367/3.367, allocations: 429.5 MB / 0.6729 GB, free: 4.012 MB / 0.6355 GB " [Timeout remaining time 176] 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.532e-06/1.532e-06, allocations: 0 / 0.8774 GB, free: 6.66 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.186e-05/3.339e-05, allocations: 6.25 kB / 0.8774 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.004654/0.004688, allocations: 1.687 MB / 0.8791 GB, free: 4.98 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001653/0.006341, allocations: 0.589 MB / 0.8796 GB, free: 4.391 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.949e-05/0.006431, allocations: 4 kB / 0.8796 GB, free: 4.387 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0002233/0.006654, allocations: 35.66 kB / 0.8797 GB, free: 4.352 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0003371/0.006991, allocations: 55.69 kB / 0.8797 GB, free: 4.297 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003154/0.007306, allocations: 83.23 kB / 0.8798 GB, free: 4.219 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002992/0.007606, allocations: 135.5 kB / 0.8799 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.007772, allocations: 29.66 kB / 0.88 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000266/0.008038, allocations: 79.75 kB / 0.88 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.008191, allocations: 55.81 kB / 0.8801 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 5.063e-05/0.008241, allocations: 8 kB / 0.8801 GB, free: 3.914 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.008344, allocations: 31.91 kB / 0.8801 GB, free: 3.883 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.00848, allocations: 47.83 kB / 0.8802 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 8.591e-05/0.008566, allocations: 32.8 kB / 0.8802 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003297/0.008896, allocations: 143.5 kB / 0.8804 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.008902, allocations: 9.062 kB / 0.8804 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.372e-06/0.008903, allocations: 0 / 0.8804 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.008908, allocations: 0 / 0.8804 GB, free: 3.656 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.000955/0.009863, allocations: 0.4924 MB / 0.8808 GB, free: 3.129 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.009903, allocations: 8.031 kB / 0.8809 GB, free: 3.121 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002531/0.01016, allocations: 33.95 kB / 0.8809 GB, free: 3.09 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004217/0.01058, allocations: 193.1 kB / 0.8811 GB, free: 2.875 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.0106, allocations: 12.91 kB / 0.8811 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.414e-05/0.01063, allocations: 8.375 kB / 0.8811 GB, free: 2.855 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003459/0.01097, allocations: 130.5 kB / 0.8812 GB, free: 2.711 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.01098, allocations: 192 / 0.8812 GB, free: 2.711 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.011, allocations: 5.469 kB / 0.8812 GB, free: 2.707 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.01102, allocations: 11.92 kB / 0.8812 GB, free: 2.695 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.01125, allocations: 37.03 kB / 0.8813 GB, free: 2.66 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008273/0.01208, allocations: 367.5 kB / 0.8816 GB, free: 2.266 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.01224, allocations: 36.14 kB / 0.8816 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.01235, allocations: 24.39 kB / 0.8817 GB, free: 2.191 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.01237, allocations: 4 kB / 0.8817 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003342/0.01271, allocations: 156.7 kB / 0.8818 GB, free: 2 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.01271, allocations: 0 / 0.8818 GB, free: 2 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0004906/0.0132, allocations: 86.83 kB / 0.8819 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.313e-05/0.01328, allocations: 81.09 kB / 0.882 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004501/0.01373, allocations: 302.1 kB / 0.8823 GB, free: 1.504 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.01376, allocations: 25.7 kB / 0.8823 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.01395, allocations: 186.7 kB / 0.8825 GB, free: 1.285 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.01398, allocations: 7.891 kB / 0.8825 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.228e-05/0.01405, allocations: 23.38 kB / 0.8825 GB, free: 1.246 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0003818/0.01443, allocations: 0.5078 MB / 0.883 GB, free: 0.7266 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.01454, allocations: 12 kB / 0.883 GB, free: 0.7148 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.01472, allocations: 84.38 kB / 0.8831 GB, free: 0.6094 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002483/0.01497, allocations: 61.06 kB / 0.8832 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.01497, allocations: 0 / 0.8832 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003379/0.01531, allocations: 87.83 kB / 0.8832 GB, free: 460 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.01533, allocations: 4 kB / 0.8832 GB, free: 456 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.01533, allocations: 0 / 0.8832 GB, free: 456 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.01535, allocations: 4 kB / 0.8832 GB, free: 452 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.01547, allocations: 12.11 kB / 0.8833 GB, free: 440 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.01547, allocations: 0 / 0.8833 GB, free: 440 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.01558, allocations: 11.95 kB / 0.8833 GB, free: 428 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.0156, allocations: 3.938 kB / 0.8833 GB, free: 424 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 0.0001821/0.01578, allocations: 164.6 kB / 0.8834 GB, free: 248 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.01584, allocations: 19.91 kB / 0.8834 GB, free: 228 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.283e-05/0.01589, allocations: 17.03 kB / 0.8835 GB, free: 208 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.01589, allocations: 0 / 0.8835 GB, free: 208 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.0159, allocations: 0 / 0.8835 GB, free: 208 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.0159, allocations: 3.984 kB / 0.8835 GB, free: 204 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002968/0.0162, allocations: 180.5 kB / 0.8836 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.0162, allocations: 0 / 0.8836 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.871e-05/0.01629, allocations: 7.984 kB / 0.8836 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.01629, allocations: 7.938 kB / 0.8837 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.0163, allocations: 0 / 0.8837 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.0163, allocations: 0 / 0.8837 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.0163, allocations: 0 / 0.8837 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003577/0.01666, allocations: 116.5 kB / 0.8838 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.52e-05/0.01671, allocations: 15.94 kB / 0.8838 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.01674, allocations: 8 kB / 0.8838 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.704e-05/0.01684, allocations: 11.98 kB / 0.8838 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.321e-05/0.0169, allocations: 7.984 kB / 0.8838 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.951e-05/0.01693, allocations: 4 kB / 0.8838 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002761/0.0172, allocations: 201.8 kB / 0.884 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.3e-07/0.0172, allocations: 0 / 0.884 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004023/0.01761, allocations: 27.89 kB / 0.884 GB, free: 15.57 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.0003776/0.01798, allocations: 125.1 kB / 0.8841 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003224/0.01831, allocations: 55.53 kB / 0.8842 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.01831, allocations: 3.984 kB / 0.8842 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.01845, allocations: 23.67 kB / 0.8842 GB, free: 15.35 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004718/0.01892, allocations: 44.12 kB / 0.8843 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007647/0.01968, allocations: 279.5 kB / 0.8845 GB, free: 15 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/0.01984, allocations: 102.1 kB / 0.8846 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.245e-05/0.01993, allocations: 20.45 kB / 0.8847 GB, free: 14.87 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.369e-05/0.01999, allocations: 20.5 kB / 0.8847 GB, free: 14.85 MB / 0.8542 GB Notification: Performance of SimCode: time 5.11e-07/0.01999, allocations: 0 / 0.8847 GB, free: 14.85 MB / 0.8542 GB Notification: Performance of Templates: time 0.008147/0.02814, allocations: 1.791 MB / 0.8864 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.391809328924865]