Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 108.7 kB / 16.41 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001542/0.001543, allocations: 189.4 kB / 17.35 MB, free: 5.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.598/1.598, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.61/2.61, allocations: 437 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001543, allocations: 67.89 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9396/0.9411, allocations: 151.6 MB / 1.167 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003249/0.9444, allocations: 1.638 MB / 1.169 GB, free: 2.18 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001094/0.9456, allocations: 0.5455 MB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.9457, allocations: 4 kB / 1.169 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0002247/0.946, allocations: 27.8 kB / 1.169 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002942/0.9463, allocations: 68.47 kB / 1.17 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001884/0.9465, allocations: 63.86 kB / 1.17 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002311/0.9467, allocations: 139.5 kB / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.9469, allocations: 45.47 kB / 1.17 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001514/0.9471, allocations: 59.75 kB / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.9472, allocations: 67.7 kB / 1.17 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.197e-05/0.9473, allocations: 8 kB / 1.17 GB, free: 1.148 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.385e-05/0.9473, allocations: 16 kB / 1.17 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.89e-05/0.9474, allocations: 47.83 kB / 1.17 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.869e-05/0.9475, allocations: 59.55 kB / 1.17 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.9478, allocations: 147.8 kB / 1.17 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.9478, allocations: 0 / 1.17 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.703e-06/0.9478, allocations: 0 / 1.17 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.9478, allocations: 0 / 1.17 GB, free: 0.8867 MB / 0.8887 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.0006509/0.9484, allocations: 474.4 kB / 1.171 GB, free: 384 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.9485, allocations: 8.625 kB / 1.171 GB, free: 376 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.81e-05/0.9486, allocations: 24.8 kB / 1.171 GB, free: 352 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.9489, allocations: 245 kB / 1.171 GB, free: 64 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-06/0.949, allocations: 384 / 1.171 GB, free: 64 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.44e-05/0.949, allocations: 4.375 kB / 1.171 GB, free: 60 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.9493, allocations: 118 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.9493, allocations: 7.922 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.9493, allocations: 3.938 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.9493, allocations: 4 kB / 1.171 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002435/0.9496, allocations: 68.94 kB / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006205/0.9502, allocations: 372.6 kB / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.9504, allocations: 42.55 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.9505, allocations: 24.91 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.9505, allocations: 4 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002223/0.9507, allocations: 101 kB / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/0.9507, allocations: 0 / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3): time 0.0004351/0.9512, allocations: 125.5 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.9512, allocations: 85.11 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.9515, allocations: 249 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.9515, allocations: 33.69 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.197e-05/0.9516, allocations: 132 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.9516, allocations: 7.953 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.429e-05/0.9517, allocations: 17.7 kB / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.9518, allocations: 330.8 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.9519, allocations: 27.97 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.952, allocations: 55.39 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002149/0.9523, allocations: 66.47 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.9523, allocations: 4.031 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002923/0.9526, allocations: 97.48 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.9526, allocations: 4 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.9526, allocations: 4 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.9526, allocations: 0 / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.9528, allocations: 15.92 kB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.9528, allocations: 4.094 kB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.713e-05/0.9529, allocations: 19.94 kB / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.9529, allocations: 3.938 kB / 1.173 GB, free: 13.91 MB / 0.9044 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.0001275/0.953, allocations: 129.8 kB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.51e-05/0.9531, allocations: 15.91 kB / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.709e-05/0.9531, allocations: 25.23 kB / 1.173 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.9532, allocations: 3.938 kB / 1.173 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.9532, allocations: 3.938 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.889e-05/0.9532, allocations: 89.02 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.9533, allocations: 4 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.62e-05/0.9533, allocations: 7.984 kB / 1.173 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.808e-05/0.9534, allocations: 11.98 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003264/0.9538, allocations: 160.9 kB / 1.173 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003773/0.9541, allocations: 282.5 kB / 1.174 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001158/0.9543, allocations: 23.97 kB / 1.174 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001761/0.9545, allocations: 188.5 kB / 1.174 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of Backend: time 4.71e-07/0.9545, allocations: 0 / 1.174 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0007379/0.9552, allocations: 146 kB / 1.174 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0008778/0.9561, allocations: 0.7477 MB / 1.175 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of Templates: time 0.005562/0.9617, allocations: 1.936 MB / 1.176 GB, free: 10.08 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches