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.00647/0.00647, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001728/0.001728, allocations: 198.8 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.356/1.356, 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.539/2.539, allocations: 437.1 MB / 0.7106 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 59.91 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.258, allocations: 151.6 MB / 1.166 GB, free: 7.324 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002803/0.2608, allocations: 1.649 MB / 1.168 GB, free: 5.652 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008995/0.2617, allocations: 0.5378 MB / 1.168 GB, free: 5.109 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.059e-05/0.2618, allocations: 3.938 kB / 1.168 GB, free: 5.105 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.262, allocations: 23.8 kB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.2623, allocations: 71.66 kB / 1.168 GB, free: 5.012 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001622/0.2624, allocations: 59.92 kB / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001882/0.2626, allocations: 131.5 kB / 1.169 GB, free: 4.824 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.2628, allocations: 53.45 kB / 1.169 GB, free: 4.766 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.2629, allocations: 55.77 kB / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.263, allocations: 67.62 kB / 1.169 GB, free: 4.645 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.263, allocations: 8 kB / 1.169 GB, free: 4.637 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 5.924e-05/0.2631, allocations: 20 kB / 1.169 GB, free: 4.617 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.212e-05/0.2632, allocations: 51.77 kB / 1.169 GB, free: 4.566 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.724e-05/0.2633, allocations: 55.61 kB / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.2635, allocations: 151.5 kB / 1.169 GB, free: 4.363 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2635, allocations: 4 kB / 1.169 GB, free: 4.359 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2635, allocations: 4 kB / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.2635, allocations: 0 / 1.169 GB, free: 4.355 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.0005911/0.2641, allocations: 474.4 kB / 1.169 GB, free: 3.844 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.2641, allocations: 8.031 kB / 1.169 GB, free: 3.836 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.413e-05/0.2642, allocations: 42.73 kB / 1.17 GB, free: 3.785 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.563e-05/0.2642, allocations: 20.8 kB / 1.17 GB, free: 3.766 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.2645, allocations: 244.9 kB / 1.17 GB, free: 3.484 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.2645, allocations: 384 / 1.17 GB, free: 3.484 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.2646, allocations: 8.375 kB / 1.17 GB, free: 3.477 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000265/0.2648, allocations: 109.8 kB / 1.17 GB, free: 3.363 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.2649, allocations: 0 / 1.17 GB, free: 3.363 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.2649, allocations: 4 kB / 1.17 GB, free: 3.359 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.2649, allocations: 4 kB / 1.17 GB, free: 3.355 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.2651, allocations: 63.94 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.2657, allocations: 376.5 kB / 1.17 GB, free: 2.875 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001435/0.2658, allocations: 42.48 kB / 1.17 GB, free: 2.824 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.2659, allocations: 40.83 kB / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.266, allocations: 0 / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002208/0.2662, allocations: 93.05 kB / 1.17 GB, free: 2.672 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 8.61e-07/0.2662, allocations: 0 / 1.17 GB, free: 2.672 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0004382/0.2666, allocations: 133.4 kB / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.2667, allocations: 77.11 kB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002537/0.2669, allocations: 253 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.267, allocations: 25.7 kB / 1.171 GB, free: 2.156 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.838e-05/0.2671, allocations: 128.1 kB / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.2671, allocations: 11.88 kB / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-05/0.2671, allocations: 13.72 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.2673, allocations: 330.8 kB / 1.171 GB, free: 1.664 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.2674, allocations: 27.97 kB / 1.171 GB, free: 1.637 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.2675, allocations: 47.59 kB / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002097/0.2677, allocations: 70.5 kB / 1.172 GB, free: 1.5 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2677, allocations: 0 / 1.172 GB, free: 1.5 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002757/0.268, allocations: 101.6 kB / 1.172 GB, free: 1.395 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.268, allocations: 12.09 kB / 1.172 GB, free: 1.383 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2681, allocations: 3.984 kB / 1.172 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.2681, allocations: 11.92 kB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.2682, allocations: 11.98 kB / 1.172 GB, free: 1.355 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.2682, allocations: 0 / 1.172 GB, free: 1.355 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.281e-05/0.2683, allocations: 19.88 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.405e-06/0.2683, allocations: 4 kB / 1.172 GB, free: 1.332 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.0001062/0.2684, allocations: 125.8 kB / 1.172 GB, free: 1.199 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.703e-05/0.2684, allocations: 19.91 kB / 1.172 GB, free: 1.18 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.439e-05/0.2685, allocations: 21.19 kB / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2685, allocations: 0 / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2685, allocations: 0 / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2685, allocations: 7.922 kB / 1.172 GB, free: 1.148 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001766/0.2687, allocations: 217.6 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2687, allocations: 0 / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.436e-05/0.2688, allocations: 11.98 kB / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2688, allocations: 0 / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.2688, allocations: 3.938 kB / 1.172 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2688, allocations: 7.938 kB / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2688, allocations: 0 / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.2691, allocations: 124.9 kB / 1.172 GB, free: 0.7227 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.301e-05/0.2692, allocations: 93 kB / 1.172 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.082e-05/0.2692, allocations: 3.938 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.113e-05/0.2693, allocations: 15.98 kB / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.759e-05/0.2693, allocations: 0 / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.2693, allocations: 4 kB / 1.172 GB, free: 0.5898 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001731/0.2695, allocations: 192.5 kB / 1.173 GB, free: 412 kB / 0.92 GB Notification: Performance of sort global known variables: time 2.835e-06/0.2695, allocations: 0 / 1.173 GB, free: 412 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002016/0.2697, allocations: 27.88 kB / 1.173 GB, free: 384 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.0007025/0.2704, allocations: 0.6834 MB / 1.173 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002665/0.2707, allocations: 63.81 kB / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2707, allocations: 4 kB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.2708, allocations: 27.97 kB / 1.173 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.2711, allocations: 36.81 kB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.2732, allocations: 1.748 MB / 1.175 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.2735, allocations: 0.7313 MB / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.425e-05/0.2736, allocations: 20.42 kB / 1.176 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.082e-05/0.2736, allocations: 43.42 kB / 1.176 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.2736, allocations: 0 / 1.176 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.185/1.459, allocations: 3.609 MB / 1.179 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/12.84, allocations: 6.484 kB / 1.179 GB, free: 9.371 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=400 --tolerance=1e-06 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.mat","/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