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.001423/0.001423, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.001549/0.001549, allocations: 161.7 kB / 23.55 MB, free: 0.8906 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.448/1.448, allocations: 177.1 MB / 203.9 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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 2.858/2.858, allocations: 377.8 MB / 0.6232 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 177] 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.683e-06/1.683e-06, allocations: 0 / 0.8108 GB, free: 0.9961 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.556e-05/2.724e-05, allocations: 2.312 kB / 0.8108 GB, free: 0.9922 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003333/0.00336, allocations: 1.654 MB / 0.8124 GB, free: 15.35 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.001266/0.004626, allocations: 0.5845 MB / 0.813 GB, free: 14.76 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.004733, allocations: 0 / 0.813 GB, free: 14.76 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0002034/0.004937, allocations: 40.25 kB / 0.813 GB, free: 14.72 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.005214, allocations: 60.55 kB / 0.8131 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.005466, allocations: 79.78 kB / 0.8131 GB, free: 14.59 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0002489/0.005715, allocations: 136.8 kB / 0.8133 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.005859, allocations: 29.66 kB / 0.8133 GB, free: 14.42 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002211/0.006081, allocations: 79.8 kB / 0.8134 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.006197, allocations: 53.59 kB / 0.8134 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 3.229e-05/0.00623, allocations: 8 kB / 0.8134 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 9.02e-05/0.00632, allocations: 31.86 kB / 0.8135 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.006424, allocations: 47.83 kB / 0.8135 GB, free: 14.21 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 6.204e-05/0.006486, allocations: 33.05 kB / 0.8135 GB, free: 14.18 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0002737/0.006759, allocations: 143.5 kB / 0.8137 GB, free: 14.04 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.006763, allocations: 0 / 0.8137 GB, free: 14.04 MB / 0.7292 GB Notification: Performance of FrontEnd: time 9.42e-07/0.006764, allocations: 1.531 kB / 0.8137 GB, free: 14.04 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.006768, allocations: 0 / 0.8137 GB, free: 14.04 MB / 0.7292 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.0007979/0.007566, allocations: 409.2 kB / 0.8141 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.007613, allocations: 12.94 kB / 0.8141 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/0.007814, allocations: 37.55 kB / 0.8141 GB, free: 13.56 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.00817, allocations: 182.6 kB / 0.8143 GB, free: 13.36 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.008184, allocations: 8.312 kB / 0.8143 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.008204, allocations: 9.594 kB / 0.8143 GB, free: 13.34 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003619/0.008566, allocations: 161.6 kB / 0.8145 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.008575, allocations: 0.7188 kB / 0.8145 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.008592, allocations: 4.375 kB / 0.8145 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.008603, allocations: 9.125 kB / 0.8145 GB, free: 13.15 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002534/0.008856, allocations: 60.94 kB / 0.8145 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006245/0.009481, allocations: 317.2 kB / 0.8148 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000164/0.009645, allocations: 36.38 kB / 0.8149 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.009765, allocations: 32.89 kB / 0.8149 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.009782, allocations: 0 / 0.8149 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002936/0.01008, allocations: 149.3 kB / 0.815 GB, free: 12.5 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.01008, allocations: 0 / 0.815 GB, free: 12.5 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0005076/0.01058, allocations: 127.6 kB / 0.8152 GB, free: 12.37 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.01065, allocations: 77.11 kB / 0.8152 GB, free: 12.28 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/0.01094, allocations: 236.8 kB / 0.8155 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.01096, allocations: 29.14 kB / 0.8155 GB, free: 12.01 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.01107, allocations: 139.9 kB / 0.8156 GB, free: 11.87 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.01109, allocations: 7.906 kB / 0.8156 GB, free: 11.86 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.744e-05/0.01114, allocations: 17.72 kB / 0.8157 GB, free: 11.84 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.01131, allocations: 326.8 kB / 0.816 GB, free: 11.51 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.01145, allocations: 23.97 kB / 0.816 GB, free: 11.48 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.0116, allocations: 73.11 kB / 0.8161 GB, free: 11.39 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002359/0.01184, allocations: 72.94 kB / 0.8161 GB, free: 11.32 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.01184, allocations: 0 / 0.8161 GB, free: 11.32 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003183/0.01216, allocations: 108.6 kB / 0.8162 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.01218, allocations: 8 kB / 0.8162 GB, free: 11.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.01218, allocations: 0 / 0.8162 GB, free: 11.2 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.0122, allocations: 3.984 kB / 0.8162 GB, free: 11.2 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.01232, allocations: 12.8 kB / 0.8163 GB, free: 11.18 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.01232, allocations: 3.984 kB / 0.8163 GB, free: 11.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.01243, allocations: 12.92 kB / 0.8163 GB, free: 11.17 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.01244, allocations: 3.938 kB / 0.8163 GB, free: 11.16 MB / 0.7292 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.0001341/0.01257, allocations: 135.1 kB / 0.8164 GB, free: 11.02 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.808e-05/0.01261, allocations: 15.91 kB / 0.8164 GB, free: 11.01 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.121e-05/0.01265, allocations: 17.03 kB / 0.8164 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.01266, allocations: 1.656 kB / 0.8164 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.01266, allocations: 0 / 0.8164 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-06/0.01266, allocations: 4 kB / 0.8164 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001769/0.01284, allocations: 153.2 kB / 0.8166 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.01284, allocations: 0 / 0.8166 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.367e-05/0.01294, allocations: 19.58 kB / 0.8166 GB, free: 10.79 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.01294, allocations: 3.938 kB / 0.8166 GB, free: 10.78 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.01294, allocations: 0 / 0.8166 GB, free: 10.78 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.01295, allocations: 0 / 0.8166 GB, free: 10.78 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.01295, allocations: 4 kB / 0.8166 GB, free: 10.78 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003622/0.01331, allocations: 128.9 kB / 0.8167 GB, free: 10.63 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.213e-05/0.01333, allocations: 12.84 kB / 0.8167 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.01336, allocations: 0 / 0.8167 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.995e-05/0.01345, allocations: 9.016 kB / 0.8168 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.16e-05/0.0135, allocations: 8 kB / 0.8168 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.602e-05/0.01352, allocations: 7.984 kB / 0.8168 GB, free: 10.6 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001984/0.01372, allocations: 174.7 kB / 0.8169 GB, free: 10.43 MB / 0.7292 GB Notification: Performance of sort global known variables: time 7e-08/0.01372, allocations: 0 / 0.8169 GB, free: 10.43 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002432/0.01396, allocations: 24 kB / 0.817 GB, free: 10.41 MB / 0.7292 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.0002895/0.01425, allocations: 125.8 kB / 0.8171 GB, free: 10.28 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003132/0.01457, allocations: 64.64 kB / 0.8171 GB, free: 10.22 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.01457, allocations: 3.938 kB / 0.8171 GB, free: 10.21 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.01469, allocations: 25.95 kB / 0.8172 GB, free: 10.19 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.01502, allocations: 45.86 kB / 0.8172 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006253/0.01564, allocations: 298.3 kB / 0.8175 GB, free: 9.832 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000122/0.01577, allocations: 103.9 kB / 0.8176 GB, free: 9.715 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.46e-05/0.01584, allocations: 17.12 kB / 0.8176 GB, free: 9.695 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.117e-05/0.01589, allocations: 20.5 kB / 0.8176 GB, free: 9.676 MB / 0.7292 GB Notification: Performance of SimCode: time 4.81e-07/0.01589, allocations: 3.438 kB / 0.8176 GB, free: 9.676 MB / 0.7292 GB Notification: Performance of Templates: time 0.005701/0.02159, allocations: 1.782 MB / 0.8194 GB, free: 7.941 MB / 0.7292 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 7.660339711001143]