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: "" <> 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.001346/0.001346, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.288/1.288, allocations: 222.9 MB / 240.2 MB, free: 4.367 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.441/2.441, allocations: 437.1 MB / 0.7104 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 59.91 kB / 0.8693 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6058/0.607, allocations: 151.6 MB / 1.017 GB, free: 2.664 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002978/0.61, allocations: 1.643 MB / 1.019 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008471/0.6108, allocations: 0.5455 MB / 1.02 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.94e-05/0.6109, allocations: 0 / 1.02 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001547/0.6111, allocations: 35.66 kB / 1.02 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.6113, allocations: 59.73 kB / 1.02 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001384/0.6115, allocations: 59.86 kB / 1.02 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001618/0.6116, allocations: 135.6 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.6118, allocations: 45.47 kB / 1.02 GB, free: 128 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.6119, allocations: 59.7 kB / 1.02 GB, free: 68 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.769e-05/0.612, allocations: 55.77 kB / 1.02 GB, free: 12 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.612, allocations: 8 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.408e-05/0.6121, allocations: 24.75 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.456e-05/0.6122, allocations: 51.72 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.028e-05/0.6123, allocations: 59.61 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001806/0.6125, allocations: 137.2 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.6125, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.855e-06/0.6125, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.6125, allocations: 3.938 kB / 1.02 GB, free: 15.73 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.0005808/0.6131, allocations: 466.6 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.6131, allocations: 12.03 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.788e-05/0.6132, allocations: 46.67 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.328e-05/0.6132, allocations: 20.75 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002162/0.6134, allocations: 236.8 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.6135, allocations: 4.375 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.6135, allocations: 4.375 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002692/0.6137, allocations: 109.8 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.6138, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.6138, allocations: 7.984 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.6138, allocations: 4 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002243/0.614, allocations: 71.81 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005226/0.6146, allocations: 380.5 kB / 1.022 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001342/0.6147, allocations: 38.56 kB / 1.022 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.6148, allocations: 32.89 kB / 1.022 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.609e-05/0.6148, allocations: 3.984 kB / 1.022 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/0.6151, allocations: 97.08 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.6151, allocations: 4 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.000417/0.6155, allocations: 125.3 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.6156, allocations: 77.11 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002317/0.6158, allocations: 252.9 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.6158, allocations: 29.7 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.493e-05/0.6159, allocations: 136 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.839e-05/0.6159, allocations: 11.84 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.616, allocations: 13.72 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.6161, allocations: 330.8 kB / 1.023 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.6162, allocations: 23.97 kB / 1.023 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.6163, allocations: 51.41 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002086/0.6166, allocations: 66.47 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.6166, allocations: 0 / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002778/0.6169, allocations: 105.4 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.6169, allocations: 8 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.6169, allocations: 0 / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.6169, allocations: 3.938 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.617, allocations: 11.98 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.617, allocations: 0 / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.264e-05/0.6171, allocations: 11.98 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.6171, allocations: 8.094 kB / 1.023 GB, free: 12.72 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.0001051/0.6172, allocations: 129.8 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.771e-05/0.6173, allocations: 15.81 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.201e-05/0.6173, allocations: 25.17 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.6173, allocations: 0 / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.6173, allocations: 0 / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.6173, allocations: 0 / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.6175, allocations: 213.6 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.6175, allocations: 3.938 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.007e-05/0.6176, allocations: 15.98 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.6176, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.6176, allocations: 11.92 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.6176, allocations: 4 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.6176, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.6179, allocations: 120.8 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.503e-05/0.618, allocations: 96.86 kB / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.618, allocations: 3.938 kB / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.307e-05/0.6181, allocations: 12.31 kB / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.114e-05/0.6181, allocations: 7.984 kB / 1.024 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.6181, allocations: 4 kB / 1.024 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001589/0.6183, allocations: 188.5 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6183, allocations: 0 / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002098/0.6185, allocations: 20 kB / 1.024 GB, free: 11.77 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.0006367/0.6192, allocations: 0.6963 MB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002607/0.6194, allocations: 63.81 kB / 1.025 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.6194, allocations: 0 / 1.025 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.6196, allocations: 27.97 kB / 1.025 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.6199, allocations: 40.16 kB / 1.025 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001946/0.6218, allocations: 1.735 MB / 1.026 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.6221, allocations: 0.7236 MB / 1.027 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.021e-05/0.6222, allocations: 16.61 kB / 1.027 GB, free: 8.324 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.957e-05/0.6223, allocations: 47.41 kB / 1.027 GB, free: 8.277 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.6223, allocations: 0 / 1.027 GB, free: 8.277 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02073/0.643, allocations: 3.557 MB / 1.031 GB, free: 4.809 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.289/7.932, allocations: 18.7 kB / 1.031 GB, free: 4.793 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