Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001078/0.001078, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001257/0.001257, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.915/0.915, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.718/1.718, allocations: 359 MB / 0.6037 GB, free: 11.11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_11_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 0.9505 GB, free: 3.535 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.57e-05/1.702e-05, allocations: 5.094 kB / 0.9505 GB, free: 3.531 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002323/0.00234, allocations: 1.646 MB / 0.9521 GB, free: 1.867 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0006971/0.003037, allocations: 0.5843 MB / 0.9527 GB, free: 1.277 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.089e-05/0.003108, allocations: 3.938 kB / 0.9527 GB, free: 1.273 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.003278, allocations: 35.66 kB / 0.9527 GB, free: 1.238 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0002031/0.003481, allocations: 55.69 kB / 0.9527 GB, free: 1.184 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001668/0.003648, allocations: 87.77 kB / 0.9528 GB, free: 1.098 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.003799, allocations: 135.5 kB / 0.953 GB, free: 0.9648 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.003936, allocations: 29.66 kB / 0.953 GB, free: 0.9297 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.004103, allocations: 79.73 kB / 0.9531 GB, free: 0.8516 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 7.98e-05/0.004183, allocations: 51.81 kB / 0.9531 GB, free: 0.8008 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/0.004204, allocations: 8 kB / 0.9531 GB, free: 0.793 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.97e-05/0.004264, allocations: 31.92 kB / 0.9531 GB, free: 0.7617 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 7.631e-05/0.00434, allocations: 47.83 kB / 0.9532 GB, free: 0.7148 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 3.817e-05/0.004378, allocations: 31.86 kB / 0.9532 GB, free: 0.6836 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.004553, allocations: 155.4 kB / 0.9534 GB, free: 0.5312 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.004556, allocations: 0 / 0.9534 GB, free: 0.5312 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.122e-06/0.004557, allocations: 0 / 0.9534 GB, free: 0.5312 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.004562, allocations: 3.938 kB / 0.9534 GB, free: 0.5273 MB / 0.9011 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.0004567/0.005019, allocations: 401.3 kB / 0.9538 GB, free: 108 kB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.005059, allocations: 12.03 kB / 0.9538 GB, free: 96 kB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.608e-05/0.005095, allocations: 38.73 kB / 0.9538 GB, free: 48 kB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.005203, allocations: 32.73 kB / 0.9538 GB, free: 16 kB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002341/0.005437, allocations: 189 kB / 0.954 GB, free: 15.8 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.005448, allocations: 8.375 kB / 0.954 GB, free: 15.8 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-06/0.005457, allocations: 4.375 kB / 0.954 GB, free: 15.79 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.005665, allocations: 157.6 kB / 0.9542 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.005672, allocations: 4.188 kB / 0.9542 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.005685, allocations: 4.125 kB / 0.9542 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.005689, allocations: 0 / 0.9542 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001242/0.005814, allocations: 67.94 kB / 0.9543 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004098/0.006223, allocations: 343.6 kB / 0.9546 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 8.47e-05/0.006308, allocations: 50.47 kB / 0.9546 GB, free: 15.11 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.739e-05/0.006365, allocations: 28.89 kB / 0.9547 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/0.006379, allocations: 0 / 0.9547 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001638/0.006543, allocations: 148.5 kB / 0.9548 GB, free: 14.9 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=3): time 7.31e-07/0.006544, allocations: 0 / 0.9548 GB, free: 14.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3): time 0.0002565/0.0068, allocations: 121.5 kB / 0.9549 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.006835, allocations: 81.11 kB / 0.955 GB, free: 14.68 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.007017, allocations: 261.6 kB / 0.9552 GB, free: 14.42 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.007029, allocations: 25.7 kB / 0.9553 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 5.975e-05/0.007089, allocations: 136 kB / 0.9554 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.51e-05/0.007104, allocations: 11.91 kB / 0.9554 GB, free: 14.24 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.77e-05/0.007132, allocations: 13.72 kB / 0.9554 GB, free: 14.22 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.95e-05/0.007211, allocations: 326.8 kB / 0.9557 GB, free: 13.89 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.574e-05/0.007267, allocations: 23.97 kB / 0.9558 GB, free: 13.87 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.242e-05/0.007339, allocations: 77.11 kB / 0.9558 GB, free: 13.77 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.007452, allocations: 78.48 kB / 0.9559 GB, free: 13.69 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.007454, allocations: 3.938 kB / 0.9559 GB, free: 13.68 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001411/0.007595, allocations: 101.5 kB / 0.956 GB, free: 13.58 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.007606, allocations: 4 kB / 0.956 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.007612, allocations: 8.094 kB / 0.956 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.007622, allocations: 0 / 0.956 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.554e-05/0.007687, allocations: 11.98 kB / 0.956 GB, free: 13.55 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.007693, allocations: 3.938 kB / 0.956 GB, free: 13.55 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.248e-05/0.007736, allocations: 11.98 kB / 0.956 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.007742, allocations: 0 / 0.956 GB, free: 13.54 MB / 0.9167 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.249e-05/0.007814, allocations: 129.8 kB / 0.9562 GB, free: 13.4 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.609e-05/0.007831, allocations: 19.86 kB / 0.9562 GB, free: 13.38 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.664e-05/0.007857, allocations: 21.33 kB / 0.9562 GB, free: 13.36 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.007859, allocations: 7.938 kB / 0.9562 GB, free: 13.35 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.007863, allocations: 0 / 0.9562 GB, free: 13.35 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.007867, allocations: 3.938 kB / 0.9562 GB, free: 13.35 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001091/0.007976, allocations: 172.7 kB / 0.9564 GB, free: 13.14 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.007977, allocations: 3.938 kB / 0.9564 GB, free: 13.13 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.441e-05/0.008011, allocations: 15.98 kB / 0.9564 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.91e-07/0.008012, allocations: 0 / 0.9564 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.008018, allocations: 0 / 0.9564 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.008019, allocations: 0 / 0.9564 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.008019, allocations: 0 / 0.9564 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001555/0.008175, allocations: 124.9 kB / 0.9565 GB, free: 12.98 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.768e-05/0.008193, allocations: 19.8 kB / 0.9565 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.008209, allocations: 4 kB / 0.9565 GB, free: 12.95 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.538e-05/0.008244, allocations: 7.984 kB / 0.9566 GB, free: 12.95 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.008287, allocations: 15.92 kB / 0.9566 GB, free: 12.93 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.879e-05/0.008306, allocations: 4.328 kB / 0.9566 GB, free: 12.93 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.000121/0.008427, allocations: 189.2 kB / 0.9568 GB, free: 12.74 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.008427, allocations: 0 / 0.9568 GB, free: 12.74 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001508/0.008578, allocations: 24 kB / 0.9568 GB, free: 12.71 MB / 0.9167 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.0004776/0.009056, allocations: 0.6743 MB / 0.9574 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001767/0.009232, allocations: 67.81 kB / 0.9575 GB, free: 11.95 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.009234, allocations: 0 / 0.9575 GB, free: 11.95 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.885e-05/0.009293, allocations: 27.97 kB / 0.9575 GB, free: 11.92 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002259/0.009519, allocations: 51.33 kB / 0.9576 GB, free: 11.88 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001784/0.0113, allocations: 1.754 MB / 0.9593 GB, free: 10.02 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.897e-05/0.01137, allocations: 110.1 kB / 0.9594 GB, free: 9.895 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 5.221e-05/0.01142, allocations: 24.47 kB / 0.9594 GB, free: 9.871 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.117e-05/0.01149, allocations: 48.48 kB / 0.9595 GB, free: 9.824 MB / 0.9167 GB Notification: Performance of SimCode: time 1.002e-06/0.01149, allocations: 0 / 0.9595 GB, free: 9.824 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.02852, allocations: 4.406 MB / 0.9638 GB, free: 5.602 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.319/7.348, allocations: 2.062 kB / 0.9638 GB, free: 5.602 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_11_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable ramp.startTime from file Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! Error: Could not read variable cosine.y in file Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable cosine.y from file Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.476809126324952]