Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00589/0.00589, allocations: 105.3 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 191.1 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.386/2.386, allocations: 437.1 MB / 0.7105 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 67.91 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2729, allocations: 151.6 MB / 1.166 GB, free: 7.297 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003085/0.276, allocations: 1.645 MB / 1.168 GB, free: 5.633 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0009398/0.277, allocations: 0.5378 MB / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.2771, allocations: 0 / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.2773, allocations: 27.77 kB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002741/0.2776, allocations: 67.67 kB / 1.168 GB, free: 4.996 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001687/0.2778, allocations: 63.86 kB / 1.168 GB, free: 4.934 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001963/0.278, allocations: 131.6 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.2782, allocations: 53.33 kB / 1.169 GB, free: 4.746 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.2783, allocations: 63.77 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001246/0.2784, allocations: 63.69 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.147e-05/0.2785, allocations: 8 kB / 1.169 GB, free: 4.613 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.974e-05/0.2786, allocations: 20 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 9.496e-05/0.2787, allocations: 51.77 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.998e-05/0.2787, allocations: 59.61 kB / 1.169 GB, free: 4.484 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002134/0.279, allocations: 142.3 kB / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.279, allocations: 0 / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.383e-06/0.279, allocations: 0 / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.279, allocations: 0 / 1.169 GB, free: 4.348 MB / 0.92 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.0005997/0.2796, allocations: 483.4 kB / 1.169 GB, free: 3.828 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.2796, allocations: 8.031 kB / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.701e-05/0.2797, allocations: 38.75 kB / 1.169 GB, free: 3.773 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.91e-05/0.2797, allocations: 16.75 kB / 1.17 GB, free: 3.758 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.28, allocations: 240.8 kB / 1.17 GB, free: 3.48 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.2801, allocations: 8.375 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.534e-05/0.2801, allocations: 4.375 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/0.2803, allocations: 109.7 kB / 1.17 GB, free: 3.355 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.2804, allocations: 0 / 1.17 GB, free: 3.355 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.2804, allocations: 8 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.2804, allocations: 0 / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/0.2806, allocations: 59.94 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.2812, allocations: 388.4 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.2813, allocations: 34.55 kB / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.2814, allocations: 32.89 kB / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.2814, allocations: 0 / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000215/0.2817, allocations: 109 kB / 1.17 GB, free: 2.656 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.2817, allocations: 0 / 1.17 GB, free: 2.656 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0004134/0.2821, allocations: 117.4 kB / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.2821, allocations: 81.11 kB / 1.171 GB, free: 2.438 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002401/0.2824, allocations: 257 kB / 1.171 GB, free: 2.18 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.2824, allocations: 25.7 kB / 1.171 GB, free: 2.148 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.231e-05/0.2825, allocations: 132 kB / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.694e-05/0.2825, allocations: 7.906 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.782e-05/0.2826, allocations: 17.72 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.306e-05/0.2827, allocations: 326.8 kB / 1.171 GB, free: 1.656 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.2828, allocations: 27.92 kB / 1.171 GB, free: 1.629 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.2829, allocations: 47.41 kB / 1.171 GB, free: 1.57 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.2831, allocations: 70.55 kB / 1.172 GB, free: 1.492 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2831, allocations: 0 / 1.172 GB, free: 1.492 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002572/0.2834, allocations: 105.3 kB / 1.172 GB, free: 1.383 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.2834, allocations: 8 kB / 1.172 GB, free: 1.375 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2834, allocations: 0 / 1.172 GB, free: 1.375 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.2834, allocations: 3.938 kB / 1.172 GB, free: 1.371 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.2835, allocations: 20.02 kB / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.2836, allocations: 4 kB / 1.172 GB, free: 1.348 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.479e-05/0.2836, allocations: 11.89 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.2837, allocations: 4 kB / 1.172 GB, free: 1.332 MB / 0.92 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 9.423e-05/0.2838, allocations: 129.8 kB / 1.172 GB, free: 1.195 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.851e-05/0.2838, allocations: 15.81 kB / 1.172 GB, free: 1.18 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.513e-05/0.2838, allocations: 25.17 kB / 1.172 GB, free: 1.152 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.2838, allocations: 0 / 1.172 GB, free: 1.152 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2839, allocations: 4 kB / 1.172 GB, free: 1.148 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.2839, allocations: 0 / 1.172 GB, free: 1.148 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001476/0.284, allocations: 213.6 kB / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.284, allocations: 4 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.957e-05/0.2841, allocations: 15.98 kB / 1.172 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.2841, allocations: 3.938 kB / 1.172 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.2841, allocations: 3.938 kB / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2841, allocations: 0 / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2841, allocations: 0 / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002637/0.2844, allocations: 128.8 kB / 1.172 GB, free: 0.7188 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.508e-05/0.2845, allocations: 88.92 kB / 1.172 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.2845, allocations: 3.938 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.993e-05/0.2846, allocations: 11.98 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.97e-05/0.2846, allocations: 4 kB / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.2847, allocations: 7.984 kB / 1.172 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001537/0.2848, allocations: 188.5 kB / 1.172 GB, free: 412 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2848, allocations: 0 / 1.172 GB, free: 412 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.000222/0.2851, allocations: 31.89 kB / 1.173 GB, free: 380 kB / 0.92 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.0006355/0.2857, allocations: 0.6889 MB / 1.173 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002593/0.286, allocations: 59.89 kB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.286, allocations: 0 / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.2861, allocations: 36.09 kB / 1.173 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.2864, allocations: 42.81 kB / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.2884, allocations: 1.744 MB / 1.175 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.2887, allocations: 0.7158 MB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.866e-05/0.2888, allocations: 20.55 kB / 1.176 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.166e-05/0.2889, allocations: 39.42 kB / 1.176 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of SimCode: time 3.31e-07/0.2889, allocations: 0 / 1.176 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.172/1.461, allocations: 3.607 MB / 1.179 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/13.27, allocations: 14.61 kB / 1.179 GB, free: 9.375 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches