Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_9_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.001148/0.001148, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001151/0.001151, allocations: 195 kB / 16.14 MB, free: 6.648 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.335/1.335, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.34/2.34, allocations: 390.2 MB / 0.6643 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 63.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6507/0.652, allocations: 140.3 MB / 0.949 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003278/0.6553, allocations: 1.692 MB / 0.9507 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008783/0.6563, allocations: 0.5459 MB / 0.9512 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.6564, allocations: 5.438 kB / 0.9512 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.6566, allocations: 21.2 kB / 0.9512 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002629/0.6569, allocations: 56.7 kB / 0.9513 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001722/0.6571, allocations: 56.38 kB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001883/0.6573, allocations: 129.2 kB / 0.9515 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.6575, allocations: 53.31 kB / 0.9515 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.6576, allocations: 44.53 kB / 0.9516 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.6577, allocations: 67.62 kB / 0.9516 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.6578, allocations: 5.188 kB / 0.9516 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.98e-05/0.6579, allocations: 17.55 kB / 0.9517 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.471e-05/0.658, allocations: 43.08 kB / 0.9517 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.789e-05/0.658, allocations: 56.86 kB / 0.9517 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.6582, allocations: 139 kB / 0.9519 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.6582, allocations: 0 / 0.9519 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.222e-06/0.6582, allocations: 0 / 0.9519 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.6583, allocations: 1.375 kB / 0.9519 GB, free: 6.891 MB / 0.7169 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.0005936/0.6589, allocations: 472.8 kB / 0.9523 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.076e-05/0.6589, allocations: 10.44 kB / 0.9523 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.788e-05/0.659, allocations: 37.44 kB / 0.9524 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.898e-05/0.6591, allocations: 25.05 kB / 0.9524 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.6593, allocations: 230.3 kB / 0.9526 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.6593, allocations: 10.97 kB / 0.9526 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.6593, allocations: 4.344 kB / 0.9526 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.6596, allocations: 111.4 kB / 0.9527 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.6596, allocations: 0 / 0.9527 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.6597, allocations: 5.344 kB / 0.9527 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.6597, allocations: 1.094 kB / 0.9528 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.6599, allocations: 63.59 kB / 0.9528 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005774/0.6605, allocations: 388.2 kB / 0.9532 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001329/0.6606, allocations: 37.11 kB / 0.9532 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.6607, allocations: 34.2 kB / 0.9532 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.6608, allocations: 1.281 kB / 0.9533 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002667/0.661, allocations: 102.5 kB / 0.9533 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.583e-06/0.661, allocations: 0 / 0.9533 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004207/0.6615, allocations: 119.4 kB / 0.9535 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.6615, allocations: 78.58 kB / 0.9535 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.6617, allocations: 255.9 kB / 0.9538 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.6618, allocations: 37.58 kB / 0.9538 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.895e-05/0.6618, allocations: 128.8 kB / 0.9539 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.6619, allocations: 9.25 kB / 0.9539 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.521e-05/0.6619, allocations: 22.12 kB / 0.954 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.538e-05/0.662, allocations: 326.4 kB / 0.9543 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.6621, allocations: 26.12 kB / 0.9543 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.6622, allocations: 47.22 kB / 0.9544 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.6624, allocations: 74.83 kB / 0.9544 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.6624, allocations: 1.438 kB / 0.9544 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002721/0.6627, allocations: 100.8 kB / 0.9545 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.6627, allocations: 13.92 kB / 0.9545 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.6627, allocations: 1.406 kB / 0.9545 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.6627, allocations: 3.938 kB / 0.9545 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.6629, allocations: 12.08 kB / 0.9546 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.6629, allocations: 1.125 kB / 0.9546 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.663, allocations: 15.92 kB / 0.9546 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.663, allocations: 1.188 kB / 0.9546 GB, free: 4.441 MB / 0.7169 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.0001271/0.6631, allocations: 136 kB / 0.9547 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.7e-05/0.6632, allocations: 16.28 kB / 0.9547 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.876e-05/0.6632, allocations: 18.53 kB / 0.9547 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.6632, allocations: 1.531 kB / 0.9547 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.6633, allocations: 3.984 kB / 0.9547 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.6633, allocations: 0 / 0.9547 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.6634, allocations: 215.9 kB / 0.9549 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.6634, allocations: 0 / 0.9549 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.443e-05/0.6635, allocations: 12.3 kB / 0.955 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.6635, allocations: 0 / 0.955 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.6636, allocations: 12.97 kB / 0.955 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.6636, allocations: 3.938 kB / 0.955 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.6636, allocations: 1.25 kB / 0.955 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002875/0.6639, allocations: 119.6 kB / 0.9551 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.703e-05/0.6639, allocations: 93.27 kB / 0.9552 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.083e-05/0.664, allocations: 9.297 kB / 0.9552 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.529e-05/0.664, allocations: 14.3 kB / 0.9552 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.6641, allocations: 1.375 kB / 0.9552 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.6641, allocations: 12.7 kB / 0.9552 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000185/0.6643, allocations: 187.3 kB / 0.9554 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6643, allocations: 0 / 0.9554 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000237/0.6646, allocations: 17.66 kB / 0.9554 GB, free: 3.684 MB / 0.7169 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.0006796/0.6653, allocations: 0.6842 MB / 0.9561 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002962/0.6656, allocations: 59.27 kB / 0.9561 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.6656, allocations: 0 / 0.9561 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.6657, allocations: 32.88 kB / 0.9562 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.666, allocations: 46.38 kB / 0.9562 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.6682, allocations: 1.768 MB / 0.9579 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001609/0.6684, allocations: 0.7198 MB / 0.9586 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.846e-05/0.6685, allocations: 13.92 kB / 0.9586 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.564e-05/0.6685, allocations: 47.02 kB / 0.9587 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.6686, allocations: 0 / 0.9587 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01571/0.6843, allocations: 3.305 MB / 0.9619 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001932/0.6845, allocations: 198.6 kB / 0.9621 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.776/2.461, allocations: 3.938 kB / 0.9621 GB, free: 14.81 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches