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.001907/0.001907, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002161/0.002161, allocations: 196.8 kB / 16.14 MB, free: 6.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.622/1.622, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.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.734/2.734, allocations: 437 MB / 0.7099 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 68.12 kB / 0.8686 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5953/0.5973, allocations: 151.6 MB / 1.017 GB, free: 2.723 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003667/0.601, allocations: 1.709 MB / 1.018 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009494/0.602, allocations: 0.5378 MB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.595e-05/0.6021, allocations: 7.938 kB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.6023, allocations: 19.86 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.000249/0.6026, allocations: 59.8 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001597/0.6027, allocations: 59.88 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002067/0.6029, allocations: 119.6 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.6031, allocations: 53.45 kB / 1.019 GB, free: 144 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.6032, allocations: 47.78 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.6034, allocations: 55.7 kB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.6034, allocations: 8 kB / 1.019 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.174e-05/0.6035, allocations: 27.91 kB / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.6036, allocations: 35.91 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.662e-05/0.6037, allocations: 59.53 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002031/0.6039, allocations: 145.5 kB / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.6039, allocations: 0 / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.183e-06/0.6039, allocations: 0 / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.6039, allocations: 0 / 1.019 GB, free: 15.77 MB / 0.7794 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.0006855/0.6046, allocations: 466.6 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.6046, allocations: 8.031 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.71e-05/0.6047, allocations: 16.75 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002789/0.605, allocations: 236.8 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.605, allocations: 8.375 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.605, allocations: 12.31 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003062/0.6053, allocations: 113.9 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.6054, allocations: 0 / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.6054, allocations: 0 / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.6054, allocations: 0 / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002378/0.6056, allocations: 67.88 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006407/0.6063, allocations: 388.5 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.6065, allocations: 42.55 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.6066, allocations: 32.89 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.6066, allocations: 0 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003291/0.6069, allocations: 101.1 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.607, allocations: 0 / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004547/0.6074, allocations: 133.2 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.6075, allocations: 81.11 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002848/0.6078, allocations: 249 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.6078, allocations: 29.7 kB / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.918e-05/0.6079, allocations: 124 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.929e-05/0.6079, allocations: 11.89 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.995e-05/0.608, allocations: 13.72 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.6081, allocations: 330.8 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.6083, allocations: 23.97 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.6084, allocations: 47.41 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002326/0.6086, allocations: 74.5 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.6087, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002822/0.6089, allocations: 101.4 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.609, allocations: 4 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.609, allocations: 8.094 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.609, allocations: 3.938 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.6091, allocations: 15.97 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.6091, allocations: 0 / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.786e-05/0.6092, allocations: 11.94 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.6092, allocations: 3.984 kB / 1.022 GB, free: 12.81 MB / 0.7794 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.0001224/0.6094, allocations: 129.8 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.6094, allocations: 19.8 kB / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.355e-05/0.6095, allocations: 21.19 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.6095, allocations: 7.938 kB / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.6095, allocations: 0 / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.6095, allocations: 0 / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002014/0.6097, allocations: 217.5 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.6097, allocations: 0 / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.569e-05/0.6098, allocations: 15.92 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.6098, allocations: 0 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.829e-06/0.6098, allocations: 4 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.6098, allocations: 7.922 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.6098, allocations: 4 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/0.6101, allocations: 120.8 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.531e-05/0.6102, allocations: 96.91 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.6102, allocations: 4 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.898e-05/0.6103, allocations: 11.92 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.6104, allocations: 8 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/0.6104, allocations: 4 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001903/0.6106, allocations: 192.5 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6106, allocations: 0 / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002377/0.6109, allocations: 16 kB / 1.023 GB, free: 11.86 MB / 0.7794 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.0002738/0.6112, allocations: 127.7 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000293/0.6115, allocations: 59.92 kB / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/0.6115, allocations: 0 / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.6116, allocations: 31.91 kB / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.6119, allocations: 46.28 kB / 1.023 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000584/0.6125, allocations: 313.9 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.6129, allocations: 0.7238 MB / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.833e-05/0.613, allocations: 12.55 kB / 1.024 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.966e-05/0.613, allocations: 15.44 kB / 1.024 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.613, allocations: 0 / 1.024 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of Templates: time 0.005261/0.6183, allocations: 1.617 MB / 1.026 GB, free: 8.879 MB / 0.7794 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=400 -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/jenkins/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