Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_11_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.00122/0.00122, 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.001186/0.001186, allocations: 197.2 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.3/1.3, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.738/2.738, allocations: 469.8 MB / 0.7424 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 70.91 kB / 0.9087 GB, free: 34.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2701, allocations: 159.2 MB / 1.064 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002945/0.2731, allocations: 1.642 MB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009319/0.274, allocations: 0.5494 MB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.728e-05/0.2741, allocations: 7.938 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.2743, allocations: 19.8 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002198/0.2745, allocations: 60.17 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001565/0.2747, allocations: 75.84 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001724/0.2749, allocations: 123.6 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.275, allocations: 45.45 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.2751, allocations: 59.72 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.2753, allocations: 67.69 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.153e-05/0.2753, allocations: 8 kB / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.181e-05/0.2754, allocations: 23.98 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.4e-05/0.2755, allocations: 43.89 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.839e-05/0.2755, allocations: 59.55 kB / 1.067 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002024/0.2757, allocations: 151.7 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.2758, allocations: 0 / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2758, allocations: 0 / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.2758, allocations: 0 / 1.067 GB, free: 11.22 MB / 0.8262 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.0006376/0.2764, allocations: 462.7 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.2765, allocations: 8.031 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.004e-05/0.2765, allocations: 42.73 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.432e-05/0.2766, allocations: 16.75 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/0.2768, allocations: 236.8 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.717e-06/0.2768, allocations: 4.375 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.2769, allocations: 8.312 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002898/0.2772, allocations: 118.8 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.2772, allocations: 0 / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.2772, allocations: 0 / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.2772, allocations: 4 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002344/0.2774, allocations: 63.94 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006101/0.2781, allocations: 392.4 kB / 1.068 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001534/0.2782, allocations: 42.5 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.2784, allocations: 32.88 kB / 1.068 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.2784, allocations: 0 / 1.068 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002728/0.2786, allocations: 101.1 kB / 1.068 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.2787, allocations: 0 / 1.068 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0004402/0.2791, allocations: 117.3 kB / 1.069 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.393e-05/0.2792, allocations: 81.11 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002721/0.2795, allocations: 257 kB / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.2795, allocations: 29.7 kB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.195e-05/0.2796, allocations: 132 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.2796, allocations: 7.906 kB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.684e-05/0.2796, allocations: 13.72 kB / 1.069 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2798, allocations: 330.8 kB / 1.069 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.2799, allocations: 23.98 kB / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.28, allocations: 47.41 kB / 1.069 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.2803, allocations: 74.48 kB / 1.069 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2803, allocations: 0 / 1.069 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002858/0.2806, allocations: 101.4 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.2806, allocations: 4 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.2806, allocations: 4 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.2806, allocations: 3.938 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.2807, allocations: 12.08 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.2808, allocations: 4 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.25e-05/0.2809, allocations: 19.89 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.2809, allocations: 0 / 1.07 GB, free: 8.219 MB / 0.8262 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.0001132/0.281, allocations: 129.8 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.098e-05/0.281, allocations: 15.81 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.2811, allocations: 25.17 kB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.2811, allocations: 7.938 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2811, allocations: 0 / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.2811, allocations: 7.938 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001856/0.2813, allocations: 217.5 kB / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2813, allocations: 0 / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.209e-05/0.2814, allocations: 11.98 kB / 1.07 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2814, allocations: 0 / 1.07 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.2814, allocations: 11.88 kB / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2814, allocations: 0 / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2814, allocations: 0 / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003033/0.2817, allocations: 124.9 kB / 1.07 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.737e-05/0.2818, allocations: 88.92 kB / 1.07 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.857e-05/0.2818, allocations: 3.938 kB / 1.07 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.782e-05/0.2819, allocations: 15.98 kB / 1.07 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.645e-05/0.282, allocations: 4 kB / 1.07 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/0.282, allocations: 7.984 kB / 1.07 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001781/0.2822, allocations: 188.5 kB / 1.07 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.864e-06/0.2822, allocations: 4 kB / 1.07 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002348/0.2824, allocations: 23.92 kB / 1.07 GB, free: 7.254 MB / 0.8262 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.0007276/0.2832, allocations: 0.6837 MB / 1.071 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000286/0.2835, allocations: 55.83 kB / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2835, allocations: 0 / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001201/0.2836, allocations: 36.16 kB / 1.071 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.2839, allocations: 42.86 kB / 1.071 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.2861, allocations: 1.739 MB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.2864, allocations: 0.7158 MB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.891e-05/0.2865, allocations: 20.48 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.071e-05/0.2866, allocations: 43.42 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.2866, allocations: 4 kB / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7988/1.085, allocations: 3.55 MB / 1.077 GB, free: 316 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/11.56, allocations: 2.734 kB / 1.077 GB, free: 316 kB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches