Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001228/0.001228, 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.001045/0.001045, allocations: 170.3 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.8974/0.8974, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.76/1.76, allocations: 377.8 MB / 0.6221 GB, free: 8.652 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 0.9809 GB, free: 2.621 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.174e-05/2.371e-05, allocations: 5.516 kB / 0.9809 GB, free: 2.617 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003205/0.003228, allocations: 1.661 MB / 0.9826 GB, free: 0.9453 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.004332, allocations: 0.5844 MB / 0.9831 GB, free: 364 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.521e-05/0.004418, allocations: 4 kB / 0.9831 GB, free: 360 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.004609, allocations: 23.67 kB / 0.9831 GB, free: 336 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0002919/0.004901, allocations: 67.67 kB / 0.9832 GB, free: 268 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.005138, allocations: 71.78 kB / 0.9833 GB, free: 196 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.005355, allocations: 143.5 kB / 0.9834 GB, free: 52 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.00552, allocations: 29.67 kB / 0.9834 GB, free: 20 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002489/0.005769, allocations: 83.8 kB / 0.9835 GB, free: 15.94 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.005879, allocations: 47.88 kB / 0.9836 GB, free: 15.89 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.997e-05/0.005908, allocations: 8 kB / 0.9836 GB, free: 15.88 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 7.938e-05/0.005988, allocations: 31.86 kB / 0.9836 GB, free: 15.85 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 9.673e-05/0.006085, allocations: 55.77 kB / 0.9837 GB, free: 15.8 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.096e-05/0.006136, allocations: 27.92 kB / 0.9837 GB, free: 15.77 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002464/0.006382, allocations: 151.4 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.006385, allocations: 4 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.362e-06/0.006386, allocations: 0 / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.006392, allocations: 0 / 0.9838 GB, free: 15.62 MB / 0.948 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.0006131/0.007005, allocations: 405.3 kB / 0.9842 GB, free: 15.19 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.007048, allocations: 8.031 kB / 0.9842 GB, free: 15.18 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.6e-05/0.007094, allocations: 38.75 kB / 0.9843 GB, free: 15.14 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001866/0.007281, allocations: 28.78 kB / 0.9843 GB, free: 15.11 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000493/0.007774, allocations: 181.2 kB / 0.9845 GB, free: 14.91 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.007785, allocations: 384 / 0.9845 GB, free: 14.91 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.007801, allocations: 16.31 kB / 0.9845 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003093/0.00811, allocations: 165.5 kB / 0.9846 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.008119, allocations: 192 / 0.9846 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.008136, allocations: 8.125 kB / 0.9847 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.008142, allocations: 7.938 kB / 0.9847 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.008355, allocations: 59.94 kB / 0.9847 GB, free: 14.64 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006298/0.008984, allocations: 343.6 kB / 0.985 GB, free: 14.26 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.009119, allocations: 38.55 kB / 0.9851 GB, free: 14.21 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.658e-05/0.009206, allocations: 20.91 kB / 0.9851 GB, free: 14.19 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.009224, allocations: 4 kB / 0.9851 GB, free: 14.18 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.009469, allocations: 152.4 kB / 0.9852 GB, free: 14 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.00947, allocations: 0 / 0.9852 GB, free: 14 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0003942/0.009865, allocations: 121.5 kB / 0.9854 GB, free: 13.88 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.009911, allocations: 77.11 kB / 0.9854 GB, free: 13.79 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003411/0.01025, allocations: 265.6 kB / 0.9857 GB, free: 13.52 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.01027, allocations: 25.7 kB / 0.9857 GB, free: 13.49 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 8.169e-05/0.01035, allocations: 132 kB / 0.9858 GB, free: 13.36 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.01037, allocations: 7.938 kB / 0.9858 GB, free: 13.35 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.39e-05/0.01041, allocations: 17.72 kB / 0.9859 GB, free: 13.32 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.01052, allocations: 326.8 kB / 0.9862 GB, free: 13 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.643e-05/0.01061, allocations: 31.97 kB / 0.9862 GB, free: 12.96 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.01073, allocations: 77.23 kB / 0.9863 GB, free: 12.87 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.0109, allocations: 58.53 kB / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.0109, allocations: 4.031 kB / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002493/0.01115, allocations: 101.6 kB / 0.9864 GB, free: 12.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.01117, allocations: 8 kB / 0.9864 GB, free: 12.69 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.01117, allocations: 0 / 0.9864 GB, free: 12.69 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.01119, allocations: 3.984 kB / 0.9864 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.01129, allocations: 19.91 kB / 0.9865 GB, free: 12.66 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.0113, allocations: 4.031 kB / 0.9865 GB, free: 12.66 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.632e-05/0.01137, allocations: 19.95 kB / 0.9865 GB, free: 12.64 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.01139, allocations: 7.984 kB / 0.9865 GB, free: 12.63 MB / 0.948 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.0001004/0.01149, allocations: 117.8 kB / 0.9866 GB, free: 12.51 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.01152, allocations: 19.89 kB / 0.9866 GB, free: 12.49 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.547e-05/0.01155, allocations: 25.28 kB / 0.9867 GB, free: 12.46 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.01156, allocations: 0 / 0.9867 GB, free: 12.46 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.01156, allocations: 0 / 0.9867 GB, free: 12.46 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.01156, allocations: 3.938 kB / 0.9867 GB, free: 12.46 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001569/0.01172, allocations: 176.7 kB / 0.9868 GB, free: 12.25 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.01172, allocations: 4 kB / 0.9868 GB, free: 12.24 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.609e-05/0.01179, allocations: 11.98 kB / 0.9868 GB, free: 12.23 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.01179, allocations: 4 kB / 0.9868 GB, free: 12.23 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.0118, allocations: 3.984 kB / 0.9868 GB, free: 12.22 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.0118, allocations: 0 / 0.9868 GB, free: 12.22 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.01181, allocations: 4 kB / 0.9869 GB, free: 12.22 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002567/0.01206, allocations: 128.8 kB / 0.987 GB, free: 12.07 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.48e-05/0.01209, allocations: 19.78 kB / 0.987 GB, free: 12.05 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.01211, allocations: 8 kB / 0.987 GB, free: 12.05 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.78e-05/0.01218, allocations: 11.98 kB / 0.987 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.378e-05/0.01222, allocations: 7.922 kB / 0.987 GB, free: 12.03 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.01224, allocations: 4 kB / 0.987 GB, free: 12.02 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0001764/0.01242, allocations: 193.2 kB / 0.9872 GB, free: 11.84 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.11e-07/0.01242, allocations: 0 / 0.9872 GB, free: 11.84 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002582/0.01268, allocations: 20 kB / 0.9872 GB, free: 11.82 MB / 0.948 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.0007682/0.01345, allocations: 0.6876 MB / 0.9879 GB, free: 11.11 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002336/0.01368, allocations: 51.94 kB / 0.988 GB, free: 11.06 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.01368, allocations: 192 / 0.988 GB, free: 11.06 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 9.059e-05/0.01377, allocations: 31.97 kB / 0.988 GB, free: 11.03 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.01408, allocations: 41.22 kB / 0.988 GB, free: 10.99 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/0.01611, allocations: 1.773 MB / 0.9898 GB, free: 9.113 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.413e-05/0.01621, allocations: 110.2 kB / 0.9899 GB, free: 8.988 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 7.731e-05/0.01628, allocations: 12.48 kB / 0.9899 GB, free: 8.973 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.095e-05/0.01636, allocations: 48.47 kB / 0.9899 GB, free: 8.926 MB / 0.948 GB Notification: Performance of SimCode: time 5.91e-07/0.01636, allocations: 0 / 0.9899 GB, free: 8.926 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01777/0.03413, allocations: 4.415 MB / 0.9942 GB, free: 4.68 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.041/7.075, allocations: 12.14 kB / 0.9942 GB, free: 4.672 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable ramp.startTime from file Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! Error: Could not read variable cosine.y in file Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable cosine.y from file Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.3162711430341]