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.00111/0.00111, allocations: 108 kB / 15.61 MB, free: 128 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.001229/0.001229, allocations: 198 kB / 16.53 MB, free: 6.668 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.307/1.307, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.651/2.651, allocations: 469.4 MB / 0.742 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 64.81 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.266, allocations: 159.1 MB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003084/0.2692, allocations: 1.652 MB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009552/0.2701, allocations: 0.5417 MB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.451e-05/0.2702, allocations: 11.88 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.2704, allocations: 31.78 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002629/0.2707, allocations: 63.67 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.2709, allocations: 63.86 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001793/0.2711, allocations: 123.6 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.2713, allocations: 53.45 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.2714, allocations: 55.72 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001189/0.2715, allocations: 63.75 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.176e-05/0.2716, allocations: 8 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.585e-05/0.2717, allocations: 16 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.555e-05/0.2718, allocations: 47.83 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.459e-05/0.2718, allocations: 55.61 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002059/0.272, allocations: 151.7 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.2721, allocations: 4 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2721, allocations: 3.938 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.2721, allocations: 0 / 1.067 GB, free: 11.62 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.0006145/0.2727, allocations: 458.7 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.2728, allocations: 12.03 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.2e-05/0.2728, allocations: 38.73 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.132e-05/0.2729, allocations: 16.75 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.2731, allocations: 244.7 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.263e-06/0.2731, allocations: 4.375 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.2732, allocations: 4.375 kB / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002871/0.2734, allocations: 109.8 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.2735, allocations: 0 / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.2735, allocations: 3.984 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.2735, allocations: 7.938 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000232/0.2737, allocations: 63.94 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005899/0.2743, allocations: 384.4 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.2745, allocations: 42.48 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.2746, allocations: 32.91 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.44e-05/0.2746, allocations: 0 / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.2749, allocations: 93.08 kB / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.2749, allocations: 0 / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0004334/0.2753, allocations: 129.4 kB / 1.068 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.2754, allocations: 81.11 kB / 1.068 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002479/0.2756, allocations: 249 kB / 1.068 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.2757, allocations: 29.69 kB / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.364e-05/0.2757, allocations: 128 kB / 1.069 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.2758, allocations: 7.906 kB / 1.069 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.5e-05/0.2758, allocations: 13.72 kB / 1.069 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.2759, allocations: 334.8 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.276, allocations: 27.97 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.2762, allocations: 51.44 kB / 1.069 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002125/0.2764, allocations: 66.5 kB / 1.069 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2764, allocations: 0 / 1.069 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002838/0.2767, allocations: 101.4 kB / 1.069 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.2767, allocations: 12.09 kB / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2767, allocations: 0 / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.2767, allocations: 3.938 kB / 1.069 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.2768, allocations: 11.98 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.2769, allocations: 0 / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.602e-05/0.277, allocations: 19.89 kB / 1.069 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-06/0.277, allocations: 4 kB / 1.069 GB, free: 8.625 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 9.785e-05/0.2771, allocations: 125.8 kB / 1.069 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.93e-05/0.2771, allocations: 19.81 kB / 1.069 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/0.2772, allocations: 29.17 kB / 1.069 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.2772, allocations: 0 / 1.069 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.2772, allocations: 0 / 1.069 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.2772, allocations: 4 kB / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.2774, allocations: 229.4 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2774, allocations: 0 / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-05/0.2775, allocations: 15.92 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.2775, allocations: 0 / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.2775, allocations: 7.922 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2775, allocations: 0 / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2775, allocations: 4 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002848/0.2778, allocations: 116.9 kB / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.378e-05/0.2778, allocations: 88.92 kB / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.2779, allocations: 3.938 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.775e-05/0.278, allocations: 15.98 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.592e-05/0.278, allocations: 7.984 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.302e-05/0.278, allocations: 4 kB / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001641/0.2782, allocations: 192.5 kB / 1.07 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2782, allocations: 0 / 1.07 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002255/0.2785, allocations: 24.12 kB / 1.07 GB, free: 7.664 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.0006488/0.2791, allocations: 0.6766 MB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002824/0.2794, allocations: 64 kB / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.2794, allocations: 8 kB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.2795, allocations: 27.95 kB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/0.2798, allocations: 37.41 kB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.2819, allocations: 1.735 MB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.2821, allocations: 0.7236 MB / 1.073 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.969e-05/0.2822, allocations: 20.55 kB / 1.073 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.487e-05/0.2823, allocations: 47.41 kB / 1.073 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of SimCode: time 1.563e-06/0.2823, allocations: 0 / 1.073 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01876/0.3011, allocations: 3.557 MB / 1.077 GB, free: 0.7148 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.412/7.713, allocations: 11.41 kB / 1.077 GB, free: 0.707 MB / 0.8262 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 & python3 -m fmpy simulate --output-file Buildings_latest_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_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.csv","/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