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.0009629/0.0009629, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.0009935/0.0009935, allocations: 173 kB / 23.49 MB, free: 1.055 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.9339/0.9339, allocations: 177.1 MB / 203.8 MB, free: 5.641 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.09/2.09, allocations: 429.5 MB / 0.6736 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 2.204e-06/2.204e-06, allocations: 0 / 0.8782 GB, free: 5.551 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.095e-05/3.315e-05, allocations: 2.312 kB / 0.8782 GB, free: 5.547 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003462/0.003495, allocations: 1.702 MB / 0.8798 GB, free: 3.855 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0012/0.004695, allocations: 0.5991 MB / 0.8804 GB, free: 3.258 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.004836, allocations: 7.938 kB / 0.8804 GB, free: 3.25 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0002243/0.005061, allocations: 21.92 kB / 0.8804 GB, free: 3.23 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.0003053/0.005366, allocations: 61.31 kB / 0.8805 GB, free: 3.172 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002779/0.005644, allocations: 80.88 kB / 0.8806 GB, free: 3.094 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0002554/0.005899, allocations: 151.4 kB / 0.8807 GB, free: 2.945 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.006066, allocations: 26.73 kB / 0.8807 GB, free: 2.918 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002423/0.006309, allocations: 83.73 kB / 0.8808 GB, free: 2.836 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.006434, allocations: 56.98 kB / 0.8809 GB, free: 2.781 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/0.006465, allocations: 8 kB / 0.8809 GB, free: 2.773 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 8.065e-05/0.006546, allocations: 16 kB / 0.8809 GB, free: 2.758 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.006654, allocations: 48.7 kB / 0.8809 GB, free: 2.711 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 6.939e-05/0.006724, allocations: 43.84 kB / 0.881 GB, free: 2.668 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0002526/0.006976, allocations: 121.2 kB / 0.8811 GB, free: 2.551 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.00698, allocations: 0 / 0.8811 GB, free: 2.551 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.072e-06/0.006981, allocations: 0 / 0.8811 GB, free: 2.551 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.006987, allocations: 0 / 0.8811 GB, free: 2.551 MB / 0.7917 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.0006371/0.007624, allocations: 0.4883 MB / 0.8816 GB, free: 2.027 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.007672, allocations: 9.875 kB / 0.8816 GB, free: 2.02 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002016/0.007873, allocations: 28.83 kB / 0.8816 GB, free: 1.992 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.008188, allocations: 197.5 kB / 0.8818 GB, free: 1.773 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.008201, allocations: 384 / 0.8818 GB, free: 1.773 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.017e-05/0.008221, allocations: 8.375 kB / 0.8818 GB, free: 1.766 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002594/0.008481, allocations: 134.5 kB / 0.8819 GB, free: 1.617 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.00849, allocations: 192 / 0.8819 GB, free: 1.617 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.008508, allocations: 8.375 kB / 0.882 GB, free: 1.609 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.008518, allocations: 9.469 kB / 0.882 GB, free: 1.602 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.033e-05/0.008578, allocations: 11.98 kB / 0.882 GB, free: 1.59 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005773/0.009156, allocations: 351.5 kB / 0.8823 GB, free: 1.211 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 6.292e-05/0.009219, allocations: 29.69 kB / 0.8823 GB, free: 1.172 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.141e-05/0.00925, allocations: 11.69 kB / 0.8823 GB, free: 1.156 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.009264, allocations: 0 / 0.8823 GB, free: 1.156 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001703/0.009435, allocations: 135.8 kB / 0.8825 GB, free: 0.9883 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.009436, allocations: 0 / 0.8825 GB, free: 0.9883 MB / 0.7917 GB Notification: Performance of matching and sorting (n=3): time 0.000219/0.009655, allocations: 57.53 kB / 0.8825 GB, free: 0.9258 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.009704, allocations: 77.11 kB / 0.8826 GB, free: 0.832 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.009948, allocations: 276.6 kB / 0.8829 GB, free: 0.5469 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.009966, allocations: 25.7 kB / 0.8829 GB, free: 0.5156 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 9.788e-05/0.01006, allocations: 174.8 kB / 0.8831 GB, free: 348 kB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 2.42e-05/0.01009, allocations: 7.953 kB / 0.8831 GB, free: 340 kB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.667e-05/0.01013, allocations: 27.36 kB / 0.8831 GB, free: 304 kB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.0103, allocations: 0.5007 MB / 0.8836 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.556e-05/0.01033, allocations: 0 / 0.8836 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.088e-05/0.01039, allocations: 65 kB / 0.8836 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.648e-05/0.01045, allocations: 39.97 kB / 0.8837 GB, free: 15.65 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.01046, allocations: 4.031 kB / 0.8837 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001373/0.01059, allocations: 65.53 kB / 0.8837 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.01061, allocations: 4 kB / 0.8838 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.01062, allocations: 0 / 0.8838 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.01063, allocations: 4 kB / 0.8838 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.01074, allocations: 8 kB / 0.8838 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.01074, allocations: 3.938 kB / 0.8838 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.584e-05/0.01081, allocations: 19.88 kB / 0.8838 GB, free: 15.54 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.01082, allocations: 8.031 kB / 0.8838 GB, free: 15.53 MB / 0.8073 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.736e-05/0.01092, allocations: 156.6 kB / 0.8839 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/0.01095, allocations: 19.91 kB / 0.884 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.462e-05/0.011, allocations: 17.3 kB / 0.884 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.011, allocations: 0 / 0.884 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.01101, allocations: 3.984 kB / 0.884 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.01101, allocations: 4 kB / 0.884 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000163/0.01117, allocations: 168.5 kB / 0.8841 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.01118, allocations: 0 / 0.8841 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.473e-05/0.01123, allocations: 4 kB / 0.8842 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.01123, allocations: 4 kB / 0.8842 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.01124, allocations: 4 kB / 0.8842 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.01125, allocations: 0 / 0.8842 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.01125, allocations: 4 kB / 0.8842 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001531/0.0114, allocations: 92.22 kB / 0.8843 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.256e-05/0.01142, allocations: 23.83 kB / 0.8843 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.23e-05/0.01145, allocations: 0 / 0.8843 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.659e-05/0.0115, allocations: 4 kB / 0.8843 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.135e-05/0.01155, allocations: 7.984 kB / 0.8843 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.01158, allocations: 4 kB / 0.8843 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0001584/0.01174, allocations: 197.5 kB / 0.8845 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.2e-07/0.01174, allocations: 4 kB / 0.8845 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.00027/0.01201, allocations: 19.95 kB / 0.8845 GB, free: 14.73 MB / 0.8073 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.0002601/0.01227, allocations: 121.3 kB / 0.8846 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.000136/0.0124, allocations: 23.56 kB / 0.8846 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.01241, allocations: 8.188 kB / 0.8846 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.106e-05/0.01245, allocations: 15.67 kB / 0.8847 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.01277, allocations: 40.61 kB / 0.8847 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00083/0.0136, allocations: 267.2 kB / 0.885 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.456e-05/0.01365, allocations: 71.33 kB / 0.885 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 7.659e-05/0.01373, allocations: 20.45 kB / 0.885 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.741e-05/0.01378, allocations: 20.5 kB / 0.8851 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of SimCode: time 9.72e-07/0.01378, allocations: 0 / 0.8851 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of Templates: time 0.005429/0.01921, allocations: 1.803 MB / 0.8868 GB, free: 12.33 MB / 0.8073 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.23302686191164]