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.005857/0.005857, allocations: 95.05 kB / 15.73 MB, free: 6.039 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.001397/0.001397, allocations: 205.7 kB / 16.68 MB, free: 5.969 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.795/2.795, allocations: 437 MB / 0.7105 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 67.88 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3047, allocations: 151.6 MB / 1.166 GB, free: 7.297 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003659/0.3084, allocations: 1.645 MB / 1.168 GB, free: 5.633 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.3096, allocations: 0.5417 MB / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.3097, allocations: 7.938 kB / 1.168 GB, free: 5.078 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001906/0.3099, allocations: 27.78 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002873/0.3103, allocations: 63.66 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.3105, allocations: 67.86 kB / 1.168 GB, free: 4.922 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002205/0.3107, allocations: 123.6 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.3109, allocations: 45.48 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.311, allocations: 63.69 kB / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.3112, allocations: 59.7 kB / 1.169 GB, free: 4.629 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.948e-05/0.3112, allocations: 8 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.72e-05/0.3113, allocations: 27.98 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.3114, allocations: 47.84 kB / 1.169 GB, free: 4.547 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.368e-05/0.3115, allocations: 63.53 kB / 1.169 GB, free: 4.484 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.3118, allocations: 143.6 kB / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3118, allocations: 0 / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3118, allocations: 0 / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.654e-06/0.3118, allocations: 0 / 1.169 GB, free: 4.344 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.0007717/0.3126, allocations: 478.4 kB / 1.169 GB, free: 3.828 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.3127, allocations: 16.03 kB / 1.169 GB, free: 3.812 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.54e-05/0.3127, allocations: 38.73 kB / 1.17 GB, free: 3.766 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.269e-05/0.3128, allocations: 20.8 kB / 1.17 GB, free: 3.746 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003854/0.3132, allocations: 237 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.3132, allocations: 4.375 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.3132, allocations: 4.375 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.3135, allocations: 113.8 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.3136, allocations: 11.86 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.3136, allocations: 4 kB / 1.17 GB, free: 3.332 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.3136, allocations: 4 kB / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002352/0.3138, allocations: 59.94 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006441/0.3145, allocations: 384.5 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.3146, allocations: 46.48 kB / 1.17 GB, free: 2.789 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.3148, allocations: 24.89 kB / 1.17 GB, free: 2.762 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.3148, allocations: 0 / 1.17 GB, free: 2.762 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.315, allocations: 105 kB / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.693e-06/0.3151, allocations: 3.938 kB / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0004676/0.3155, allocations: 117.5 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.382e-05/0.3156, allocations: 81.11 kB / 1.171 GB, free: 2.418 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002859/0.3159, allocations: 253 kB / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.3159, allocations: 33.7 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 9.563e-05/0.316, allocations: 124.1 kB / 1.171 GB, free: 2 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.3161, allocations: 11.88 kB / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.3e-05/0.3161, allocations: 17.72 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.3163, allocations: 326.8 kB / 1.171 GB, free: 1.637 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.3164, allocations: 19.97 kB / 1.171 GB, free: 1.617 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.3165, allocations: 51.41 kB / 1.171 GB, free: 1.555 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002205/0.3168, allocations: 70.47 kB / 1.172 GB, free: 1.477 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3168, allocations: 4.031 kB / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000301/0.3171, allocations: 101.5 kB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.3171, allocations: 4 kB / 1.172 GB, free: 1.363 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3171, allocations: 4 kB / 1.172 GB, free: 1.359 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.3171, allocations: 7.922 kB / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.3173, allocations: 11.98 kB / 1.172 GB, free: 1.34 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.3173, allocations: 3.938 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.3174, allocations: 20.03 kB / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.3175, allocations: 0 / 1.172 GB, free: 1.316 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.0001595/0.3176, allocations: 129.8 kB / 1.172 GB, free: 1.18 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.802e-05/0.3177, allocations: 15.91 kB / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.999e-05/0.3177, allocations: 17.19 kB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.3178, allocations: 4 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.3178, allocations: 0 / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.3178, allocations: 3.984 kB / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002802/0.3181, allocations: 217.6 kB / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3181, allocations: 4 kB / 1.172 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.3182, allocations: 11.98 kB / 1.172 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.3182, allocations: 0 / 1.172 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.3183, allocations: 11.88 kB / 1.172 GB, free: 0.8477 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3183, allocations: 0 / 1.172 GB, free: 0.8477 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3183, allocations: 4.219 kB / 1.172 GB, free: 0.8438 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003829/0.3187, allocations: 132.9 kB / 1.172 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 8.27e-05/0.3188, allocations: 93 kB / 1.172 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.3188, allocations: 3.938 kB / 1.172 GB, free: 0.582 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.366e-05/0.3189, allocations: 7.984 kB / 1.172 GB, free: 0.5742 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.319, allocations: 8 kB / 1.172 GB, free: 0.5664 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.319e-05/0.319, allocations: 4 kB / 1.172 GB, free: 0.5625 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002343/0.3192, allocations: 188.5 kB / 1.173 GB, free: 388 kB / 0.92 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3193, allocations: 0 / 1.173 GB, free: 388 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002943/0.3196, allocations: 27.94 kB / 1.173 GB, free: 360 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.0007627/0.3203, allocations: 0.6795 MB / 1.173 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002883/0.3206, allocations: 63.81 kB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3206, allocations: 0 / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.3208, allocations: 28.16 kB / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.3211, allocations: 42.12 kB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.3233, allocations: 1.748 MB / 1.175 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.3237, allocations: 0.7196 MB / 1.176 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.106e-05/0.3238, allocations: 20.61 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.813e-05/0.3239, allocations: 39.42 kB / 1.176 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of SimCode: time 3.11e-07/0.3239, allocations: 8 kB / 1.176 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.3489, allocations: 3.613 MB / 1.179 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.405/8.754, allocations: 10.17 kB / 1.179 GB, free: 9.348 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