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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001118/0.001118, allocations: 108 kB / 15.6 MB, free: 132 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.001333/0.001333, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.281/1.281, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.307/2.307, allocations: 390.2 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.89 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5668/0.5681, allocations: 140.4 MB / 0.9497 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002546/0.5707, allocations: 1.636 MB / 0.9513 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000716/0.5714, allocations: 0.5437 MB / 0.9518 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.02e-05/0.5715, allocations: 2.188 kB / 0.9518 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.5717, allocations: 27.02 kB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001964/0.5719, allocations: 55.2 kB / 0.9519 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001348/0.572, allocations: 71.88 kB / 0.952 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001399/0.5722, allocations: 130.9 kB / 0.9521 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.5723, allocations: 50.39 kB / 0.9522 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.427e-05/0.5724, allocations: 53.42 kB / 0.9522 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.34e-05/0.5725, allocations: 63.53 kB / 0.9523 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.84e-05/0.5726, allocations: 12.34 kB / 0.9523 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.38e-05/0.5726, allocations: 28.02 kB / 0.9523 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.412e-05/0.5727, allocations: 48.03 kB / 0.9524 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.044e-05/0.5728, allocations: 60.12 kB / 0.9524 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.5729, allocations: 141.3 kB / 0.9526 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.5729, allocations: 0 / 0.9526 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.323e-06/0.5729, allocations: 0 / 0.9526 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.269e-06/0.5729, allocations: 0 / 0.9526 GB, free: 6.934 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.0004697/0.5734, allocations: 467 kB / 0.953 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.5735, allocations: 8.938 kB / 0.953 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.859e-05/0.5735, allocations: 41.03 kB / 0.953 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.105e-05/0.5735, allocations: 24.8 kB / 0.9531 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.5737, allocations: 222.3 kB / 0.9533 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.178e-06/0.5737, allocations: 7.25 kB / 0.9533 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.5737, allocations: 4.406 kB / 0.9533 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002439/0.574, allocations: 112.2 kB / 0.9534 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.574, allocations: 1.219 kB / 0.9534 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.574, allocations: 4 kB / 0.9534 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.574, allocations: 2.562 kB / 0.9534 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002178/0.5743, allocations: 66.94 kB / 0.9535 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00048/0.5747, allocations: 392.6 kB / 0.9538 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.5749, allocations: 45.08 kB / 0.9539 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.575, allocations: 26.27 kB / 0.9539 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.575, allocations: 0 / 0.9539 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.5753, allocations: 106.5 kB / 0.954 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.5753, allocations: 0 / 0.954 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000428/0.5757, allocations: 124.2 kB / 0.9541 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.5757, allocations: 77.11 kB / 0.9542 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.576, allocations: 260.1 kB / 0.9545 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.576, allocations: 30.92 kB / 0.9545 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.639e-05/0.5761, allocations: 129.6 kB / 0.9546 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/0.5761, allocations: 8.938 kB / 0.9546 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.451e-05/0.5761, allocations: 17.66 kB / 0.9546 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.45e-05/0.5762, allocations: 326.2 kB / 0.9549 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.5763, allocations: 21.72 kB / 0.955 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.5764, allocations: 55.16 kB / 0.955 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002088/0.5766, allocations: 67.89 kB / 0.9551 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5766, allocations: 0 / 0.9551 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002734/0.5769, allocations: 101.8 kB / 0.9552 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.5769, allocations: 9.703 kB / 0.9552 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.577, allocations: 1.344 kB / 0.9552 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.577, allocations: 5.188 kB / 0.9552 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.5771, allocations: 11.58 kB / 0.9552 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.5771, allocations: 1.094 kB / 0.9552 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.904e-05/0.5772, allocations: 19.36 kB / 0.9552 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.5772, allocations: 1.281 kB / 0.9552 GB, free: 4.492 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 8.512e-05/0.5773, allocations: 136.5 kB / 0.9554 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.998e-05/0.5773, allocations: 15.62 kB / 0.9554 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.361e-05/0.5774, allocations: 22.88 kB / 0.9554 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.5774, allocations: 5.047 kB / 0.9554 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.5774, allocations: 0 / 0.9554 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.5774, allocations: 0 / 0.9554 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.5775, allocations: 211.6 kB / 0.9556 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.5775, allocations: 5 kB / 0.9556 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.042e-05/0.5776, allocations: 11.23 kB / 0.9556 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.5776, allocations: 1.094 kB / 0.9556 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.5777, allocations: 3.938 kB / 0.9556 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.5777, allocations: 1.281 kB / 0.9556 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.5777, allocations: 0 / 0.9556 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002687/0.5779, allocations: 128.2 kB / 0.9557 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.581e-05/0.578, allocations: 92.56 kB / 0.9558 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.535e-05/0.578, allocations: 5.094 kB / 0.9558 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.397e-05/0.5781, allocations: 14.11 kB / 0.9558 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.5782, allocations: 1.188 kB / 0.9559 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.5782, allocations: 12.52 kB / 0.9559 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001588/0.5783, allocations: 188.7 kB / 0.956 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5784, allocations: 0 / 0.956 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002196/0.5786, allocations: 25.53 kB / 0.9561 GB, free: 3.73 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.0005238/0.5791, allocations: 0.6958 MB / 0.9567 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002607/0.5794, allocations: 55.95 kB / 0.9568 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.5794, allocations: 0 / 0.9568 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.5795, allocations: 29.5 kB / 0.9568 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.5798, allocations: 48.56 kB / 0.9569 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.5815, allocations: 1.742 MB / 0.9586 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.5817, allocations: 0.7205 MB / 0.9593 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.742e-05/0.5818, allocations: 14.17 kB / 0.9593 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.337e-05/0.5819, allocations: 42.3 kB / 0.9593 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of SimCode: time 2.7e-07/0.5819, allocations: 0 / 0.9593 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01899/0.6009, allocations: 3.555 MB / 0.9628 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.453/8.053, allocations: 8.766 kB / 0.9628 GB, free: 14.95 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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