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.001357/0.001357, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001404/0.001404, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.266/1.266, allocations: 222.9 MB / 239.9 MB, free: 4.504 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.138/2.138, allocations: 390.3 MB / 0.6644 GB, free: 0.5078 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.91 kB / 0.8122 GB, free: 14.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5435/0.545, allocations: 140.4 MB / 0.9492 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002634/0.5477, allocations: 1.688 MB / 0.9509 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006672/0.5484, allocations: 0.546 MB / 0.9514 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.078e-05/0.5484, allocations: 6.344 kB / 0.9514 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001679/0.5486, allocations: 24.89 kB / 0.9514 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.5488, allocations: 48.84 kB / 0.9515 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000127/0.549, allocations: 67.92 kB / 0.9515 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001428/0.5491, allocations: 130.3 kB / 0.9517 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.5493, allocations: 55.16 kB / 0.9517 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.5494, allocations: 49.91 kB / 0.9518 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.371e-05/0.5495, allocations: 63.16 kB / 0.9518 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.506e-05/0.5495, allocations: 8.844 kB / 0.9518 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.583e-05/0.5496, allocations: 27.3 kB / 0.9519 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.902e-05/0.5497, allocations: 48.39 kB / 0.9519 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.093e-05/0.5497, allocations: 60.77 kB / 0.952 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001642/0.5499, allocations: 140.6 kB / 0.9521 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.5499, allocations: 0 / 0.9521 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.342e-06/0.5499, allocations: 0 / 0.9521 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.5499, allocations: 0 / 0.9521 GB, free: 6.992 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.0005046/0.5504, allocations: 466.1 kB / 0.9526 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.5505, allocations: 13.72 kB / 0.9526 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.175e-05/0.5505, allocations: 37.19 kB / 0.9526 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.366e-05/0.5505, allocations: 25.59 kB / 0.9526 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.5507, allocations: 229.7 kB / 0.9528 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.5508, allocations: 6.594 kB / 0.9528 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.5508, allocations: 4.625 kB / 0.9529 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002585/0.551, allocations: 116.8 kB / 0.953 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.5511, allocations: 3.938 kB / 0.953 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.5511, allocations: 1.469 kB / 0.953 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.5511, allocations: 1.469 kB / 0.953 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002121/0.5513, allocations: 67.22 kB / 0.953 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004748/0.5518, allocations: 380.3 kB / 0.9534 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000122/0.5519, allocations: 41.08 kB / 0.9534 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.715e-05/0.552, allocations: 30.36 kB / 0.9535 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.552, allocations: 0 / 0.9535 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002214/0.5523, allocations: 94.34 kB / 0.9536 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 2.475e-06/0.5523, allocations: 3.984 kB / 0.9536 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003836/0.5527, allocations: 127.6 kB / 0.9537 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.5527, allocations: 78.2 kB / 0.9538 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.5529, allocations: 265.1 kB / 0.954 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.553, allocations: 25.7 kB / 0.954 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.906e-05/0.553, allocations: 120.6 kB / 0.9541 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.553, allocations: 13.2 kB / 0.9542 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.262e-05/0.5531, allocations: 21.81 kB / 0.9542 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.317e-05/0.5531, allocations: 327.4 kB / 0.9545 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.921e-05/0.5532, allocations: 24.91 kB / 0.9545 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.848e-05/0.5533, allocations: 55.94 kB / 0.9546 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.5535, allocations: 71.08 kB / 0.9546 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5535, allocations: 0 / 0.9546 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002354/0.5538, allocations: 102 kB / 0.9547 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.5538, allocations: 5.531 kB / 0.9547 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.5538, allocations: 5.203 kB / 0.9547 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.5538, allocations: 5.188 kB / 0.9548 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.5539, allocations: 11.17 kB / 0.9548 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.5539, allocations: 5.156 kB / 0.9548 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.089e-05/0.554, allocations: 14.92 kB / 0.9548 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.166e-06/0.554, allocations: 2.344 kB / 0.9548 GB, free: 4.551 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 7.433e-05/0.5541, allocations: 136.4 kB / 0.9549 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.5541, allocations: 16.06 kB / 0.9549 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.151e-05/0.5542, allocations: 18.66 kB / 0.9549 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.5542, allocations: 1.25 kB / 0.9549 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.5542, allocations: 0 / 0.9549 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.5542, allocations: 3.984 kB / 0.955 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001303/0.5543, allocations: 220.1 kB / 0.9552 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.5543, allocations: 0 / 0.9552 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.422e-05/0.5544, allocations: 10.98 kB / 0.9552 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.5544, allocations: 5.125 kB / 0.9552 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.5544, allocations: 3.938 kB / 0.9552 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.5545, allocations: 5.016 kB / 0.9552 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5545, allocations: 0 / 0.9552 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002374/0.5547, allocations: 124.9 kB / 0.9553 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.82e-05/0.5547, allocations: 93.31 kB / 0.9554 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.5548, allocations: 7.938 kB / 0.9554 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.671e-05/0.5548, allocations: 14.48 kB / 0.9554 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.5549, allocations: 5.062 kB / 0.9554 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.5549, allocations: 4.5 kB / 0.9554 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001307/0.5551, allocations: 188.5 kB / 0.9556 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5551, allocations: 0 / 0.9556 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002051/0.5553, allocations: 22.25 kB / 0.9556 GB, free: 3.789 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.0005103/0.5558, allocations: 0.6794 MB / 0.9563 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002472/0.556, allocations: 63.84 kB / 0.9564 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.5561, allocations: 0 / 0.9564 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.88e-05/0.5562, allocations: 28.62 kB / 0.9564 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.5564, allocations: 49.7 kB / 0.9564 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/0.5581, allocations: 1.778 MB / 0.9582 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001339/0.5583, allocations: 0.7248 MB / 0.9589 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.352e-05/0.5583, allocations: 13.42 kB / 0.9589 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.639e-05/0.5584, allocations: 42.14 kB / 0.9589 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.5584, allocations: 1.094 kB / 0.9589 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02441/0.5828, allocations: 3.378 MB / 0.9622 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/0.583, allocations: 198.1 kB / 0.9624 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/2.334, allocations: 4 kB / 0.9624 GB, free: 14.88 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