Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009075/0.0009075, allocations: 81.86 kB / 20.68 MB, free: 3.816 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.0009457/0.0009457, allocations: 185 kB / 24.09 MB, free: 416 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.9602/0.9602, allocations: 177.1 MB / 204.5 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.92/1.92, allocations: 377.9 MB / 0.624 GB, free: 8.383 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 0.812 GB, free: 1.469 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.44e-05/2.583e-05, allocations: 11.44 kB / 0.812 GB, free: 1.457 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002432/0.002458, allocations: 1.696 MB / 0.8136 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.000923/0.003381, allocations: 0.6027 MB / 0.8142 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.083e-05/0.003462, allocations: 7.938 kB / 0.8142 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.003674, allocations: 28.77 kB / 0.8143 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.003879, allocations: 63.61 kB / 0.8143 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001566/0.004036, allocations: 76.62 kB / 0.8144 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001425/0.004178, allocations: 137.2 kB / 0.8145 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.004311, allocations: 33.55 kB / 0.8146 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.004477, allocations: 79.8 kB / 0.8146 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 8.909e-05/0.004566, allocations: 51.81 kB / 0.8147 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.004587, allocations: 9.531 kB / 0.8147 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 5.874e-05/0.004646, allocations: 27.98 kB / 0.8147 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.603e-05/0.004712, allocations: 47.83 kB / 0.8148 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.151e-05/0.004744, allocations: 31.86 kB / 0.8148 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001586/0.004902, allocations: 124.8 kB / 0.8149 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.004905, allocations: 0 / 0.8149 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.42e-07/0.004906, allocations: 0 / 0.8149 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.004913, allocations: 4 kB / 0.8149 GB, free: 14.45 MB / 0.7761 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.0004417/0.005354, allocations: 0.4895 MB / 0.8154 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.005391, allocations: 8.031 kB / 0.8154 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.005515, allocations: 28.83 kB / 0.8154 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001898/0.005705, allocations: 193.6 kB / 0.8156 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.005714, allocations: 0.9062 kB / 0.8156 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.005727, allocations: 12.38 kB / 0.8156 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001523/0.005879, allocations: 127.7 kB / 0.8158 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-06/0.005886, allocations: 4.125 kB / 0.8158 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.005895, allocations: 4.375 kB / 0.8158 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.005901, allocations: 6.531 kB / 0.8158 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.293e-05/0.005924, allocations: 15.98 kB / 0.8158 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002883/0.006213, allocations: 324 kB / 0.8161 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 3.361e-05/0.006246, allocations: 31.05 kB / 0.8161 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.477e-05/0.006261, allocations: 7.688 kB / 0.8161 GB, free: 13.1 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.006275, allocations: 0 / 0.8161 GB, free: 13.1 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001097/0.006384, allocations: 132.4 kB / 0.8163 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 4.158e-06/0.006389, allocations: 4.656 kB / 0.8163 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0001303/0.006519, allocations: 53.59 kB / 0.8163 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.006555, allocations: 77.64 kB / 0.8164 GB, free: 12.78 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.006684, allocations: 260.3 kB / 0.8166 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.22e-05/0.006696, allocations: 29.7 kB / 0.8167 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.776e-05/0.006764, allocations: 186.7 kB / 0.8168 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.006781, allocations: 7.938 kB / 0.8168 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.704e-05/0.006808, allocations: 23.31 kB / 0.8169 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.006922, allocations: 0.5044 MB / 0.8174 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.081e-05/0.006933, allocations: 4.578 kB / 0.8174 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.567e-05/0.006969, allocations: 65.17 kB / 0.8174 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.507e-05/0.007004, allocations: 32.22 kB / 0.8175 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.007005, allocations: 0 / 0.8175 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.858e-05/0.007074, allocations: 67.16 kB / 0.8175 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.007085, allocations: 4 kB / 0.8175 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.007089, allocations: 0 / 0.8175 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.007101, allocations: 0.9062 kB / 0.8175 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.568e-05/0.007157, allocations: 15.92 kB / 0.8175 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-06/0.007159, allocations: 0.8438 kB / 0.8175 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.169e-05/0.007191, allocations: 11.94 kB / 0.8176 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.007197, allocations: 6.219 kB / 0.8176 GB, free: 11.49 MB / 0.7761 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.938e-05/0.007267, allocations: 168.5 kB / 0.8177 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.734e-05/0.007284, allocations: 19.86 kB / 0.8177 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.985e-05/0.007314, allocations: 13.03 kB / 0.8178 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.007315, allocations: 0 / 0.8178 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.007317, allocations: 0 / 0.8178 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.00732, allocations: 2.781 kB / 0.8178 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.055e-05/0.00741, allocations: 141.1 kB / 0.8179 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.007412, allocations: 0 / 0.8179 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.368e-05/0.007435, allocations: 4 kB / 0.8179 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.007436, allocations: 4 kB / 0.8179 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.157e-06/0.00744, allocations: 0 / 0.8179 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.007441, allocations: 0 / 0.8179 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.007442, allocations: 1.469 kB / 0.8179 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.221e-05/0.007524, allocations: 96.22 kB / 0.818 GB, free: 11 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.146e-05/0.007536, allocations: 15.89 kB / 0.818 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.007547, allocations: 4 kB / 0.818 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.56e-05/0.007573, allocations: 4.5 kB / 0.818 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.547e-05/0.007598, allocations: 4.703 kB / 0.818 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.007612, allocations: 4 kB / 0.818 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.717e-05/0.007679, allocations: 187.4 kB / 0.8182 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.007679, allocations: 0 / 0.8182 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001327/0.007812, allocations: 23.98 kB / 0.8182 GB, free: 10.76 MB / 0.7761 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.0001525/0.007964, allocations: 129.3 kB / 0.8183 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 7.136e-05/0.008036, allocations: 23.61 kB / 0.8184 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.008037, allocations: 0.6562 kB / 0.8184 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.68e-05/0.008054, allocations: 12.22 kB / 0.8184 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001871/0.008241, allocations: 54.77 kB / 0.8184 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005058/0.008747, allocations: 271.4 kB / 0.8187 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.235e-05/0.008789, allocations: 67.33 kB / 0.8188 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.921e-05/0.008828, allocations: 16.42 kB / 0.8188 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.798e-05/0.008906, allocations: 94.17 kB / 0.8189 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of SimCode: time 7.01e-07/0.008907, allocations: 1.594 kB / 0.8189 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of Templates: time 0.003398/0.01231, allocations: 1.932 MB / 0.8208 GB, free: 8.172 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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: 4.965736581943929]