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.0009669/0.0009669, 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.0009723/0.0009723, allocations: 173 kB / 23.03 MB, free: 1.547 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.9463/0.9463, allocations: 177.1 MB / 203.4 MB, free: 5.645 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.036/2.036, allocations: 429.5 MB / 0.6732 GB, free: 4.043 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.914e-06/1.914e-06, allocations: 0 / 0.8781 GB, free: 6.359 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.498e-05/2.689e-05, allocations: 2.875 kB / 0.8781 GB, free: 6.355 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003159/0.003186, allocations: 1.709 MB / 0.8798 GB, free: 4.66 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.004298, allocations: 0.6103 MB / 0.8804 GB, free: 4.047 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.004407, allocations: 5.531 kB / 0.8804 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.004617, allocations: 23.73 kB / 0.8804 GB, free: 4.02 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002922/0.004909, allocations: 73.83 kB / 0.8805 GB, free: 3.949 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.005184, allocations: 75.84 kB / 0.8806 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002274/0.005411, allocations: 135.5 kB / 0.8807 GB, free: 3.742 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/0.005567, allocations: 33.61 kB / 0.8807 GB, free: 3.707 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.005787, allocations: 79.8 kB / 0.8808 GB, free: 3.629 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.005904, allocations: 54.06 kB / 0.8809 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.088e-05/0.005935, allocations: 8 kB / 0.8809 GB, free: 3.57 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.758e-05/0.006012, allocations: 27.92 kB / 0.8809 GB, free: 3.543 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 9.727e-05/0.006109, allocations: 51.83 kB / 0.881 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.976e-05/0.006159, allocations: 35.84 kB / 0.881 GB, free: 3.457 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002208/0.00638, allocations: 115.5 kB / 0.8811 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.006382, allocations: 0.7188 kB / 0.8811 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.82e-07/0.006383, allocations: 0 / 0.8811 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.006388, allocations: 5.594 kB / 0.8811 GB, free: 3.34 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.0005706/0.006958, allocations: 491.6 kB / 0.8816 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.007006, allocations: 8.031 kB / 0.8816 GB, free: 2.816 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001697/0.007175, allocations: 38.12 kB / 0.8816 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.007447, allocations: 192.2 kB / 0.8818 GB, free: 2.566 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.00746, allocations: 4.375 kB / 0.8818 GB, free: 2.562 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.01e-05/0.00748, allocations: 8.375 kB / 0.8818 GB, free: 2.555 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002223/0.007702, allocations: 138.3 kB / 0.8819 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.007711, allocations: 192 / 0.8819 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.007725, allocations: 384 / 0.8819 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.007736, allocations: 7.938 kB / 0.882 GB, free: 2.391 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.895e-05/0.007785, allocations: 11.98 kB / 0.882 GB, free: 2.379 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004871/0.008272, allocations: 359.5 kB / 0.8823 GB, free: 1.992 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.668e-05/0.008329, allocations: 27.06 kB / 0.8823 GB, free: 1.953 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.795e-05/0.008357, allocations: 15.73 kB / 0.8823 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/0.008369, allocations: 0 / 0.8823 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001574/0.008527, allocations: 135.8 kB / 0.8825 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.008528, allocations: 0 / 0.8825 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001868/0.008715, allocations: 57.59 kB / 0.8825 GB, free: 1.703 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.008754, allocations: 77.11 kB / 0.8826 GB, free: 1.609 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.008959, allocations: 262.7 kB / 0.8829 GB, free: 1.336 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.008976, allocations: 29.64 kB / 0.8829 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.008e-05/0.009066, allocations: 182.7 kB / 0.8831 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.009087, allocations: 15.89 kB / 0.8831 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.035e-05/0.009127, allocations: 19.38 kB / 0.8831 GB, free: 1.074 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.00928, allocations: 0.5039 MB / 0.8836 GB, free: 0.5586 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.998e-05/0.0093, allocations: 0 / 0.8836 GB, free: 0.5586 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.427e-05/0.009364, allocations: 64.45 kB / 0.8836 GB, free: 484 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.468e-05/0.009419, allocations: 35 kB / 0.8837 GB, free: 436 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.009421, allocations: 0 / 0.8837 GB, free: 436 kB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001087/0.00953, allocations: 69.62 kB / 0.8837 GB, free: 360 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.009544, allocations: 4 kB / 0.8837 GB, free: 356 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.00955, allocations: 4 kB / 0.8838 GB, free: 352 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.009564, allocations: 0 / 0.8838 GB, free: 352 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.405e-05/0.009648, allocations: 7.984 kB / 0.8838 GB, free: 344 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.009654, allocations: 4 kB / 0.8838 GB, free: 340 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.3e-05/0.009707, allocations: 15.88 kB / 0.8838 GB, free: 324 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.009716, allocations: 7.938 kB / 0.8838 GB, free: 316 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 8.969e-05/0.009806, allocations: 160.9 kB / 0.8839 GB, free: 144 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.159e-05/0.009838, allocations: 15.91 kB / 0.884 GB, free: 128 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.438e-05/0.009872, allocations: 25.03 kB / 0.884 GB, free: 100 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.009874, allocations: 0 / 0.884 GB, free: 100 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.009878, allocations: 4 kB / 0.884 GB, free: 96 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.009882, allocations: 0 / 0.884 GB, free: 96 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.01006, allocations: 164.6 kB / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.01006, allocations: 0 / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.416e-05/0.01011, allocations: 11.92 kB / 0.8842 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.01011, allocations: 0 / 0.8842 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.01012, allocations: 0 / 0.8842 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.01012, allocations: 4 kB / 0.8842 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01012, allocations: 0 / 0.8842 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001187/0.01024, allocations: 96.28 kB / 0.8842 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.679e-05/0.01026, allocations: 11.91 kB / 0.8843 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.01028, allocations: 0 / 0.8843 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.089e-05/0.01032, allocations: 7.984 kB / 0.8843 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.489e-05/0.01036, allocations: 11.98 kB / 0.8843 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.01038, allocations: 4 kB / 0.8843 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001163/0.0105, allocations: 185.8 kB / 0.8845 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of sort global known variables: time 9e-08/0.0105, allocations: 0 / 0.8845 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002312/0.01073, allocations: 23.89 kB / 0.8845 GB, free: 15.52 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.0002227/0.01095, allocations: 134.5 kB / 0.8846 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001106/0.01106, allocations: 27.55 kB / 0.8846 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.01107, allocations: 0 / 0.8846 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.562e-05/0.01109, allocations: 11.69 kB / 0.8846 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.01137, allocations: 46.72 kB / 0.8847 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007741/0.01215, allocations: 275.5 kB / 0.885 GB, free: 15 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.734e-05/0.01219, allocations: 71.33 kB / 0.885 GB, free: 14.91 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.503e-05/0.01226, allocations: 20.59 kB / 0.885 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.403e-05/0.0123, allocations: 20.48 kB / 0.8851 GB, free: 14.87 MB / 0.8542 GB Notification: Performance of SimCode: time 5.91e-07/0.0123, allocations: 0 / 0.8851 GB, free: 14.87 MB / 0.8542 GB Notification: Performance of Templates: time 0.00505/0.01735, allocations: 1.895 MB / 0.8869 GB, free: 13.02 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.179267884232104]