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.001057/0.001057, allocations: 73.97 kB / 20.66 MB, free: 3.84 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.001207/0.001207, allocations: 173 kB / 24.06 MB, free: 452 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.9992/0.9992, allocations: 177.1 MB / 204.5 MB, free: 5.496 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.097/2.097, allocations: 429.5 MB / 0.6743 GB, free: 3.898 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.713e-06/1.713e-06, allocations: 0 / 0.8794 GB, free: 6.039 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.779e-05/1.951e-05, allocations: 2.312 kB / 0.8794 GB, free: 6.035 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002938/0.002958, allocations: 1.707 MB / 0.881 GB, free: 4.344 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00116/0.004117, allocations: 0.5997 MB / 0.8816 GB, free: 3.742 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.89e-05/0.004216, allocations: 7.938 kB / 0.8816 GB, free: 3.734 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001817/0.004398, allocations: 23.77 kB / 0.8816 GB, free: 3.711 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002563/0.004654, allocations: 68.75 kB / 0.8817 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002218/0.004876, allocations: 76.86 kB / 0.8818 GB, free: 3.57 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001974/0.005074, allocations: 135.5 kB / 0.8819 GB, free: 3.438 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.005213, allocations: 39.06 kB / 0.8819 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.005401, allocations: 79.75 kB / 0.882 GB, free: 3.32 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.005504, allocations: 51.81 kB / 0.8821 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.051e-05/0.005535, allocations: 8 kB / 0.8821 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.571e-05/0.00561, allocations: 33.25 kB / 0.8821 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 8.481e-05/0.005695, allocations: 47.83 kB / 0.8822 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.113e-05/0.005736, allocations: 27.94 kB / 0.8822 GB, free: 3.156 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001937/0.00593, allocations: 126.7 kB / 0.8823 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.005932, allocations: 0 / 0.8823 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.12e-07/0.005933, allocations: 0 / 0.8823 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.818e-06/0.005937, allocations: 0 / 0.8823 GB, free: 3.035 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.0004937/0.00643, allocations: 495.6 kB / 0.8828 GB, free: 2.516 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.006462, allocations: 12.03 kB / 0.8828 GB, free: 2.504 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.00661, allocations: 28.8 kB / 0.8828 GB, free: 2.477 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002391/0.006849, allocations: 198.4 kB / 0.883 GB, free: 2.258 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.00686, allocations: 384 / 0.883 GB, free: 2.258 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.006876, allocations: 8.375 kB / 0.883 GB, free: 2.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.007043, allocations: 135 kB / 0.8831 GB, free: 2.102 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.007051, allocations: 4.188 kB / 0.8831 GB, free: 2.098 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.007061, allocations: 384 / 0.8831 GB, free: 2.098 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.007068, allocations: 3.938 kB / 0.8832 GB, free: 2.094 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.487e-05/0.007103, allocations: 19.92 kB / 0.8832 GB, free: 2.074 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.007495, allocations: 324.1 kB / 0.8835 GB, free: 1.73 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.975e-05/0.007545, allocations: 31.06 kB / 0.8835 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.796e-05/0.007563, allocations: 7.688 kB / 0.8835 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.007574, allocations: 0 / 0.8835 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/0.007699, allocations: 135.8 kB / 0.8836 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.0077, allocations: 0 / 0.8836 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001448/0.007845, allocations: 57.53 kB / 0.8837 GB, free: 1.445 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.718e-05/0.007882, allocations: 77.11 kB / 0.8838 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001736/0.008056, allocations: 262.6 kB / 0.884 GB, free: 1.078 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.008072, allocations: 29.69 kB / 0.8841 GB, free: 1.043 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.391e-05/0.008155, allocations: 178.7 kB / 0.8842 GB, free: 0.8633 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.008174, allocations: 7.953 kB / 0.8842 GB, free: 0.8555 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.836e-05/0.008212, allocations: 19.36 kB / 0.8842 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.008353, allocations: 0.5078 MB / 0.8847 GB, free: 316 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.344e-05/0.008366, allocations: 0 / 0.8847 GB, free: 316 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.938e-05/0.008415, allocations: 64.44 kB / 0.8848 GB, free: 228 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.894e-05/0.008464, allocations: 39.02 kB / 0.8848 GB, free: 176 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.008466, allocations: 4 kB / 0.8848 GB, free: 172 kB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.57e-05/0.008562, allocations: 57.55 kB / 0.8849 GB, free: 108 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.008577, allocations: 14.48 kB / 0.8849 GB, free: 96 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.008582, allocations: 4 kB / 0.8849 GB, free: 92 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.008591, allocations: 0 / 0.8849 GB, free: 92 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.422e-05/0.008655, allocations: 8 kB / 0.8849 GB, free: 84 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.605e-06/0.008658, allocations: 0 / 0.8849 GB, free: 84 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.27e-05/0.00871, allocations: 19.81 kB / 0.8849 GB, free: 64 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.954e-06/0.008718, allocations: 8.094 kB / 0.885 GB, free: 56 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 9.509e-05/0.008813, allocations: 160.5 kB / 0.8851 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.00884, allocations: 19.91 kB / 0.8851 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.065e-05/0.008871, allocations: 21.02 kB / 0.8851 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.008873, allocations: 0 / 0.8851 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.008874, allocations: 0 / 0.8851 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.008877, allocations: 0 / 0.8851 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.008996, allocations: 133.1 kB / 0.8853 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.008997, allocations: 0 / 0.8853 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.606e-05/0.009033, allocations: 7.984 kB / 0.8853 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.009035, allocations: 0 / 0.8853 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.00904, allocations: 4.281 kB / 0.8853 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.009044, allocations: 4 kB / 0.8853 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.009045, allocations: 0 / 0.8853 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000105/0.00915, allocations: 96.2 kB / 0.8854 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.502e-05/0.009165, allocations: 11.91 kB / 0.8854 GB, free: 15.54 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.009183, allocations: 4 kB / 0.8854 GB, free: 15.54 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.278e-05/0.009225, allocations: 7.984 kB / 0.8854 GB, free: 15.53 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.195e-05/0.009257, allocations: 4 kB / 0.8854 GB, free: 15.53 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/0.009277, allocations: 7.984 kB / 0.8854 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001019/0.009379, allocations: 177.7 kB / 0.8856 GB, free: 15.35 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.009379, allocations: 4 kB / 0.8856 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002381/0.009617, allocations: 27.95 kB / 0.8856 GB, free: 15.32 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.0001829/0.0098, allocations: 125.4 kB / 0.8857 GB, free: 15.19 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 8.781e-05/0.009888, allocations: 19.61 kB / 0.8858 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.00989, allocations: 8.188 kB / 0.8858 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.54e-05/0.009915, allocations: 11.69 kB / 0.8858 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.01017, allocations: 42.39 kB / 0.8858 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005464/0.01072, allocations: 267.4 kB / 0.8861 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.777e-05/0.01077, allocations: 75.33 kB / 0.8861 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.955e-05/0.01082, allocations: 8.484 kB / 0.8861 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.977e-05/0.01092, allocations: 102.1 kB / 0.8862 GB, free: 14.6 MB / 0.8542 GB Notification: Performance of SimCode: time 5.21e-07/0.01092, allocations: 4 kB / 0.8862 GB, free: 14.6 MB / 0.8542 GB Notification: Performance of Templates: time 0.004591/0.01551, allocations: 1.969 MB / 0.8882 GB, free: 12.67 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.2957565928809345]