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.0007937/0.0007937, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0007924/0.0007924, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8993/0.8993, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.833/1.833, allocations: 389 MB / 0.633 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 0.9996 GB, free: 13.55 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.991e-05/2.147e-05, allocations: 10.22 kB / 0.9996 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002337/0.002359, allocations: 1.645 MB / 1.001 GB, free: 11.88 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0007114/0.00307, allocations: 0.5765 MB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.804e-05/0.003138, allocations: 11.94 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.003286, allocations: 23.73 kB / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0002137/0.0035, allocations: 67.61 kB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001531/0.003653, allocations: 75.78 kB / 1.002 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001406/0.003793, allocations: 143.5 kB / 1.002 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.003916, allocations: 29.67 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.004055, allocations: 79.8 kB / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.307e-05/0.004128, allocations: 47.88 kB / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.148e-05/0.004149, allocations: 11.94 kB / 1.002 GB, free: 10.81 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.661e-05/0.004206, allocations: 31.92 kB / 1.002 GB, free: 10.78 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 7.465e-05/0.004281, allocations: 47.83 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.877e-05/0.004319, allocations: 35.91 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001694/0.004489, allocations: 151.4 kB / 1.003 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.004491, allocations: 0 / 1.003 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.62e-07/0.004492, allocations: 0 / 1.003 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.004496, allocations: 0 / 1.003 GB, free: 10.55 MB / 0.9636 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.0004413/0.004937, allocations: 401.3 kB / 1.003 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.004978, allocations: 16.75 kB / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.085e-05/0.005008, allocations: 34.73 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.005118, allocations: 32.78 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.005339, allocations: 177.4 kB / 1.003 GB, free: 9.84 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-06/0.005348, allocations: 4.375 kB / 1.003 GB, free: 9.836 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.00536, allocations: 8.375 kB / 1.003 GB, free: 9.828 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.005561, allocations: 165.6 kB / 1.003 GB, free: 9.648 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.005567, allocations: 192 / 1.003 GB, free: 9.648 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.005579, allocations: 8.125 kB / 1.003 GB, free: 9.641 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.005583, allocations: 0 / 1.003 GB, free: 9.641 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.005701, allocations: 63.88 kB / 1.003 GB, free: 9.578 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003749/0.006076, allocations: 335.7 kB / 1.004 GB, free: 9.207 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 7.833e-05/0.006154, allocations: 50.48 kB / 1.004 GB, free: 9.148 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.577e-05/0.00621, allocations: 24.89 kB / 1.004 GB, free: 9.121 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.006226, allocations: 0 / 1.004 GB, free: 9.121 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001552/0.006381, allocations: 156.5 kB / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 6.91e-07/0.006382, allocations: 0 / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0002444/0.006626, allocations: 125.4 kB / 1.004 GB, free: 8.809 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.006659, allocations: 81.11 kB / 1.004 GB, free: 8.711 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.00683, allocations: 261.7 kB / 1.004 GB, free: 8.449 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.006842, allocations: 25.7 kB / 1.004 GB, free: 8.418 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.844e-05/0.006901, allocations: 132 kB / 1.005 GB, free: 8.285 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.006916, allocations: 15.88 kB / 1.005 GB, free: 8.27 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.753e-05/0.006944, allocations: 17.72 kB / 1.005 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.655e-05/0.00702, allocations: 326.8 kB / 1.005 GB, free: 7.918 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.456e-05/0.007075, allocations: 23.97 kB / 1.005 GB, free: 7.895 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.786e-05/0.007143, allocations: 77.11 kB / 1.005 GB, free: 7.801 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.007259, allocations: 70.45 kB / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.007261, allocations: 0 / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001424/0.007404, allocations: 101.5 kB / 1.005 GB, free: 7.617 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.007415, allocations: 7.984 kB / 1.005 GB, free: 7.609 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.007419, allocations: 4 kB / 1.005 GB, free: 7.605 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.007429, allocations: 0 / 1.005 GB, free: 7.605 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.143e-05/0.00749, allocations: 11.98 kB / 1.005 GB, free: 7.594 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.007494, allocations: 3.938 kB / 1.005 GB, free: 7.59 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.537e-05/0.00754, allocations: 19.94 kB / 1.005 GB, free: 7.57 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.007546, allocations: 96 / 1.005 GB, free: 7.57 MB / 0.9636 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.456e-05/0.00762, allocations: 137.7 kB / 1.005 GB, free: 7.426 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.423e-05/0.007634, allocations: 15.91 kB / 1.005 GB, free: 7.41 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.566e-05/0.00766, allocations: 21.34 kB / 1.005 GB, free: 7.391 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.007663, allocations: 3.984 kB / 1.005 GB, free: 7.387 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.007666, allocations: 0 / 1.005 GB, free: 7.387 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.007669, allocations: 3.938 kB / 1.005 GB, free: 7.383 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.612e-05/0.007765, allocations: 172.7 kB / 1.006 GB, free: 7.172 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.007766, allocations: 0 / 1.006 GB, free: 7.172 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.152e-05/0.007797, allocations: 11.98 kB / 1.006 GB, free: 7.16 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.007799, allocations: 4 kB / 1.006 GB, free: 7.156 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.461e-06/0.007804, allocations: 0 / 1.006 GB, free: 7.156 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.92e-07/0.007805, allocations: 0 / 1.006 GB, free: 7.156 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.007806, allocations: 3.984 kB / 1.006 GB, free: 7.152 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001446/0.007951, allocations: 124.9 kB / 1.006 GB, free: 7.012 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.442e-05/0.007965, allocations: 15.84 kB / 1.006 GB, free: 6.996 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.007979, allocations: 8 kB / 1.006 GB, free: 6.988 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.406e-05/0.008013, allocations: 11.92 kB / 1.006 GB, free: 6.977 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.378e-05/0.008047, allocations: 15.92 kB / 1.006 GB, free: 6.961 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.008062, allocations: 4 kB / 1.006 GB, free: 6.957 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0001165/0.008178, allocations: 193.2 kB / 1.006 GB, free: 6.766 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.008178, allocations: 0 / 1.006 GB, free: 6.766 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001443/0.008322, allocations: 16 kB / 1.006 GB, free: 6.75 MB / 0.9636 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.0004043/0.008727, allocations: 0.6785 MB / 1.007 GB, free: 6.047 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001546/0.008881, allocations: 55.88 kB / 1.007 GB, free: 5.992 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.008883, allocations: 0 / 1.007 GB, free: 5.992 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.376e-05/0.008937, allocations: 27.97 kB / 1.007 GB, free: 5.965 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001965/0.009133, allocations: 53.95 kB / 1.007 GB, free: 5.918 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.01044, allocations: 1.769 MB / 1.008 GB, free: 4.043 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.262e-05/0.01051, allocations: 106.2 kB / 1.009 GB, free: 3.922 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 4.44e-05/0.01055, allocations: 16.48 kB / 1.009 GB, free: 3.906 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.668e-05/0.01061, allocations: 48.47 kB / 1.009 GB, free: 3.859 MB / 0.9636 GB Notification: Performance of SimCode: time 8.31e-07/0.01061, allocations: 0 / 1.009 GB, free: 3.859 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01575/0.02636, allocations: 4.415 MB / 1.013 GB, free: 15.6 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.096/7.122, allocations: 10.34 kB / 1.013 GB, free: 15.59 MB / 0.9792 GB " [Timeout remaining time 293] (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/jenkins/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: 11.245297310873866]