Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 212.3 kB / 22.25 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.247/3.247, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 66.66 kB / 1.186 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3566, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003266/0.3599, allocations: 1.656 MB / 1.365 GB, free: 12.42 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.361, allocations: 0.5778 MB / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.841e-05/0.3611, allocations: 3.938 kB / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.3613, allocations: 31.77 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002622/0.3615, allocations: 63.69 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.3617, allocations: 79.77 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002132/0.362, allocations: 135.5 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.3621, allocations: 33.89 kB / 1.366 GB, free: 11.49 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.3623, allocations: 67.7 kB / 1.366 GB, free: 11.43 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.3625, allocations: 63.69 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.3625, allocations: 8 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.036e-05/0.3626, allocations: 27.98 kB / 1.366 GB, free: 11.33 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.652e-05/0.3627, allocations: 47.83 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.869e-05/0.3627, allocations: 43.67 kB / 1.366 GB, free: 11.24 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002583/0.363, allocations: 147.3 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.363, allocations: 0 / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.492e-06/0.363, allocations: 0 / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.363, allocations: 4 kB / 1.366 GB, free: 11.09 MB / 1.061 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.0006408/0.3636, allocations: 401.3 kB / 1.367 GB, free: 10.67 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.3637, allocations: 8.031 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.535e-05/0.3637, allocations: 46.67 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.3639, allocations: 28.78 kB / 1.367 GB, free: 10.58 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.3642, allocations: 182 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.3642, allocations: 4.375 kB / 1.367 GB, free: 10.37 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.3642, allocations: 8.359 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003093/0.3645, allocations: 171 kB / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.3645, allocations: 0 / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.3646, allocations: 3.938 kB / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.3646, allocations: 4 kB / 1.367 GB, free: 10.17 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002223/0.3648, allocations: 63.94 kB / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005978/0.3654, allocations: 339.6 kB / 1.367 GB, free: 9.734 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.3655, allocations: 42.55 kB / 1.368 GB, free: 9.684 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.3656, allocations: 32.89 kB / 1.368 GB, free: 9.648 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.3656, allocations: 3.938 kB / 1.368 GB, free: 9.645 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.3659, allocations: 144.5 kB / 1.368 GB, free: 9.473 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.3659, allocations: 0 / 1.368 GB, free: 9.473 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0004317/0.3664, allocations: 129.4 kB / 1.368 GB, free: 9.34 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.3664, allocations: 81.09 kB / 1.368 GB, free: 9.242 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.3667, allocations: 252.9 kB / 1.368 GB, free: 8.984 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.3667, allocations: 29.7 kB / 1.368 GB, free: 8.949 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.3669, allocations: 132.1 kB / 1.368 GB, free: 8.816 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/0.3669, allocations: 3.953 kB / 1.368 GB, free: 8.812 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.257e-05/0.3669, allocations: 17.72 kB / 1.368 GB, free: 8.789 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001611/0.3671, allocations: 326.8 kB / 1.369 GB, free: 8.461 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.3672, allocations: 27.98 kB / 1.369 GB, free: 8.434 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001442/0.3673, allocations: 73.11 kB / 1.369 GB, free: 8.344 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.3676, allocations: 74.39 kB / 1.369 GB, free: 8.262 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3676, allocations: 0 / 1.369 GB, free: 8.262 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002855/0.3678, allocations: 109.5 kB / 1.369 GB, free: 8.148 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.3679, allocations: 4 kB / 1.369 GB, free: 8.145 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.3679, allocations: 0 / 1.369 GB, free: 8.145 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.3679, allocations: 3.938 kB / 1.369 GB, free: 8.141 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.368, allocations: 11.98 kB / 1.369 GB, free: 8.129 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.368, allocations: 4 kB / 1.369 GB, free: 8.125 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.057e-05/0.3681, allocations: 27.91 kB / 1.369 GB, free: 8.098 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.3681, allocations: 0 / 1.369 GB, free: 8.098 MB / 1.061 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.0001143/0.3682, allocations: 129.8 kB / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.3682, allocations: 15.91 kB / 1.369 GB, free: 7.945 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.839e-05/0.3683, allocations: 21.27 kB / 1.369 GB, free: 7.922 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3683, allocations: 0 / 1.369 GB, free: 7.922 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3683, allocations: 4 kB / 1.369 GB, free: 7.918 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.3683, allocations: 0 / 1.369 GB, free: 7.918 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.3685, allocations: 176.7 kB / 1.369 GB, free: 7.703 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3685, allocations: 0 / 1.369 GB, free: 7.703 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.679e-05/0.3685, allocations: 15.98 kB / 1.369 GB, free: 7.688 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.3685, allocations: 4 kB / 1.369 GB, free: 7.684 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.3686, allocations: 7.938 kB / 1.369 GB, free: 7.676 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.598e-06/0.3686, allocations: 3.984 kB / 1.369 GB, free: 7.672 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3686, allocations: 3.938 kB / 1.369 GB, free: 7.668 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.3689, allocations: 124.9 kB / 1.369 GB, free: 7.527 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.965e-05/0.3689, allocations: 15.89 kB / 1.369 GB, free: 7.512 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.3689, allocations: 3.938 kB / 1.369 GB, free: 7.508 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.467e-05/0.369, allocations: 19.98 kB / 1.369 GB, free: 7.488 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-05/0.369, allocations: 336 / 1.369 GB, free: 7.488 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.3691, allocations: 7.984 kB / 1.369 GB, free: 7.48 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001977/0.3693, allocations: 188.5 kB / 1.37 GB, free: 7.301 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.3693, allocations: 0 / 1.37 GB, free: 7.301 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002201/0.3695, allocations: 23.98 kB / 1.37 GB, free: 7.277 MB / 1.061 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.000786/0.3703, allocations: 0.6906 MB / 1.37 GB, free: 6.562 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.00029/0.3706, allocations: 55.83 kB / 1.37 GB, free: 6.508 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3706, allocations: 0 / 1.37 GB, free: 6.508 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.3707, allocations: 32.16 kB / 1.37 GB, free: 6.477 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.371, allocations: 39.64 kB / 1.37 GB, free: 6.441 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002281/0.3733, allocations: 1.765 MB / 1.372 GB, free: 4.578 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.3734, allocations: 106.1 kB / 1.372 GB, free: 4.453 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.33e-05/0.3734, allocations: 20.33 kB / 1.372 GB, free: 4.434 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.116e-05/0.3735, allocations: 43.42 kB / 1.372 GB, free: 4.391 MB / 1.061 GB Notification: Performance of SimCode: time 6.51e-07/0.3735, allocations: 0 / 1.372 GB, free: 4.391 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03202/0.4055, allocations: 4.265 MB / 1.377 GB, free: 284 kB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.12, allocations: 14.94 kB / 1.377 GB, free: 272 kB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.85565403616056]