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.001864/0.001864, allocations: 103 kB / 16.45 MB, free: 6.5 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.002269/0.002269, allocations: 212.9 kB / 19.43 MB, free: 3.656 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.479/1.479, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.243/3.243, allocations: 0.49 GB / 0.7916 GB, free: 33.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.002096/0.002096, allocations: 67.06 kB / 1.149 GB, free: 26.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3173, allocations: 176.1 MB / 1.321 GB, free: 3.352 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003456/0.3208, allocations: 1.668 MB / 1.322 GB, free: 1.672 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001329/0.3221, allocations: 0.6195 MB / 1.323 GB, free: 1.047 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.3222, allocations: 3.938 kB / 1.323 GB, free: 1.043 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0002036/0.3224, allocations: 27.78 kB / 1.323 GB, free: 1.016 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.3227, allocations: 64.11 kB / 1.323 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.323, allocations: 79.84 kB / 1.323 GB, free: 0.875 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002414/0.3232, allocations: 139.5 kB / 1.323 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.3234, allocations: 33.75 kB / 1.323 GB, free: 0.6992 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.3236, allocations: 63.77 kB / 1.323 GB, free: 0.6367 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.3237, allocations: 67.64 kB / 1.323 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.3238, allocations: 8 kB / 1.323 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.287e-05/0.3238, allocations: 31.98 kB / 1.324 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.324, allocations: 43.83 kB / 1.324 GB, free: 500 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.61e-05/0.324, allocations: 59.59 kB / 1.324 GB, free: 440 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.3243, allocations: 155.2 kB / 1.324 GB, free: 284 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3243, allocations: 0 / 1.324 GB, free: 284 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3243, allocations: 0 / 1.324 GB, free: 284 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.3243, allocations: 0 / 1.324 GB, free: 284 kB / 1.014 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.0008209/0.3251, allocations: 480.1 kB / 1.324 GB, free: 15.76 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.3252, allocations: 11.98 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.803e-05/0.3252, allocations: 46.67 kB / 1.324 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.3254, allocations: 20.84 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004372/0.3259, allocations: 259.7 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.3259, allocations: 8.375 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.3259, allocations: 384 / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00035/0.3263, allocations: 118.4 kB / 1.325 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.3263, allocations: 0 / 1.325 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.3263, allocations: 7.938 kB / 1.325 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.3263, allocations: 4 kB / 1.325 GB, free: 15.24 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002551/0.3265, allocations: 63.94 kB / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007395/0.3273, allocations: 384.5 kB / 1.325 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.3274, allocations: 46.48 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.3276, allocations: 32.89 kB / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.3276, allocations: 0 / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/0.3279, allocations: 89.09 kB / 1.325 GB, free: 14.56 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.3279, allocations: 4 kB / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004918/0.3283, allocations: 125.4 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.165e-05/0.3284, allocations: 77.11 kB / 1.325 GB, free: 14.33 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002991/0.3287, allocations: 260.9 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.3287, allocations: 25.7 kB / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.3288, allocations: 132.1 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.3289, allocations: 11.95 kB / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.045e-05/0.3289, allocations: 13.72 kB / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001811/0.3291, allocations: 326.8 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.3292, allocations: 23.97 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.3293, allocations: 47.41 kB / 1.326 GB, free: 13.46 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002325/0.3296, allocations: 78.42 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3296, allocations: 4 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003235/0.3299, allocations: 101.5 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3299, allocations: 7.984 kB / 1.326 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3299, allocations: 0 / 1.326 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.3299, allocations: 7.938 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.3301, allocations: 15.98 kB / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.3301, allocations: 0 / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.686e-05/0.3302, allocations: 15.92 kB / 1.326 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.3302, allocations: 96 / 1.326 GB, free: 13.22 MB / 1.029 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.0001288/0.3303, allocations: 129.8 kB / 1.327 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.42e-05/0.3303, allocations: 19.86 kB / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.099e-05/0.3304, allocations: 21.19 kB / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3304, allocations: 3.984 kB / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.3304, allocations: 4 kB / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3304, allocations: 0 / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/0.3306, allocations: 209.6 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3306, allocations: 0 / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.411e-05/0.3307, allocations: 16.2 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3307, allocations: 4 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.3307, allocations: 3.938 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.3307, allocations: 4 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3307, allocations: 0 / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003233/0.3311, allocations: 132.9 kB / 1.327 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.586e-05/0.3311, allocations: 97.02 kB / 1.327 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.3312, allocations: 3.938 kB / 1.327 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.689e-05/0.3313, allocations: 7.984 kB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.487e-05/0.3313, allocations: 4 kB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.3313, allocations: 7.984 kB / 1.327 GB, free: 12.47 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002189/0.3315, allocations: 188.5 kB / 1.327 GB, free: 12.28 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3315, allocations: 0 / 1.327 GB, free: 12.28 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002352/0.3318, allocations: 23.94 kB / 1.327 GB, free: 12.26 MB / 1.029 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.0008425/0.3326, allocations: 0.7027 MB / 1.328 GB, free: 11.54 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003057/0.3329, allocations: 55.83 kB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3329, allocations: 0 / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.333, allocations: 27.97 kB / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.3334, allocations: 46.41 kB / 1.328 GB, free: 11.42 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.3359, allocations: 1.753 MB / 1.33 GB, free: 9.559 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.3362, allocations: 0.7196 MB / 1.331 GB, free: 8.812 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.365e-05/0.3363, allocations: 20.58 kB / 1.331 GB, free: 8.793 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.752e-05/0.3364, allocations: 43.42 kB / 1.331 GB, free: 8.75 MB / 1.029 GB Notification: Performance of SimCode: time 5.11e-07/0.3364, allocations: 3.938 kB / 1.331 GB, free: 8.746 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02783/0.3642, allocations: 3.655 MB / 1.334 GB, free: 5.195 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.382/8.746, allocations: 15.09 kB / 1.334 GB, free: 5.184 MB / 1.029 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 15.37819750700146]