Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_9_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.008118/0.008118, allocations: 101 kB / 15.73 MB, free: 6.473 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.001603/0.001603, allocations: 195 kB / 16.67 MB, free: 6.379 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.424/2.424, allocations: 390.2 MB / 0.6648 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 70.58 kB / 0.9504 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.287, allocations: 140.4 MB / 1.087 GB, free: 2.078 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003263/0.2903, allocations: 1.645 MB / 1.089 GB, free: 428 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001071/0.2914, allocations: 0.5469 MB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.2916, allocations: 4 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002009/0.2918, allocations: 31.72 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.2921, allocations: 55.75 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001981/0.2923, allocations: 67.84 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00023/0.2926, allocations: 131.5 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.2928, allocations: 53.45 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.2929, allocations: 59.77 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.293, allocations: 63.7 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.995e-05/0.2931, allocations: 8 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.847e-05/0.2932, allocations: 23.92 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.739e-05/0.2933, allocations: 51.89 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.071e-05/0.2933, allocations: 63.53 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002155/0.2936, allocations: 142.3 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2936, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2936, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.2936, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 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.0006471/0.2943, allocations: 463.4 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.2943, allocations: 8.031 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.921e-05/0.2943, allocations: 46.69 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.206e-05/0.2944, allocations: 16.75 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.2948, allocations: 252.7 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.2948, allocations: 8.312 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.2948, allocations: 4.375 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.2951, allocations: 109.8 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.2951, allocations: 0 / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.2951, allocations: 4 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2951, allocations: 0 / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.2954, allocations: 67.92 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006072/0.296, allocations: 384.5 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001455/0.2961, allocations: 42.56 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.2963, allocations: 28.89 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.2963, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002458/0.2965, allocations: 105 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.2966, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004622/0.297, allocations: 121.4 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/0.2971, allocations: 81.11 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002525/0.2974, allocations: 249 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.2974, allocations: 25.7 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.369e-05/0.2975, allocations: 140 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.2975, allocations: 11.84 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.742e-05/0.2975, allocations: 13.72 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.2977, allocations: 330.8 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.2978, allocations: 23.97 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.2979, allocations: 47.42 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.2982, allocations: 66.45 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2982, allocations: 7.938 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002915/0.2985, allocations: 105.4 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.2985, allocations: 4 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.2985, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.2985, allocations: 7.938 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.2986, allocations: 11.98 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.2987, allocations: 4 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.599e-05/0.2988, allocations: 16.08 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.2988, allocations: 4 kB / 1.093 GB, free: 12.1 MB / 0.8575 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.0001053/0.2989, allocations: 129.8 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.132e-05/0.2989, allocations: 19.72 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.06e-05/0.299, allocations: 25.17 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.299, allocations: 0 / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.299, allocations: 0 / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.299, allocations: 4 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.2992, allocations: 209.6 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2992, allocations: 0 / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.452e-05/0.2993, allocations: 19.92 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.2993, allocations: 0 / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.2993, allocations: 3.938 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.2993, allocations: 3.984 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2993, allocations: 7.938 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002909/0.2996, allocations: 116.9 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.192e-05/0.2997, allocations: 88.92 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.2997, allocations: 7.938 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.572e-05/0.2998, allocations: 11.98 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.296e-05/0.2999, allocations: 7.984 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.2999, allocations: 4 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001652/0.3001, allocations: 192.5 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3001, allocations: 0 / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002321/0.3003, allocations: 16 kB / 1.094 GB, free: 11.16 MB / 0.8575 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.0006984/0.301, allocations: 0.7039 MB / 1.095 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002941/0.3013, allocations: 55.88 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3013, allocations: 0 / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.3015, allocations: 27.92 kB / 1.095 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.3018, allocations: 42.14 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.304, allocations: 1.74 MB / 1.096 GB, free: 8.473 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.3043, allocations: 0.7158 MB / 1.097 GB, free: 7.73 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.375e-05/0.3044, allocations: 16.55 kB / 1.097 GB, free: 7.715 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.637e-05/0.3045, allocations: 43.41 kB / 1.097 GB, free: 7.672 MB / 0.8575 GB Notification: Performance of SimCode: time 3.51e-07/0.3045, allocations: 4 kB / 1.097 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.327, allocations: 3.614 MB / 1.101 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.072/8.399, allocations: 4 kB / 1.101 GB, free: 4.16 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches