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.001613/0.001613, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.001991/0.001991, allocations: 194.7 kB / 16.26 MB, free: 6.637 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.359/1.359, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.996/2.996, allocations: 461.9 MB / 0.7343 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 72.06 kB / 0.8986 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3198, allocations: 157.4 MB / 1.052 GB, free: 8.777 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.004509/0.3244, allocations: 1.708 MB / 1.054 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001529/0.326, allocations: 0.5531 MB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.792e-05/0.3261, allocations: 7.938 kB / 1.054 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002359/0.3263, allocations: 23.86 kB / 1.055 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003907/0.3268, allocations: 59.23 kB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002415/0.327, allocations: 55.94 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.3273, allocations: 131.6 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.3275, allocations: 49.47 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.3277, allocations: 55.77 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.3279, allocations: 55.77 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.895e-05/0.3279, allocations: 8 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.286e-05/0.328, allocations: 39.84 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.3282, allocations: 35.91 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.979e-05/0.3283, allocations: 59.59 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003004/0.3286, allocations: 143.7 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.3286, allocations: 3.938 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3286, allocations: 4 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.3287, allocations: 0 / 1.055 GB, free: 5.777 MB / 0.8106 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.001015/0.3297, allocations: 466.6 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.3297, allocations: 8.625 kB / 1.056 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.885e-05/0.3298, allocations: 20.75 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.3302, allocations: 224.9 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.3302, allocations: 12.31 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.3303, allocations: 384 / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004598/0.3307, allocations: 113.9 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.3308, allocations: 3.938 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.3308, allocations: 8 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.3308, allocations: 3.938 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003823/0.3312, allocations: 63.94 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.3323, allocations: 388.5 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002277/0.3325, allocations: 34.55 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.3327, allocations: 32.89 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.3328, allocations: 4 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005505/0.3333, allocations: 101 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 5.41e-06/0.3333, allocations: 0 / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0007215/0.3341, allocations: 129.3 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.223e-05/0.3342, allocations: 77.11 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004163/0.3346, allocations: 257 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.3346, allocations: 25.7 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.3348, allocations: 128 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.577e-05/0.3348, allocations: 7.906 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.421e-05/0.3349, allocations: 21.7 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.3351, allocations: 326.8 kB / 1.058 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.3353, allocations: 23.97 kB / 1.058 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.3355, allocations: 47.41 kB / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003431/0.3359, allocations: 70.5 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.3359, allocations: 4 kB / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004283/0.3363, allocations: 105.4 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.3363, allocations: 4 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3364, allocations: 0 / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.3364, allocations: 8.031 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.3366, allocations: 11.98 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.3366, allocations: 11.92 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.3367, allocations: 4 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.3368, allocations: 4 kB / 1.058 GB, free: 2.832 MB / 0.8106 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.0001551/0.3369, allocations: 127.4 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.276e-05/0.337, allocations: 23.7 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.632e-05/0.337, allocations: 17.25 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.3371, allocations: 7.938 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3371, allocations: 0 / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3371, allocations: 0 / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002547/0.3374, allocations: 221.5 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3374, allocations: 0 / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.3375, allocations: 15.98 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3375, allocations: 3.938 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.3375, allocations: 0 / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.3375, allocations: 3.938 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3375, allocations: 0 / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004109/0.338, allocations: 124.8 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.197e-05/0.3381, allocations: 92.86 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.545e-05/0.3381, allocations: 3.984 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.3382, allocations: 15.92 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.286e-05/0.3383, allocations: 4 kB / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.3384, allocations: 8 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002485/0.3386, allocations: 188.5 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3386, allocations: 0 / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003949/0.339, allocations: 24 kB / 1.059 GB, free: 1.871 MB / 0.8106 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.0003231/0.3394, allocations: 128.2 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004017/0.3398, allocations: 59.88 kB / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3398, allocations: 0 / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.34, allocations: 27.97 kB / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.3404, allocations: 38.28 kB / 1.059 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007069/0.3411, allocations: 320.5 kB / 1.059 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.3415, allocations: 0.7158 MB / 1.06 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.988e-05/0.3416, allocations: 28.38 kB / 1.06 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.415e-05/0.3417, allocations: 15.44 kB / 1.06 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of SimCode: time 4.11e-07/0.3417, allocations: 3.938 kB / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of Templates: time 0.007513/0.3492, allocations: 1.657 MB / 1.062 GB, free: 14.86 MB / 0.8262 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/jenkins/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