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.001727/0.001727, 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.002133/0.002133, allocations: 210.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.518/1.518, allocations: 230.6 MB / 256 MB, free: 7.793 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.235/3.235, allocations: 0.4892 GB / 0.7943 GB, free: 35.45 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.002093/0.002093, allocations: 68.28 kB / 1.153 GB, free: 25.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3382, allocations: 176.1 MB / 1.325 GB, free: 2.391 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003222/0.3414, allocations: 1.655 MB / 1.327 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.3425, allocations: 0.5845 MB / 1.327 GB, free: 144 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.7e-05/0.3426, allocations: 7.938 kB / 1.327 GB, free: 136 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.3427, allocations: 31.72 kB / 1.327 GB, free: 104 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002581/0.343, allocations: 63.67 kB / 1.327 GB, free: 40 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002182/0.3432, allocations: 71.84 kB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001931/0.3434, allocations: 131.6 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.3436, allocations: 37.88 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.3437, allocations: 67.72 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.3439, allocations: 59.69 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.3439, allocations: 8 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.254e-05/0.344, allocations: 27.98 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.3441, allocations: 51.77 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.106e-05/0.3441, allocations: 47.67 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.3444, allocations: 143.4 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3444, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3444, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.3444, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 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.000652/0.345, allocations: 413.1 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.3451, allocations: 12.03 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.106e-05/0.3451, allocations: 38.73 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001604/0.3453, allocations: 28.83 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003376/0.3456, allocations: 181.9 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.3456, allocations: 8.375 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.891e-05/0.3457, allocations: 12.36 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.346, allocations: 165.1 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.346, allocations: 0 / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.346, allocations: 0 / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.346, allocations: 0 / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002359/0.3462, allocations: 67.94 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005992/0.3468, allocations: 343.6 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.347, allocations: 42.55 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.3471, allocations: 28.89 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.3471, allocations: 3.984 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.3474, allocations: 152.4 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3474, allocations: 0 / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.000446/0.3478, allocations: 125.5 kB / 1.329 GB, free: 13.64 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.3479, allocations: 81.09 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.3482, allocations: 249 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.3482, allocations: 25.7 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.433e-05/0.3483, allocations: 136.1 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.3483, allocations: 3.953 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.103e-05/0.3483, allocations: 17.66 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3485, allocations: 330.8 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.3486, allocations: 27.92 kB / 1.33 GB, free: 12.73 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.3487, allocations: 77.11 kB / 1.33 GB, free: 12.63 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002459/0.349, allocations: 66.52 kB / 1.33 GB, free: 12.56 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.349, allocations: 4.031 kB / 1.33 GB, free: 12.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002884/0.3493, allocations: 105.4 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.3493, allocations: 8 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3493, allocations: 4 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.3493, allocations: 7.875 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.3494, allocations: 11.98 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.3494, allocations: 96 / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.116e-05/0.3495, allocations: 19.92 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.417e-06/0.3495, allocations: 4 kB / 1.331 GB, free: 12.39 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.0001222/0.3497, allocations: 126.4 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.338e-05/0.3497, allocations: 19.86 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.304e-05/0.3497, allocations: 25.27 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3497, allocations: 0 / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3497, allocations: 3.938 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3497, allocations: 0 / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001752/0.3499, allocations: 176.7 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3499, allocations: 4 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.968e-05/0.35, allocations: 11.98 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.35, allocations: 0 / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.35, allocations: 3.938 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.35, allocations: 0 / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.35, allocations: 0 / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003051/0.3503, allocations: 124.9 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.038e-05/0.3503, allocations: 15.89 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.3504, allocations: 7.938 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.642e-05/0.3505, allocations: 11.98 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.097e-05/0.3505, allocations: 4 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.3505, allocations: 7.984 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000196/0.3507, allocations: 188.5 kB / 1.331 GB, free: 11.6 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3507, allocations: 0 / 1.331 GB, free: 11.6 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002302/0.3509, allocations: 27.94 kB / 1.331 GB, free: 11.57 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.0007642/0.3517, allocations: 0.7001 MB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002772/0.352, allocations: 51.89 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.352, allocations: 0 / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.3521, allocations: 36.09 kB / 1.332 GB, free: 10.76 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.3524, allocations: 40.41 kB / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.3547, allocations: 1.757 MB / 1.334 GB, free: 8.875 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001129/0.3548, allocations: 102.1 kB / 1.334 GB, free: 8.75 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.337e-05/0.3549, allocations: 24.33 kB / 1.334 GB, free: 8.727 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.225e-05/0.355, allocations: 47.36 kB / 1.334 GB, free: 8.68 MB / 1.029 GB Notification: Performance of SimCode: time 5.01e-07/0.355, allocations: 0 / 1.334 GB, free: 8.68 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03187/0.3869, allocations: 4.276 MB / 1.338 GB, free: 4.574 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.93, allocations: 6.172 kB / 1.338 GB, free: 4.57 MB / 1.029 GB " [Timeout remaining time 288] (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: 18.74378067208454]