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.0007878/0.0007878, 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.0007855/0.0007855, allocations: 165.9 kB / 22.46 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.8729/0.8729, allocations: 177.1 MB / 202.8 MB, free: 5.766 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.835/1.835, 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.442e-06/1.442e-06, allocations: 0 / 0.9996 GB, free: 13.55 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.808e-05/1.953e-05, allocations: 6.281 kB / 0.9996 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002209/0.002228, allocations: 1.635 MB / 1.001 GB, free: 11.89 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0007184/0.002947, allocations: 0.5882 MB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.143e-05/0.003028, allocations: 7.938 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001981/0.003226, allocations: 27.67 kB / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0002954/0.003522, allocations: 63.67 kB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000244/0.003766, allocations: 79.77 kB / 1.002 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002134/0.003979, allocations: 135.5 kB / 1.002 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.004138, allocations: 33.67 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001982/0.004336, allocations: 79.8 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.004448, allocations: 51.86 kB / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.004475, allocations: 8 kB / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 7.554e-05/0.00455, allocations: 27.94 kB / 1.002 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 9.378e-05/0.004644, allocations: 47.83 kB / 1.002 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 5.58e-05/0.0047, allocations: 39.78 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.000239/0.004939, allocations: 147.5 kB / 1.003 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.004941, allocations: 0 / 1.003 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.01e-07/0.004942, allocations: 0 / 1.003 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.004946, allocations: 4 kB / 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.0006157/0.005562, allocations: 409.2 kB / 1.003 GB, free: 10.12 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.005608, allocations: 8.75 kB / 1.003 GB, free: 10.12 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.31e-05/0.005651, allocations: 42.73 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.005801, allocations: 20.84 kB / 1.003 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002973/0.006098, allocations: 177.5 kB / 1.003 GB, free: 9.848 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.006111, allocations: 8.375 kB / 1.003 GB, free: 9.84 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.287e-05/0.006124, allocations: 4.375 kB / 1.003 GB, free: 9.836 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003604/0.006484, allocations: 161.6 kB / 1.003 GB, free: 9.66 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.006494, allocations: 192 / 1.003 GB, free: 9.66 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.006508, allocations: 8.125 kB / 1.003 GB, free: 9.652 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.006514, allocations: 7.938 kB / 1.003 GB, free: 9.645 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.006694, allocations: 59.94 kB / 1.003 GB, free: 9.586 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005374/0.007231, allocations: 355.5 kB / 1.004 GB, free: 9.195 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/0.007349, allocations: 38.55 kB / 1.004 GB, free: 9.148 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.416e-05/0.007433, allocations: 28.89 kB / 1.004 GB, free: 9.117 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.00745, allocations: 0 / 1.004 GB, free: 9.117 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002219/0.007672, allocations: 148.5 kB / 1.004 GB, free: 8.941 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 7.61e-07/0.007673, allocations: 4 kB / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0003682/0.008041, allocations: 125.4 kB / 1.004 GB, free: 8.809 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.008089, allocations: 77.11 kB / 1.004 GB, free: 8.715 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.008351, allocations: 261.7 kB / 1.004 GB, free: 8.453 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.00837, allocations: 29.7 kB / 1.004 GB, free: 8.418 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 8.343e-05/0.008453, allocations: 132 kB / 1.005 GB, free: 8.285 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/0.008472, allocations: 11.89 kB / 1.005 GB, free: 8.273 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.04e-05/0.008512, allocations: 17.72 kB / 1.005 GB, free: 8.25 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.008625, allocations: 326.8 kB / 1.005 GB, free: 7.922 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.531e-05/0.00871, allocations: 27.97 kB / 1.005 GB, free: 7.895 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.008816, allocations: 73.11 kB / 1.005 GB, free: 7.805 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.008982, allocations: 70.48 kB / 1.005 GB, free: 7.727 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.008985, allocations: 0 / 1.005 GB, free: 7.727 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000234/0.009218, allocations: 105.5 kB / 1.005 GB, free: 7.617 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.009233, allocations: 4 kB / 1.005 GB, free: 7.613 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.009239, allocations: 0 / 1.005 GB, free: 7.613 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.009253, allocations: 0 / 1.005 GB, free: 7.613 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.034e-05/0.009344, allocations: 12.08 kB / 1.005 GB, free: 7.602 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.009354, allocations: 11.94 kB / 1.005 GB, free: 7.59 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.335e-05/0.009428, allocations: 19.94 kB / 1.005 GB, free: 7.57 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.009435, allocations: 3.938 kB / 1.005 GB, free: 7.566 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 9.981e-05/0.009535, allocations: 125.8 kB / 1.005 GB, free: 7.434 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.5e-05/0.00956, allocations: 15.91 kB / 1.005 GB, free: 7.418 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.186e-05/0.009592, allocations: 17.34 kB / 1.005 GB, free: 7.402 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.009595, allocations: 3.984 kB / 1.005 GB, free: 7.398 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.0096, allocations: 4 kB / 1.005 GB, free: 7.395 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.009604, allocations: 3.938 kB / 1.005 GB, free: 7.391 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000148/0.009752, allocations: 172.7 kB / 1.006 GB, free: 7.18 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.009753, allocations: 0 / 1.006 GB, free: 7.18 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.174e-05/0.009805, allocations: 15.92 kB / 1.006 GB, free: 7.164 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.009806, allocations: 0 / 1.006 GB, free: 7.164 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.009817, allocations: 4 kB / 1.006 GB, free: 7.16 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.009819, allocations: 0 / 1.006 GB, free: 7.16 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.009821, allocations: 3.984 kB / 1.006 GB, free: 7.156 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002227/0.01004, allocations: 128.8 kB / 1.006 GB, free: 7.012 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 2.431e-05/0.01007, allocations: 24.17 kB / 1.006 GB, free: 6.988 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.01009, allocations: 0 / 1.006 GB, free: 6.988 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.87e-05/0.01015, allocations: 11.98 kB / 1.006 GB, free: 6.977 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.45e-05/0.01019, allocations: 11.91 kB / 1.006 GB, free: 6.965 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/0.01021, allocations: 4 kB / 1.006 GB, free: 6.961 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0001712/0.01038, allocations: 193.2 kB / 1.006 GB, free: 6.77 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1e-07/0.01038, allocations: 0 / 1.006 GB, free: 6.77 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002716/0.01066, allocations: 20 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.0005718/0.01123, allocations: 0.6875 MB / 1.007 GB, free: 6.039 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002222/0.01145, allocations: 56 kB / 1.007 GB, free: 5.984 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.01145, allocations: 4.062 kB / 1.007 GB, free: 5.98 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.287e-05/0.01154, allocations: 27.97 kB / 1.007 GB, free: 5.953 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.01183, allocations: 38.59 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.001999/0.01383, allocations: 1.765 MB / 1.008 GB, free: 4.047 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.712e-05/0.01392, allocations: 106.2 kB / 1.009 GB, free: 3.926 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 7.09e-05/0.01399, allocations: 12.48 kB / 1.009 GB, free: 3.914 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.922e-05/0.01407, allocations: 48.47 kB / 1.009 GB, free: 3.867 MB / 0.9636 GB Notification: Performance of SimCode: time 9.12e-07/0.01407, allocations: 4 kB / 1.009 GB, free: 3.863 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02008/0.03415, allocations: 4.419 MB / 1.013 GB, free: 15.6 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.23/7.264, allocations: 7 kB / 1.013 GB, free: 15.6 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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] "Error: Could not read variable ramp.startTime in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable ramp.startTime from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! Error: Could not read variable cosine.y in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable cosine.y from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.447477015666664]