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.007699/0.007699, allocations: 98.97 kB / 15.73 MB, free: 6.043 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.002068/0.002068, allocations: 199.1 kB / 16.68 MB, free: 5.965 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.803/2.803, allocations: 469.8 MB / 0.7425 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 63.91 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2714, allocations: 159.1 MB / 1.22 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002923/0.2744, allocations: 1.658 MB / 1.222 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009286/0.2753, allocations: 0.5417 MB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.613e-05/0.2754, allocations: 0 / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.2756, allocations: 31.72 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.2759, allocations: 67.61 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001596/0.276, allocations: 63.86 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001968/0.2762, allocations: 135.5 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.2764, allocations: 53.45 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.2765, allocations: 55.77 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.2766, allocations: 59.75 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.779e-05/0.2767, allocations: 8 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.013e-05/0.2767, allocations: 27.94 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.777e-05/0.2768, allocations: 47.83 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.824e-05/0.2769, allocations: 55.61 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.2771, allocations: 147.2 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.2771, allocations: 8 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2771, allocations: 0 / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.2772, allocations: 0 / 1.223 GB, free: 11.33 MB / 0.9825 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.0006328/0.2778, allocations: 476.5 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.2778, allocations: 8.031 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.2779, allocations: 42.73 kB / 1.224 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.608e-05/0.2779, allocations: 20.8 kB / 1.224 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00032/0.2783, allocations: 248.9 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.2783, allocations: 4.375 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.2783, allocations: 8.312 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002886/0.2786, allocations: 109.8 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.2786, allocations: 0 / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.2786, allocations: 4 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.2786, allocations: 7.938 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002452/0.2789, allocations: 67.81 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005864/0.2795, allocations: 376.6 kB / 1.224 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001455/0.2796, allocations: 38.55 kB / 1.224 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.2798, allocations: 36.89 kB / 1.224 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.2798, allocations: 0 / 1.224 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002364/0.28, allocations: 93.03 kB / 1.224 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 9.61e-07/0.28, allocations: 0 / 1.224 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004548/0.2805, allocations: 129.5 kB / 1.225 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.2806, allocations: 77.11 kB / 1.225 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002699/0.2808, allocations: 256.9 kB / 1.225 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.2809, allocations: 29.7 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.083e-05/0.281, allocations: 124.1 kB / 1.225 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.547e-05/0.281, allocations: 7.938 kB / 1.225 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.281, allocations: 21.72 kB / 1.225 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.2812, allocations: 322.8 kB / 1.225 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.2813, allocations: 31.91 kB / 1.225 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.2815, allocations: 47.41 kB / 1.225 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.2817, allocations: 66.56 kB / 1.226 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.2817, allocations: 3.984 kB / 1.226 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002981/0.282, allocations: 105.5 kB / 1.226 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.282, allocations: 8 kB / 1.226 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.282, allocations: 7.922 kB / 1.226 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.2821, allocations: 8.156 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.2822, allocations: 11.98 kB / 1.226 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.2822, allocations: 0 / 1.226 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.254e-05/0.2823, allocations: 15.92 kB / 1.226 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.2823, allocations: 4 kB / 1.226 GB, free: 8.305 MB / 0.9825 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.0001093/0.2824, allocations: 133.8 kB / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.38e-05/0.2825, allocations: 19.91 kB / 1.226 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.593e-05/0.2825, allocations: 21.19 kB / 1.226 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.2825, allocations: 0 / 1.226 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.2825, allocations: 0 / 1.226 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.2825, allocations: 3.984 kB / 1.226 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001952/0.2827, allocations: 221.5 kB / 1.226 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2827, allocations: 0 / 1.226 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.168e-05/0.2828, allocations: 7.984 kB / 1.226 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.2828, allocations: 4 kB / 1.226 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.2828, allocations: 7.938 kB / 1.226 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2828, allocations: 0 / 1.226 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2828, allocations: 0 / 1.226 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003094/0.2832, allocations: 124.9 kB / 1.226 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.262e-05/0.2832, allocations: 96.94 kB / 1.226 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.2833, allocations: 3.938 kB / 1.226 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.777e-05/0.2834, allocations: 15.98 kB / 1.226 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.428e-05/0.2834, allocations: 4 kB / 1.226 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.2834, allocations: 4 kB / 1.226 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000191/0.2836, allocations: 188.5 kB / 1.227 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2836, allocations: 0 / 1.227 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002272/0.2839, allocations: 23.95 kB / 1.227 GB, free: 7.344 MB / 0.9825 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.0007232/0.2846, allocations: 0.674 MB / 1.227 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002866/0.2849, allocations: 59.88 kB / 1.227 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.299e-06/0.2849, allocations: 4 kB / 1.227 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.285, allocations: 31.91 kB / 1.227 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.2853, allocations: 40.39 kB / 1.227 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/0.2876, allocations: 1.764 MB / 1.229 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.288, allocations: 0.7236 MB / 1.23 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.428e-05/0.288, allocations: 12.55 kB / 1.23 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.191e-05/0.2881, allocations: 43.42 kB / 1.23 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of SimCode: time 2.71e-07/0.2881, allocations: 0 / 1.23 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02499/0.3131, allocations: 3.622 MB / 1.233 GB, free: 340 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.619/7.933, allocations: 5.859 kB / 1.233 GB, free: 336 kB / 0.9825 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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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