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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001204/0.001204, allocations: 193.3 kB / 16.14 MB, free: 6.652 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.293/1.293, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.407/2.407, allocations: 437 MB / 0.7099 GB, free: 5.398 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 71.88 kB / 0.8687 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5663/0.5676, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002697/0.5703, allocations: 1.698 MB / 1.018 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007585/0.5711, allocations: 0.5416 MB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.968e-05/0.5712, allocations: 7.938 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.5713, allocations: 23.8 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0002033/0.5716, allocations: 63.73 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001266/0.5717, allocations: 55.94 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000153/0.5719, allocations: 127.5 kB / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.572, allocations: 41.48 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.5721, allocations: 55.77 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.752e-05/0.5722, allocations: 55.75 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.663e-05/0.5722, allocations: 4 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.356e-05/0.5723, allocations: 23.94 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 7.88e-05/0.5724, allocations: 39.84 kB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.195e-05/0.5725, allocations: 59.64 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.5726, allocations: 137.7 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.5727, allocations: 0 / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.226e-06/0.5727, allocations: 0 / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.5727, allocations: 7.938 kB / 1.02 GB, free: 15.84 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.0006041/0.5733, allocations: 462.6 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.5733, allocations: 8.031 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.017e-05/0.5734, allocations: 42.73 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.424e-05/0.5734, allocations: 16.75 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.5737, allocations: 236.8 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-06/0.5737, allocations: 384 / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.5737, allocations: 4.375 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002804/0.574, allocations: 117.7 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.574, allocations: 0 / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.574, allocations: 7.984 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.5741, allocations: 4 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.5743, allocations: 75.8 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005539/0.5748, allocations: 384.5 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001268/0.575, allocations: 42.55 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.5751, allocations: 28.91 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.5751, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002341/0.5753, allocations: 108.9 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.5754, allocations: 0 / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004094/0.5758, allocations: 117.4 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.5758, allocations: 89.11 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002405/0.5761, allocations: 245 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.5761, allocations: 33.69 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.691e-05/0.5762, allocations: 124 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.5762, allocations: 7.906 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.708e-05/0.5763, allocations: 17.7 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.5764, allocations: 326.8 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.5765, allocations: 31.97 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.5767, allocations: 51.34 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002078/0.5769, allocations: 62.56 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5769, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002594/0.5772, allocations: 101.4 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.5772, allocations: 5.562 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.5772, allocations: 4 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.5772, allocations: 8.031 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.5773, allocations: 15.92 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.5773, allocations: 3.984 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.844e-05/0.5774, allocations: 19.92 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.5774, allocations: 0 / 1.022 GB, free: 12.83 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 9.28e-05/0.5775, allocations: 126.4 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.932e-05/0.5776, allocations: 19.72 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.5776, allocations: 25.17 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.5776, allocations: 8 kB / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.5776, allocations: 0 / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.5776, allocations: 0 / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000152/0.5778, allocations: 209.6 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.5778, allocations: 3.938 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.396e-05/0.5779, allocations: 11.98 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.5779, allocations: 0 / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.5779, allocations: 11.92 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.5779, allocations: 0 / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.5779, allocations: 0 / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.5782, allocations: 129.1 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.851e-05/0.5783, allocations: 88.92 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.239e-05/0.5783, allocations: 7.875 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.392e-05/0.5784, allocations: 15.98 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.5784, allocations: 7.984 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.5784, allocations: 8 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001656/0.5786, allocations: 188.5 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5786, allocations: 0 / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002079/0.5788, allocations: 20 kB / 1.023 GB, free: 11.88 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.0006658/0.5795, allocations: 0.6792 MB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002568/0.5798, allocations: 59.81 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5798, allocations: 4.188 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.5799, allocations: 27.97 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.5802, allocations: 41.88 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001988/0.5822, allocations: 1.783 MB / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.5824, allocations: 0.716 MB / 1.026 GB, free: 8.422 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.322e-05/0.5825, allocations: 24.53 kB / 1.026 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.372e-05/0.5826, allocations: 39.42 kB / 1.026 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.5826, allocations: 0 / 1.026 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.406/0.9886, allocations: 3.297 MB / 1.03 GB, free: 5.172 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002285/0.9888, allocations: 214 kB / 1.03 GB, free: 4.906 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.761/2.75, allocations: 0 / 1.03 GB, free: 4.906 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > 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