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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_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.005973/0.005973, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.001199/0.001199, allocations: 188.9 kB / 16.67 MB, free: 5.977 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 / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.758/2.758, allocations: 461.9 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 59.91 kB / 1.054 GB, free: 7.746 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2876, allocations: 157.4 MB / 1.207 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002875/0.2905, allocations: 1.642 MB / 1.209 GB, free: 8.578 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009561/0.2915, allocations: 0.5498 MB / 1.209 GB, free: 8.023 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.589e-05/0.2916, allocations: 7.938 kB / 1.209 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.2918, allocations: 19.8 kB / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002842/0.2921, allocations: 82.34 kB / 1.21 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001715/0.2923, allocations: 55.92 kB / 1.21 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.2925, allocations: 139.5 kB / 1.21 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.2926, allocations: 45.47 kB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.2928, allocations: 63.7 kB / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.2929, allocations: 55.77 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.839e-05/0.293, allocations: 8 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.57e-05/0.293, allocations: 27.98 kB / 1.21 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.838e-05/0.2931, allocations: 47.83 kB / 1.21 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.464e-05/0.2932, allocations: 59.59 kB / 1.21 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002034/0.2934, allocations: 147.6 kB / 1.21 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2934, allocations: 0 / 1.21 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2934, allocations: 4 kB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.2934, allocations: 0 / 1.21 GB, free: 7.273 MB / 0.9669 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.0006161/0.2941, allocations: 462.7 kB / 1.211 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.2941, allocations: 8.625 kB / 1.211 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.995e-05/0.2941, allocations: 42.73 kB / 1.211 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.196e-05/0.2942, allocations: 24.66 kB / 1.211 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003572/0.2946, allocations: 240.8 kB / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.2946, allocations: 8.375 kB / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.582e-05/0.2946, allocations: 4.375 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002863/0.2949, allocations: 113.8 kB / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.2949, allocations: 0 / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.295, allocations: 4 kB / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.295, allocations: 0 / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002486/0.2952, allocations: 67.88 kB / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006517/0.2959, allocations: 380.5 kB / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.296, allocations: 46.48 kB / 1.211 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.2962, allocations: 32.89 kB / 1.211 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.2962, allocations: 0 / 1.211 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.2964, allocations: 89.09 kB / 1.212 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.2964, allocations: 0 / 1.212 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004528/0.2969, allocations: 133.3 kB / 1.212 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.2969, allocations: 77.11 kB / 1.212 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.2972, allocations: 256.9 kB / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.2972, allocations: 29.7 kB / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.544e-05/0.2973, allocations: 132 kB / 1.212 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.795e-05/0.2973, allocations: 3.906 kB / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.165e-05/0.2974, allocations: 21.7 kB / 1.212 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.762e-05/0.2975, allocations: 326.8 kB / 1.213 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.2976, allocations: 23.97 kB / 1.213 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.2977, allocations: 47.41 kB / 1.213 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/0.298, allocations: 70.5 kB / 1.213 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.298, allocations: 4 kB / 1.213 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002924/0.2983, allocations: 101.4 kB / 1.213 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.2983, allocations: 8.094 kB / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/0.2983, allocations: 0 / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.2983, allocations: 11.88 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.2985, allocations: 11.98 kB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.2985, allocations: 0 / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.415e-05/0.2986, allocations: 15.89 kB / 1.213 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.2986, allocations: 0 / 1.213 GB, free: 4.262 MB / 0.9669 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.729e-05/0.2987, allocations: 134 kB / 1.213 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.939e-05/0.2987, allocations: 19.81 kB / 1.213 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.082e-05/0.2988, allocations: 25.16 kB / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2988, allocations: 3.938 kB / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2988, allocations: 0 / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2988, allocations: 4 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/0.299, allocations: 217.5 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.299, allocations: 0 / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.626e-05/0.2991, allocations: 11.98 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2991, allocations: 0 / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.2991, allocations: 3.938 kB / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2991, allocations: 4 kB / 1.213 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.2991, allocations: 8 kB / 1.213 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002946/0.2994, allocations: 116.9 kB / 1.213 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.149e-05/0.2995, allocations: 88.92 kB / 1.213 GB, free: 3.543 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.512e-05/0.2995, allocations: 11.92 kB / 1.213 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.781e-05/0.2996, allocations: 11.98 kB / 1.213 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.007e-05/0.2997, allocations: 8 kB / 1.213 GB, free: 3.512 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.2997, allocations: 4 kB / 1.213 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001665/0.2999, allocations: 192.4 kB / 1.214 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2999, allocations: 0 / 1.214 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002302/0.3001, allocations: 19.91 kB / 1.214 GB, free: 3.301 MB / 0.9669 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.0006477/0.3008, allocations: 0.6756 MB / 1.214 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002951/0.3011, allocations: 67.81 kB / 1.214 GB, free: 2.535 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3011, allocations: 0 / 1.214 GB, free: 2.535 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.3012, allocations: 27.97 kB / 1.214 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.3015, allocations: 44.64 kB / 1.214 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002193/0.3037, allocations: 1.74 MB / 1.216 GB, free: 0.6328 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.3041, allocations: 0.7276 MB / 1.217 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.014e-05/0.3042, allocations: 16.55 kB / 1.217 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.393e-05/0.3043, allocations: 39.42 kB / 1.217 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of SimCode: time 7.02e-07/0.3043, allocations: 4 kB / 1.217 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.3259, allocations: 3.659 MB / 1.22 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.141/8.467, allocations: 20.64 kB / 1.221 GB, free: 12.25 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > 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