Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.199/2.199, allocations: 254.9 MB / 269.9 MB, free: 9.633 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001919/0.001919, allocations: 190.8 kB / 329.5 MB, free: 1.152 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.418/2.418, allocations: 225.6 MB / 0.6001 GB, free: 2.199 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001395, allocations: 78.77 kB / 0.7074 GB, free: 7.945 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0006606/0.0006607, allocations: 11.66 kB / 0.8242 GB, free: 124.4 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2086, allocations: 109.1 MB / 0.9308 GB, free: 25.1 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003203/0.2118, allocations: 1.329 MB / 0.9321 GB, free: 23.76 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001593/0.2135, allocations: 0.5108 MB / 0.9326 GB, free: 23.24 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.2136, allocations: 4 kB / 0.9326 GB, free: 23.24 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0002297/0.2139, allocations: 23.86 kB / 0.9326 GB, free: 23.21 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.0003694/0.2143, allocations: 63.67 kB / 0.9326 GB, free: 23.15 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002678/0.2146, allocations: 47.94 kB / 0.9327 GB, free: 23.11 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002669/0.2148, allocations: 115.5 kB / 0.9328 GB, free: 22.99 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.2151, allocations: 53.44 kB / 0.9329 GB, free: 22.93 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.2153, allocations: 43.78 kB / 0.9329 GB, free: 22.89 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.2154, allocations: 51.7 kB / 0.9329 GB, free: 22.84 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.354e-05/0.2155, allocations: 4 kB / 0.9329 GB, free: 22.84 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 8.783e-05/0.2156, allocations: 15.98 kB / 0.933 GB, free: 22.82 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.2157, allocations: 35.91 kB / 0.933 GB, free: 22.79 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.658e-05/0.2158, allocations: 45.58 kB / 0.933 GB, free: 22.73 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.216, allocations: 104 kB / 0.9331 GB, free: 22.63 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.216, allocations: 0 / 0.9331 GB, free: 22.63 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.395e-06/0.2161, allocations: 0 / 0.9331 GB, free: 22.63 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.2161, allocations: 4 kB / 0.9331 GB, free: 22.63 MB / 0.5886 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.00091/0.217, allocations: 446.9 kB / 0.9336 GB, free: 22.14 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.2171, allocations: 12.03 kB / 0.9336 GB, free: 22.13 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.444e-05/0.2172, allocations: 16.75 kB / 0.9336 GB, free: 22.12 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.2176, allocations: 226.3 kB / 0.9338 GB, free: 21.86 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.2176, allocations: 8.375 kB / 0.9338 GB, free: 21.85 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.631e-05/0.2176, allocations: 8.375 kB / 0.9338 GB, free: 21.84 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005714/0.2182, allocations: 114 kB / 0.9339 GB, free: 21.72 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.2183, allocations: 0 / 0.9339 GB, free: 21.72 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.036e-05/0.2183, allocations: 7.938 kB / 0.9339 GB, free: 21.71 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.2183, allocations: 4 kB / 0.9339 GB, free: 21.71 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006171/0.219, allocations: 79.88 kB / 0.934 GB, free: 21.63 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.22, allocations: 400.4 kB / 0.9344 GB, free: 21.19 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003225/0.2203, allocations: 46.5 kB / 0.9344 GB, free: 21.14 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.2207, allocations: 40.89 kB / 0.9345 GB, free: 21.09 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.2207, allocations: 3.984 kB / 0.9345 GB, free: 21.09 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000519/0.2213, allocations: 105.1 kB / 0.9346 GB, free: 20.97 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 2.946e-06/0.2213, allocations: 0 / 0.9346 GB, free: 20.97 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.001056/0.2224, allocations: 149.3 kB / 0.9347 GB, free: 20.82 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.2224, allocations: 81.11 kB / 0.9348 GB, free: 20.72 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004391/0.2229, allocations: 248.9 kB / 0.935 GB, free: 20.47 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.2229, allocations: 25.7 kB / 0.9351 GB, free: 20.44 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.2231, allocations: 136 kB / 0.9352 GB, free: 20.3 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.2231, allocations: 7.812 kB / 0.9352 GB, free: 20.29 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.747e-06/0.2231, allocations: 4 kB / 0.9352 GB, free: 20.29 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.883e-05/0.2232, allocations: 326.8 kB / 0.9355 GB, free: 19.96 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002982/0.2236, allocations: 35.91 kB / 0.9356 GB, free: 19.93 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003199/0.2239, allocations: 59.41 kB / 0.9356 GB, free: 19.86 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003181/0.2242, allocations: 27.97 kB / 0.9356 GB, free: 19.83 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.2243, allocations: 4.031 kB / 0.9356 GB, free: 19.82 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007422/0.225, allocations: 117.4 kB / 0.9358 GB, free: 19.7 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.2251, allocations: 8 kB / 0.9358 GB, free: 19.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.2251, allocations: 4 kB / 0.9358 GB, free: 19.69 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.2251, allocations: 11.88 kB / 0.9358 GB, free: 19.68 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002285/0.2254, allocations: 11.98 kB / 0.9358 GB, free: 19.67 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.2254, allocations: 4 kB / 0.9358 GB, free: 19.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.2257, allocations: 15.98 kB / 0.9358 GB, free: 19.65 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.2257, allocations: 4 kB / 0.9358 GB, free: 19.64 MB / 0.5886 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001521/0.2259, allocations: 126.9 kB / 0.9359 GB, free: 19.51 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.978e-05/0.2259, allocations: 15.81 kB / 0.936 GB, free: 19.5 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.939e-05/0.226, allocations: 25.23 kB / 0.936 GB, free: 19.47 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.226, allocations: 3.938 kB / 0.936 GB, free: 19.47 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.2261, allocations: 0 / 0.936 GB, free: 19.47 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.2261, allocations: 3.938 kB / 0.936 GB, free: 19.46 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002432/0.2263, allocations: 213.6 kB / 0.9362 GB, free: 19.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2264, allocations: 0 / 0.9362 GB, free: 19.21 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001966/0.2266, allocations: 19.98 kB / 0.9362 GB, free: 19.19 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2266, allocations: 0 / 0.9362 GB, free: 19.19 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.2266, allocations: 0 / 0.9362 GB, free: 19.19 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.2266, allocations: 3.938 kB / 0.9362 GB, free: 19.18 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.2267, allocations: 3.984 kB / 0.9362 GB, free: 19.18 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006836/0.2274, allocations: 140.7 kB / 0.9363 GB, free: 19.02 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.919e-05/0.2275, allocations: 96.91 kB / 0.9364 GB, free: 18.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.668e-05/0.2275, allocations: 4 kB / 0.9364 GB, free: 18.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.2278, allocations: 16.25 kB / 0.9365 GB, free: 18.89 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.61e-05/0.2279, allocations: 8 kB / 0.9365 GB, free: 18.88 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-05/0.2279, allocations: 8 kB / 0.9365 GB, free: 18.88 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0003408/0.2283, allocations: 184.5 kB / 0.9367 GB, free: 18.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8.72e-07/0.2283, allocations: 0 / 0.9367 GB, free: 18.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0004832/0.2288, allocations: 23.94 kB / 0.9367 GB, free: 18.67 MB / 0.5886 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003617/0.2292, allocations: 131.1 kB / 0.9368 GB, free: 18.54 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0006948/0.2299, allocations: 71.88 kB / 0.9369 GB, free: 18.46 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.2299, allocations: 4.188 kB / 0.9369 GB, free: 18.46 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0003131/0.2303, allocations: 35.97 kB / 0.9369 GB, free: 18.43 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005979/0.2309, allocations: 37.44 kB / 0.9369 GB, free: 18.39 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008873/0.2318, allocations: 318.3 kB / 0.9372 GB, free: 18.05 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/0.2321, allocations: 0.7277 MB / 0.938 GB, free: 17.3 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0001482/0.2322, allocations: 16.48 kB / 0.938 GB, free: 17.28 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.908e-05/0.2323, allocations: 15.44 kB / 0.938 GB, free: 17.27 MB / 0.5886 GB Notification: Performance of SimCode: time 1.292e-06/0.2323, allocations: 0 / 0.938 GB, free: 17.27 MB / 0.5886 GB Notification: Performance of Templates: time 0.008744/0.2411, allocations: 1.574 MB / 0.9395 GB, free: 15.71 MB / 0.5886 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)