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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.0019/0.0019, allocations: 119 kB / 16.42 MB, free: 6.473 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.002219/0.002219, allocations: 183.9 kB / 17.35 MB, free: 5.75 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.477/1.477, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.804/2.804, allocations: 461.9 MB / 0.7355 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 68.11 kB / 1.055 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9532/0.9547, allocations: 157.4 MB / 1.208 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003179/0.958, allocations: 1.65 MB / 1.21 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001057/0.959, allocations: 0.5339 MB / 1.211 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.9592, allocations: 4 kB / 1.211 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.9594, allocations: 27.73 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003166/0.9598, allocations: 63.73 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.96, allocations: 67.84 kB / 1.211 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002206/0.9602, allocations: 135.5 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.9604, allocations: 49.47 kB / 1.211 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.9606, allocations: 51.84 kB / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.9608, allocations: 63.69 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.684e-05/0.9608, allocations: 8 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.732e-05/0.9609, allocations: 27.92 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.961, allocations: 43.83 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.816e-05/0.9611, allocations: 55.61 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.9614, allocations: 151.2 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.9614, allocations: 0 / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of FrontEnd: time 5.23e-06/0.9614, allocations: 4 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.9614, allocations: 3.938 kB / 1.211 GB, free: 10.75 MB / 0.9356 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.000768/0.9622, allocations: 460.5 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.9622, allocations: 8.031 kB / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.027e-05/0.9623, allocations: 16.75 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004654/0.9628, allocations: 244.8 kB / 1.212 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.9628, allocations: 8.312 kB / 1.212 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.9629, allocations: 16.31 kB / 1.212 GB, free: 9.922 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003157/0.9632, allocations: 106 kB / 1.212 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.9632, allocations: 0 / 1.212 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.9632, allocations: 4 kB / 1.212 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.9632, allocations: 4 kB / 1.212 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002499/0.9635, allocations: 59.94 kB / 1.212 GB, free: 9.746 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006985/0.9642, allocations: 384.4 kB / 1.213 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.9644, allocations: 38.56 kB / 1.213 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.9645, allocations: 28.89 kB / 1.213 GB, free: 9.242 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.9645, allocations: 7.938 kB / 1.213 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002313/0.9647, allocations: 101 kB / 1.213 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 2.584e-06/0.9647, allocations: 0 / 1.213 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0004715/0.9652, allocations: 125.4 kB / 1.213 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.968e-05/0.9653, allocations: 81.11 kB / 1.213 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.9656, allocations: 245 kB / 1.213 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.9656, allocations: 29.7 kB / 1.213 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.9657, allocations: 132 kB / 1.213 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.9658, allocations: 7.891 kB / 1.213 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.858e-05/0.9658, allocations: 17.66 kB / 1.213 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.966, allocations: 338.8 kB / 1.214 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.9661, allocations: 23.98 kB / 1.214 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.9662, allocations: 43.41 kB / 1.214 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002009/0.9664, allocations: 74.55 kB / 1.214 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.9664, allocations: 0 / 1.214 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000283/0.9667, allocations: 105.3 kB / 1.214 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.9667, allocations: 4 kB / 1.214 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.9667, allocations: 8.094 kB / 1.214 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.9668, allocations: 0 / 1.214 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.9669, allocations: 15.92 kB / 1.214 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.9669, allocations: 0 / 1.214 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.87e-05/0.967, allocations: 19.83 kB / 1.214 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-06/0.967, allocations: 0 / 1.214 GB, free: 7.785 MB / 0.9356 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.0001114/0.9671, allocations: 129.8 kB / 1.214 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.038e-05/0.9672, allocations: 15.81 kB / 1.214 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.429e-05/0.9672, allocations: 25.45 kB / 1.214 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.9672, allocations: 7.938 kB / 1.214 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.9672, allocations: 0 / 1.214 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.496e-05/0.9673, allocations: 92.91 kB / 1.214 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.9673, allocations: 0 / 1.214 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.729e-05/0.9674, allocations: 7.984 kB / 1.214 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.556e-05/0.9675, allocations: 11.98 kB / 1.214 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000332/0.9678, allocations: 172.8 kB / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003208/0.9681, allocations: 266.5 kB / 1.215 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001128/0.9683, allocations: 23.97 kB / 1.215 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001899/0.9685, allocations: 196.5 kB / 1.215 GB, free: 6.801 MB / 0.9356 GB Notification: Performance of Backend: time 2.9e-07/0.9685, allocations: 0 / 1.215 GB, free: 6.801 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007177/0.9692, allocations: 155.5 kB / 1.215 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0008311/0.97, allocations: 0.7396 MB / 1.216 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of Templates: time 0.006545/0.9766, allocations: 1.928 MB / 1.218 GB, free: 3.961 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches