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.001811/0.001811, allocations: 77.55 kB / 19.76 MB, free: 2.027 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.002145/0.002145, allocations: 156.2 kB / 23.01 MB, free: 4.949 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.399/1.399, allocations: 177.2 MB / 203.4 MB, free: 8.969 MB / 190.1 MB " [Timeout remaining time 179] 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.612/2.612, allocations: 359.1 MB / 0.6044 GB, free: 14.9 MB / 0.5762 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: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter") [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.002111/0.002111, allocations: 63.91 kB / 0.9515 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2787, allocations: 169.9 MB / 1.117 GB, free: 2.609 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003102/0.2818, allocations: 1.658 MB / 1.119 GB, free: 0.9375 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00111/0.2829, allocations: 0.5689 MB / 1.12 GB, free: 372 kB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.814e-05/0.283, allocations: 7.938 kB / 1.12 GB, free: 364 kB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001772/0.2831, allocations: 31.78 kB / 1.12 GB, free: 332 kB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002588/0.2834, allocations: 62.3 kB / 1.12 GB, free: 272 kB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002195/0.2836, allocations: 79.84 kB / 1.12 GB, free: 192 kB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000204/0.2838, allocations: 139.5 kB / 1.12 GB, free: 52 kB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.284, allocations: 37.55 kB / 1.12 GB, free: 12 kB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.2841, allocations: 63.77 kB / 1.12 GB, free: 15.95 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.2843, allocations: 59.7 kB / 1.12 GB, free: 15.89 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.2843, allocations: 8 kB / 1.12 GB, free: 15.88 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 7.298e-05/0.2844, allocations: 27.97 kB / 1.12 GB, free: 15.86 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 9.695e-05/0.2845, allocations: 47.84 kB / 1.12 GB, free: 15.81 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 6.823e-05/0.2845, allocations: 51.59 kB / 1.12 GB, free: 15.76 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002316/0.2848, allocations: 151.3 kB / 1.12 GB, free: 15.61 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2848, allocations: 3.938 kB / 1.12 GB, free: 15.61 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2848, allocations: 0 / 1.12 GB, free: 15.61 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.2848, allocations: 0 / 1.12 GB, free: 15.61 MB / 1.076 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.0006387/0.2854, allocations: 409.3 kB / 1.121 GB, free: 15.18 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.2854, allocations: 8.031 kB / 1.121 GB, free: 15.17 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.2856, allocations: 24.83 kB / 1.121 GB, free: 15.14 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003118/0.2859, allocations: 186.1 kB / 1.121 GB, free: 14.94 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.2859, allocations: 4.375 kB / 1.121 GB, free: 14.93 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.2859, allocations: 4.375 kB / 1.121 GB, free: 14.93 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003216/0.2863, allocations: 165.4 kB / 1.121 GB, free: 14.75 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.2863, allocations: 0 / 1.121 GB, free: 14.75 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.2863, allocations: 11.92 kB / 1.121 GB, free: 14.74 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.2863, allocations: 0 / 1.121 GB, free: 14.74 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000249/0.2865, allocations: 67.88 kB / 1.121 GB, free: 14.67 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005367/0.2871, allocations: 304.2 kB / 1.121 GB, free: 14.34 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.2872, allocations: 42.53 kB / 1.122 GB, free: 14.29 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.2873, allocations: 32.89 kB / 1.122 GB, free: 14.26 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.2873, allocations: 0 / 1.122 GB, free: 14.26 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002589/0.2876, allocations: 148.5 kB / 1.122 GB, free: 14.08 MB / 1.076 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.2876, allocations: 0 / 1.122 GB, free: 14.08 MB / 1.076 GB Notification: Performance of matching and sorting (n=3): time 0.0004437/0.2881, allocations: 121.5 kB / 1.122 GB, free: 13.96 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.2881, allocations: 81.05 kB / 1.122 GB, free: 13.86 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002515/0.2884, allocations: 240.1 kB / 1.122 GB, free: 13.62 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.2884, allocations: 29.7 kB / 1.122 GB, free: 13.58 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 8.92e-05/0.2885, allocations: 128 kB / 1.122 GB, free: 13.45 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.081e-05/0.2885, allocations: 11.95 kB / 1.122 GB, free: 13.44 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.2885, allocations: 17.7 kB / 1.122 GB, free: 13.42 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.2887, allocations: 326.8 kB / 1.123 GB, free: 13.09 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.2888, allocations: 27.97 kB / 1.123 GB, free: 13.06 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.2889, allocations: 73.11 kB / 1.123 GB, free: 12.97 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002355/0.2892, allocations: 66.47 kB / 1.123 GB, free: 12.9 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2892, allocations: 0 / 1.123 GB, free: 12.9 MB / 1.076 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002954/0.2895, allocations: 105.5 kB / 1.123 GB, free: 12.79 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.2895, allocations: 7.938 kB / 1.123 GB, free: 12.78 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.2895, allocations: 0 / 1.123 GB, free: 12.78 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.2895, allocations: 4 kB / 1.123 GB, free: 12.78 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.2896, allocations: 11.98 kB / 1.123 GB, free: 12.77 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.2896, allocations: 3.938 kB / 1.123 GB, free: 12.76 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.43e-05/0.2897, allocations: 19.94 kB / 1.123 GB, free: 12.74 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.836e-06/0.2897, allocations: 8.078 kB / 1.123 GB, free: 12.73 MB / 1.076 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.00011/0.2898, allocations: 129.8 kB / 1.123 GB, free: 12.6 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.2899, allocations: 15.91 kB / 1.123 GB, free: 12.58 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.718e-05/0.2899, allocations: 21.02 kB / 1.123 GB, free: 12.56 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.2899, allocations: 0 / 1.123 GB, free: 12.56 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2899, allocations: 7.938 kB / 1.123 GB, free: 12.55 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.2899, allocations: 0 / 1.123 GB, free: 12.55 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.2901, allocations: 153.2 kB / 1.123 GB, free: 12.38 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.2901, allocations: 4 kB / 1.123 GB, free: 12.37 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.247e-05/0.2901, allocations: 7.984 kB / 1.123 GB, free: 12.36 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.2902, allocations: 8 kB / 1.123 GB, free: 12.36 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-06/0.2902, allocations: 0 / 1.123 GB, free: 12.36 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.2902, allocations: 0 / 1.123 GB, free: 12.36 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2902, allocations: 0 / 1.123 GB, free: 12.36 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003131/0.2905, allocations: 124.9 kB / 1.123 GB, free: 12.21 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 2.239e-05/0.2905, allocations: 11.91 kB / 1.123 GB, free: 12.2 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.2905, allocations: 0 / 1.123 GB, free: 12.2 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.281e-05/0.2906, allocations: 19.98 kB / 1.123 GB, free: 12.18 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.634e-05/0.2906, allocations: 8.25 kB / 1.123 GB, free: 12.18 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.2907, allocations: 4 kB / 1.123 GB, free: 12.17 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001771/0.2908, allocations: 181.6 kB / 1.124 GB, free: 12 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.2908, allocations: 0 / 1.124 GB, free: 12 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002308/0.2911, allocations: 27.88 kB / 1.124 GB, free: 11.97 MB / 1.076 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.0002089/0.2913, allocations: 118.2 kB / 1.124 GB, free: 11.85 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002899/0.2916, allocations: 51.94 kB / 1.124 GB, free: 11.8 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2916, allocations: 3.938 kB / 1.124 GB, free: 11.79 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.2917, allocations: 31.97 kB / 1.124 GB, free: 11.76 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.292, allocations: 37.61 kB / 1.124 GB, free: 11.73 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005076/0.2925, allocations: 288.7 kB / 1.124 GB, free: 11.42 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001114/0.2926, allocations: 114.2 kB / 1.124 GB, free: 11.29 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 6.43e-05/0.2927, allocations: 20.41 kB / 1.124 GB, free: 11.26 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.447e-05/0.2927, allocations: 12.5 kB / 1.124 GB, free: 11.25 MB / 1.076 GB Notification: Performance of SimCode: time 3.01e-07/0.2927, allocations: 0 / 1.124 GB, free: 11.25 MB / 1.076 GB Notification: Performance of Templates: time 0.005062/0.2978, allocations: 1.75 MB / 1.126 GB, free: 9.535 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 400] 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: 7.988310574903153]