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.001394/0.001394, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00174/0.00174, allocations: 212.5 kB / 22.24 MB, free: 5.262 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.46/1.46, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.762/2.762, allocations: 476 MB / 0.7699 GB, free: 4.773 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: 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.002139/0.002139, allocations: 66.33 kB / 1.117 GB, free: 41.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.318, allocations: 169.9 MB / 1.283 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.0033/0.3213, allocations: 1.65 MB / 1.284 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.3224, allocations: 0.5862 MB / 1.285 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.85e-05/0.3225, allocations: 7.938 kB / 1.285 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.3227, allocations: 23.8 kB / 1.285 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002645/0.3229, allocations: 67.61 kB / 1.285 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.3231, allocations: 75.84 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002055/0.3234, allocations: 131.5 kB / 1.285 GB, free: 9.988 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.3235, allocations: 41.53 kB / 1.285 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.3237, allocations: 71.7 kB / 1.285 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.3238, allocations: 63.69 kB / 1.285 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.77e-05/0.3238, allocations: 8 kB / 1.285 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.991e-05/0.3239, allocations: 24 kB / 1.285 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.391e-05/0.324, allocations: 43.83 kB / 1.285 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.077e-05/0.3241, allocations: 55.61 kB / 1.285 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.3243, allocations: 145.1 kB / 1.285 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3243, allocations: 0 / 1.285 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3243, allocations: 0 / 1.285 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.3243, allocations: 0 / 1.285 GB, free: 9.543 MB / 0.9825 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.0006599/0.325, allocations: 417.2 kB / 1.286 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.325, allocations: 12.03 kB / 1.286 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.798e-05/0.3251, allocations: 30.75 kB / 1.286 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.3252, allocations: 28.83 kB / 1.286 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.3256, allocations: 178.2 kB / 1.286 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.3256, allocations: 4.375 kB / 1.286 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.448e-05/0.3256, allocations: 12.38 kB / 1.286 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.3259, allocations: 157.2 kB / 1.286 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.3259, allocations: 3.938 kB / 1.286 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.3259, allocations: 4 kB / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.3259, allocations: 3.984 kB / 1.286 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002228/0.3262, allocations: 59.94 kB / 1.286 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006166/0.3268, allocations: 343.7 kB / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001399/0.3269, allocations: 38.56 kB / 1.287 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.327, allocations: 24.89 kB / 1.287 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.327, allocations: 0 / 1.287 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002799/0.3273, allocations: 160.5 kB / 1.287 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3273, allocations: 3.938 kB / 1.287 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.000448/0.3278, allocations: 129.4 kB / 1.287 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.3278, allocations: 77.11 kB / 1.287 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/0.3281, allocations: 260.9 kB / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.3282, allocations: 25.7 kB / 1.287 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.3283, allocations: 132 kB / 1.287 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.3283, allocations: 7.953 kB / 1.287 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.29e-05/0.3283, allocations: 17.7 kB / 1.287 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3285, allocations: 330.8 kB / 1.288 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.3286, allocations: 23.97 kB / 1.288 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.3287, allocations: 73.11 kB / 1.288 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/0.329, allocations: 66.47 kB / 1.288 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.329, allocations: 4.031 kB / 1.288 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002896/0.3293, allocations: 105.4 kB / 1.288 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3293, allocations: 8 kB / 1.288 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.3293, allocations: 0 / 1.288 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.3293, allocations: 3.938 kB / 1.288 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.3294, allocations: 11.98 kB / 1.288 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.3294, allocations: 8.031 kB / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.471e-05/0.3295, allocations: 23.88 kB / 1.288 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-06/0.3295, allocations: 4 kB / 1.288 GB, free: 6.547 MB / 0.9825 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.0001243/0.3296, allocations: 121.8 kB / 1.288 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.018e-05/0.3297, allocations: 15.91 kB / 1.288 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.746e-05/0.3297, allocations: 29.27 kB / 1.288 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.3297, allocations: 0 / 1.288 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3297, allocations: 0 / 1.288 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-06/0.3297, allocations: 0 / 1.288 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.3299, allocations: 172.7 kB / 1.288 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3299, allocations: 4 kB / 1.288 GB, free: 6.156 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.764e-05/0.33, allocations: 11.98 kB / 1.288 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.33, allocations: 0 / 1.288 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.33, allocations: 3.938 kB / 1.288 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.33, allocations: 0 / 1.288 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.33, allocations: 0 / 1.288 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.3303, allocations: 136.9 kB / 1.289 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.736e-05/0.3303, allocations: 11.91 kB / 1.289 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.3304, allocations: 7.938 kB / 1.289 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.044e-05/0.3304, allocations: 7.984 kB / 1.289 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.3305, allocations: 7.984 kB / 1.289 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/0.3305, allocations: 8 kB / 1.289 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002003/0.3307, allocations: 188.5 kB / 1.289 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3307, allocations: 3.938 kB / 1.289 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000233/0.3309, allocations: 20 kB / 1.289 GB, free: 5.742 MB / 0.9825 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.0008771/0.3318, allocations: 0.6903 MB / 1.29 GB, free: 5.031 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003137/0.3321, allocations: 63.81 kB / 1.29 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3321, allocations: 192 / 1.29 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.3323, allocations: 27.98 kB / 1.29 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.3326, allocations: 37.27 kB / 1.29 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.335, allocations: 1.774 MB / 1.291 GB, free: 3.027 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.3351, allocations: 102.1 kB / 1.291 GB, free: 2.91 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.084e-05/0.3352, allocations: 16.48 kB / 1.291 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.323e-05/0.3352, allocations: 47.42 kB / 1.292 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of SimCode: time 4.81e-07/0.3352, allocations: 0 / 1.292 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03259/0.3678, allocations: 4.278 MB / 1.296 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.84, allocations: 5.328 kB / 1.296 GB, free: 14.75 MB / 0.9981 GB " [Timeout remaining time 287] (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/jenkins1/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: 18.605907044839114]