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.001869/0.001869, 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.00242/0.00242, allocations: 210.1 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.452/1.452, allocations: 230.6 MB / 256 MB, free: 7.801 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.756/2.756, allocations: 476 MB / 0.7699 GB, free: 4.73 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.002083/0.002083, allocations: 67.86 kB / 1.117 GB, free: 41.13 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3443, allocations: 170 MB / 1.283 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003163/0.3475, allocations: 1.655 MB / 1.284 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001071/0.3485, allocations: 0.5746 MB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.243e-05/0.3486, allocations: 7.938 kB / 1.285 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001706/0.3488, allocations: 31.78 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002583/0.3491, allocations: 63.67 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001957/0.3492, allocations: 71.84 kB / 1.285 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002051/0.3495, allocations: 139.5 kB / 1.285 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.3496, allocations: 37.59 kB / 1.285 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.3498, allocations: 63.77 kB / 1.285 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.3499, allocations: 63.7 kB / 1.285 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.3499, allocations: 11.94 kB / 1.285 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.981e-05/0.35, allocations: 23.98 kB / 1.285 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.581e-05/0.3501, allocations: 47.83 kB / 1.285 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.181e-05/0.3501, allocations: 51.67 kB / 1.285 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.3504, allocations: 152.9 kB / 1.285 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3504, allocations: 0 / 1.285 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3504, allocations: 0 / 1.285 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.3504, allocations: 0 / 1.285 GB, free: 9.422 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.0007127/0.3511, allocations: 397.3 kB / 1.286 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.3511, allocations: 12.03 kB / 1.286 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.017e-05/0.3512, allocations: 38.73 kB / 1.286 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.3513, allocations: 28.83 kB / 1.286 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003356/0.3517, allocations: 186 kB / 1.286 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.3517, allocations: 4.375 kB / 1.286 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.3517, allocations: 16.34 kB / 1.286 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.352, allocations: 161.2 kB / 1.286 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.3521, allocations: 0 / 1.286 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.3521, allocations: 0 / 1.286 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3521, allocations: 0 / 1.286 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.3523, allocations: 63.94 kB / 1.286 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006526/0.3529, allocations: 339.7 kB / 1.287 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.3531, allocations: 46.48 kB / 1.287 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.3532, allocations: 28.89 kB / 1.287 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.3532, allocations: 0 / 1.287 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002824/0.3535, allocations: 152.5 kB / 1.287 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.3535, allocations: 0 / 1.287 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004395/0.3539, allocations: 125.4 kB / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.039e-05/0.354, allocations: 85.09 kB / 1.287 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002924/0.3543, allocations: 256.9 kB / 1.287 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.3543, allocations: 25.7 kB / 1.287 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.3544, allocations: 128.1 kB / 1.287 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.3545, allocations: 7.953 kB / 1.287 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.214e-05/0.3545, allocations: 17.72 kB / 1.287 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001753/0.3547, allocations: 330.8 kB / 1.288 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.3548, allocations: 19.98 kB / 1.288 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.3549, allocations: 73.11 kB / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002202/0.3552, allocations: 74.45 kB / 1.288 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3552, allocations: 0 / 1.288 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002853/0.3554, allocations: 105.5 kB / 1.288 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.3555, allocations: 4 kB / 1.288 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.3555, allocations: 4 kB / 1.288 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.3555, allocations: 7.875 kB / 1.288 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.3556, allocations: 11.98 kB / 1.288 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.3556, allocations: 0 / 1.288 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.353e-05/0.3557, allocations: 31.91 kB / 1.288 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.3557, allocations: 0 / 1.288 GB, free: 6.438 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.0001116/0.3558, allocations: 129.8 kB / 1.288 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.155e-05/0.3558, allocations: 15.91 kB / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.169e-05/0.3559, allocations: 25.27 kB / 1.288 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3559, allocations: 0 / 1.288 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3559, allocations: 0 / 1.288 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.3559, allocations: 0 / 1.288 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.3561, allocations: 177 kB / 1.288 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3561, allocations: 0 / 1.288 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.86e-05/0.3562, allocations: 19.92 kB / 1.288 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.3562, allocations: 0 / 1.288 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.3562, allocations: 3.938 kB / 1.288 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3562, allocations: 0 / 1.288 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3562, allocations: 3.984 kB / 1.288 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002941/0.3565, allocations: 120.9 kB / 1.289 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.02e-05/0.3565, allocations: 23.89 kB / 1.289 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.3566, allocations: 3.938 kB / 1.289 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.303e-05/0.3566, allocations: 11.98 kB / 1.289 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.345e-05/0.3567, allocations: 4 kB / 1.289 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.3567, allocations: 7.984 kB / 1.289 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001923/0.3569, allocations: 188.5 kB / 1.289 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3569, allocations: 0 / 1.289 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002173/0.3571, allocations: 19.98 kB / 1.289 GB, free: 5.629 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.0007733/0.3579, allocations: 0.6899 MB / 1.29 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002817/0.3582, allocations: 55.83 kB / 1.29 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.3582, allocations: 4 kB / 1.29 GB, free: 4.859 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.3583, allocations: 32.16 kB / 1.29 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.3586, allocations: 37.53 kB / 1.29 GB, free: 4.797 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002436/0.361, allocations: 1.77 MB / 1.291 GB, free: 2.922 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001052/0.3611, allocations: 98.14 kB / 1.291 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.483e-05/0.3612, allocations: 28.66 kB / 1.291 GB, free: 2.781 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.781e-05/0.3613, allocations: 47.41 kB / 1.292 GB, free: 2.734 MB / 0.9825 GB Notification: Performance of SimCode: time 3.5e-07/0.3613, allocations: 0 / 1.292 GB, free: 2.734 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03355/0.3948, allocations: 4.276 MB / 1.296 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.75, allocations: 7.312 kB / 1.296 GB, free: 14.63 MB / 0.9981 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.34363967506215]