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.001899/0.001899, allocations: 112.5 kB / 15.73 MB, free: 68 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.001668/0.001668, allocations: 192.7 kB / 16.66 MB, free: 6.586 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.655/2.655, allocations: 437 MB / 0.7105 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 64.14 kB / 1.018 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3059, allocations: 151.6 MB / 1.166 GB, free: 7.352 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003152/0.3091, allocations: 1.648 MB / 1.168 GB, free: 5.688 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0009585/0.3101, allocations: 0.5417 MB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.3102, allocations: 0 / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001973/0.3104, allocations: 23.8 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000283/0.3107, allocations: 67.66 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001797/0.3109, allocations: 63.86 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002032/0.3111, allocations: 135.5 kB / 1.169 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.3113, allocations: 49.45 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.3114, allocations: 63.7 kB / 1.169 GB, free: 4.738 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.3116, allocations: 59.69 kB / 1.169 GB, free: 4.68 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.936e-05/0.3116, allocations: 12 kB / 1.169 GB, free: 4.668 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.334e-05/0.3117, allocations: 20 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 9.199e-05/0.3118, allocations: 51.77 kB / 1.169 GB, free: 4.598 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.319e-05/0.3118, allocations: 59.61 kB / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002092/0.3121, allocations: 147.6 kB / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3121, allocations: 0 / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3121, allocations: 0 / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.3121, allocations: 0 / 1.169 GB, free: 4.395 MB / 0.92 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.0006286/0.3127, allocations: 482.4 kB / 1.169 GB, free: 3.875 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.3128, allocations: 8.031 kB / 1.169 GB, free: 3.867 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.201e-05/0.3128, allocations: 42.73 kB / 1.169 GB, free: 3.816 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.205e-05/0.3129, allocations: 20.8 kB / 1.17 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.3132, allocations: 237 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.3132, allocations: 4.375 kB / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.493e-05/0.3132, allocations: 8.375 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002848/0.3135, allocations: 113.7 kB / 1.17 GB, free: 3.395 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.3136, allocations: 0 / 1.17 GB, free: 3.395 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.3136, allocations: 8 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3136, allocations: 0 / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000251/0.3139, allocations: 59.94 kB / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006063/0.3145, allocations: 380.5 kB / 1.17 GB, free: 2.906 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.3146, allocations: 42.48 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.3147, allocations: 32.89 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.3148, allocations: 0 / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002299/0.315, allocations: 105 kB / 1.17 GB, free: 2.699 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.315, allocations: 0 / 1.17 GB, free: 2.699 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0004517/0.3155, allocations: 125.5 kB / 1.171 GB, free: 2.57 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/0.3155, allocations: 77.11 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002522/0.3158, allocations: 257 kB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.3158, allocations: 25.7 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.321e-05/0.3159, allocations: 128.1 kB / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/0.3159, allocations: 15.88 kB / 1.171 GB, free: 2.043 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.799e-05/0.316, allocations: 13.72 kB / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3161, allocations: 326.8 kB / 1.171 GB, free: 1.695 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.3162, allocations: 23.97 kB / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.3163, allocations: 55.34 kB / 1.171 GB, free: 1.605 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/0.3166, allocations: 66.56 kB / 1.172 GB, free: 1.531 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3166, allocations: 3.938 kB / 1.172 GB, free: 1.527 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002819/0.3168, allocations: 101.5 kB / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.3169, allocations: 10.03 kB / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3169, allocations: 0 / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3169, allocations: 7.922 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.317, allocations: 20.02 kB / 1.172 GB, free: 1.387 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.317, allocations: 8 kB / 1.172 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.145e-05/0.3171, allocations: 7.953 kB / 1.172 GB, free: 1.371 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.3172, allocations: 7.984 kB / 1.172 GB, free: 1.363 MB / 0.92 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.0001048/0.3173, allocations: 121.8 kB / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.3173, allocations: 19.89 kB / 1.172 GB, free: 1.215 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/0.3174, allocations: 21.19 kB / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.3174, allocations: 0 / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3174, allocations: 0 / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3174, allocations: 4 kB / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001771/0.3176, allocations: 217.6 kB / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3176, allocations: 0 / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.733e-05/0.3177, allocations: 11.98 kB / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.3177, allocations: 0 / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.3177, allocations: 7.875 kB / 1.172 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3177, allocations: 0 / 1.172 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3177, allocations: 0 / 1.172 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002969/0.318, allocations: 132.9 kB / 1.172 GB, free: 0.7578 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.314e-05/0.3181, allocations: 93 kB / 1.172 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.328e-05/0.3181, allocations: 3.938 kB / 1.172 GB, free: 0.6445 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.711e-05/0.3182, allocations: 11.98 kB / 1.172 GB, free: 0.6328 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.589e-05/0.3182, allocations: 0 / 1.172 GB, free: 0.6328 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.3183, allocations: 4 kB / 1.172 GB, free: 0.6289 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001649/0.3184, allocations: 192.5 kB / 1.172 GB, free: 452 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3184, allocations: 4 kB / 1.172 GB, free: 448 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002218/0.3187, allocations: 23.94 kB / 1.173 GB, free: 424 kB / 0.92 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.0006826/0.3194, allocations: 0.6941 MB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002801/0.3196, allocations: 59.88 kB / 1.173 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3197, allocations: 0 / 1.173 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.3198, allocations: 36.09 kB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002978/0.3201, allocations: 40.44 kB / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002105/0.3222, allocations: 1.748 MB / 1.175 GB, free: 13.72 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.3225, allocations: 0.7235 MB / 1.176 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.978e-05/0.3226, allocations: 12.55 kB / 1.176 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.155e-05/0.3226, allocations: 47.42 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of SimCode: time 5.81e-07/0.3226, allocations: 0 / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02209/0.3447, allocations: 3.611 MB / 1.179 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.902/8.247, allocations: 10.09 kB / 1.179 GB, free: 9.402 MB / 0.9356 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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