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.001456/0.001456, 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.001528/0.001528, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.189/1.189, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.202/2.202, allocations: 390.3 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.91 kB / 0.8127 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5501/0.5515, allocations: 140.4 MB / 0.9497 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002243/0.5537, allocations: 1.629 MB / 0.9513 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006154/0.5544, allocations: 0.5391 MB / 0.9518 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.105e-05/0.5544, allocations: 6.625 kB / 0.9519 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.5546, allocations: 34.45 kB / 0.9519 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001769/0.5547, allocations: 59.91 kB / 0.9519 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001171/0.5549, allocations: 66.92 kB / 0.952 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.555, allocations: 130.6 kB / 0.9521 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.5551, allocations: 50.86 kB / 0.9522 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.316e-05/0.5552, allocations: 61.52 kB / 0.9522 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.19e-05/0.5553, allocations: 60.45 kB / 0.9523 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.5553, allocations: 7.469 kB / 0.9523 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.913e-05/0.5554, allocations: 24.03 kB / 0.9523 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.787e-05/0.5555, allocations: 48.08 kB / 0.9524 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.754e-05/0.5555, allocations: 55.64 kB / 0.9524 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.5557, allocations: 145.1 kB / 0.9526 GB, free: 7 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.5557, allocations: 0 / 0.9526 GB, free: 7 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.383e-06/0.5557, allocations: 0 / 0.9526 GB, free: 7 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.5557, allocations: 1.5 kB / 0.9526 GB, free: 7 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.0004348/0.5561, allocations: 469.4 kB / 0.953 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.965e-05/0.5562, allocations: 10.03 kB / 0.953 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.813e-05/0.5562, allocations: 37.44 kB / 0.9531 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.669e-05/0.5562, allocations: 20.91 kB / 0.9531 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.5564, allocations: 234 kB / 0.9533 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-06/0.5564, allocations: 7.156 kB / 0.9533 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.5564, allocations: 8.125 kB / 0.9533 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002268/0.5567, allocations: 116.5 kB / 0.9534 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.5567, allocations: 0 / 0.9534 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.5567, allocations: 1.469 kB / 0.9534 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.5567, allocations: 1.344 kB / 0.9534 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000207/0.5569, allocations: 64.16 kB / 0.9535 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004221/0.5573, allocations: 387.9 kB / 0.9539 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.5575, allocations: 44.2 kB / 0.9539 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.541e-05/0.5576, allocations: 22.44 kB / 0.9539 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.988e-06/0.5576, allocations: 5.266 kB / 0.9539 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001922/0.5578, allocations: 102.1 kB / 0.954 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.5578, allocations: 0 / 0.954 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003632/0.5581, allocations: 127.9 kB / 0.9541 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.5582, allocations: 81.11 kB / 0.9542 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.5584, allocations: 260.5 kB / 0.9545 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.5584, allocations: 26.73 kB / 0.9545 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.321e-05/0.5584, allocations: 125.2 kB / 0.9546 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.33e-05/0.5584, allocations: 8.969 kB / 0.9546 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.948e-05/0.5585, allocations: 21.02 kB / 0.9546 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.093e-05/0.5585, allocations: 327.7 kB / 0.955 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.5586, allocations: 28.69 kB / 0.955 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/0.5587, allocations: 47.75 kB / 0.955 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.5589, allocations: 71.44 kB / 0.9551 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.5589, allocations: 0 / 0.9551 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002378/0.5592, allocations: 102 kB / 0.9552 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.5592, allocations: 5.25 kB / 0.9552 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.5592, allocations: 1.281 kB / 0.9552 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.5592, allocations: 5.156 kB / 0.9552 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.149e-05/0.5593, allocations: 15.33 kB / 0.9552 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.5593, allocations: 1.156 kB / 0.9552 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.933e-05/0.5594, allocations: 15.17 kB / 0.9552 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.5594, allocations: 2.25 kB / 0.9552 GB, free: 4.555 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 6.138e-05/0.5595, allocations: 131.6 kB / 0.9554 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.5595, allocations: 16.16 kB / 0.9554 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.694e-05/0.5595, allocations: 23.14 kB / 0.9554 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.5596, allocations: 1.25 kB / 0.9554 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.624e-06/0.5596, allocations: 4 kB / 0.9554 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.5596, allocations: 0 / 0.9554 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.925e-05/0.5597, allocations: 216.8 kB / 0.9556 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.5597, allocations: 3.984 kB / 0.9556 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.075e-05/0.5598, allocations: 14.77 kB / 0.9556 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.5598, allocations: 1.375 kB / 0.9556 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.5598, allocations: 3.938 kB / 0.9556 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5598, allocations: 0 / 0.9556 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.5598, allocations: 1.375 kB / 0.9556 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002376/0.56, allocations: 123.8 kB / 0.9558 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.455e-05/0.5601, allocations: 88.23 kB / 0.9558 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.5601, allocations: 9.188 kB / 0.9558 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.637e-05/0.5602, allocations: 9.984 kB / 0.9559 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.939e-05/0.5602, allocations: 10.36 kB / 0.9559 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.5602, allocations: 4.781 kB / 0.9559 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001176/0.5604, allocations: 193.7 kB / 0.9561 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5604, allocations: 3.938 kB / 0.9561 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001944/0.5606, allocations: 20.84 kB / 0.9561 GB, free: 3.793 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.0004464/0.561, allocations: 0.6849 MB / 0.9568 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000249/0.5613, allocations: 59.41 kB / 0.9568 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5613, allocations: 1.375 kB / 0.9568 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.5614, allocations: 31.75 kB / 0.9568 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.0002459/0.5616, allocations: 47.56 kB / 0.9569 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.5631, allocations: 1.73 MB / 0.9586 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/0.5633, allocations: 0.7175 MB / 0.9593 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.531e-05/0.5633, allocations: 21.28 kB / 0.9593 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.253e-05/0.5634, allocations: 46.45 kB / 0.9593 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.5634, allocations: 0 / 0.9593 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7122/1.276, allocations: 3.567 MB / 0.9628 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.611/8.887, allocations: 9.609 kB / 0.9628 GB, free: 15.01 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