Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/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 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.643/1.643, allocations: 306.1 MB / 321.4 MB, free: 10.76 MB / 250.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.0009301/0.0009301, allocations: 175.5 kB / 393.1 MB, free: 4.078 MB / 314.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 1.3/1.3, allocations: 225.7 MB / 0.6743 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007182/0.0007182, allocations: 95.42 kB / 0.7935 GB, free: 40.2 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003075/0.0003076, allocations: 11.98 kB / 0.9224 GB, free: 8.652 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5057/0.506, allocations: 121.3 MB / 1.041 GB, free: 58.99 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001783/0.5079, allocations: 1.338 MB / 1.042 GB, free: 58.09 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0006425/0.5085, allocations: 0.5143 MB / 1.043 GB, free: 57.74 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.48e-05/0.5086, allocations: 3.594 kB / 1.043 GB, free: 57.74 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.5088, allocations: 21.22 kB / 1.043 GB, free: 57.73 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0001953/0.509, allocations: 54.86 kB / 1.043 GB, free: 57.7 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001264/0.5091, allocations: 62.59 kB / 1.043 GB, free: 57.66 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.5093, allocations: 125.7 kB / 1.043 GB, free: 57.61 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.5094, allocations: 40.88 kB / 1.043 GB, free: 57.6 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.5096, allocations: 49.28 kB / 1.043 GB, free: 57.57 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 9.931e-05/0.5097, allocations: 56.03 kB / 1.043 GB, free: 57.55 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.466e-05/0.5097, allocations: 5.781 kB / 1.043 GB, free: 57.55 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 5.395e-05/0.5098, allocations: 11.28 kB / 1.043 GB, free: 57.55 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 7.95e-05/0.5098, allocations: 38.28 kB / 1.043 GB, free: 57.53 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 6.185e-05/0.5099, allocations: 78.72 kB / 1.043 GB, free: 57.46 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.5101, allocations: 139.1 kB / 1.043 GB, free: 57.41 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.5101, allocations: 0 / 1.043 GB, free: 57.41 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5101, allocations: 2.781 kB / 1.043 GB, free: 57.41 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.5101, allocations: 0 / 1.043 GB, free: 57.41 MB / 0.698 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.0004915/0.5106, allocations: 449.1 kB / 1.044 GB, free: 56.99 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.5107, allocations: 10.41 kB / 1.044 GB, free: 56.99 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.396e-05/0.5107, allocations: 19.86 kB / 1.044 GB, free: 56.98 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001984/0.5109, allocations: 239.5 kB / 1.044 GB, free: 56.75 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.5109, allocations: 6.438 kB / 1.044 GB, free: 56.74 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.511, allocations: 5.375 kB / 1.044 GB, free: 56.74 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.5112, allocations: 117.4 kB / 1.044 GB, free: 56.69 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.5112, allocations: 0 / 1.044 GB, free: 56.69 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.5113, allocations: 7.188 kB / 1.044 GB, free: 56.68 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.5113, allocations: 1.469 kB / 1.044 GB, free: 56.68 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002229/0.5115, allocations: 75.73 kB / 1.044 GB, free: 56.68 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004913/0.512, allocations: 391.4 kB / 1.045 GB, free: 56.36 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/0.5121, allocations: 45.59 kB / 1.045 GB, free: 56.34 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.5122, allocations: 40.84 kB / 1.045 GB, free: 56.32 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.5123, allocations: 1.094 kB / 1.045 GB, free: 56.32 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.5125, allocations: 109.1 kB / 1.045 GB, free: 56.25 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.5125, allocations: 0 / 1.045 GB, free: 56.25 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.000403/0.5129, allocations: 142 kB / 1.045 GB, free: 56.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.513, allocations: 85.98 kB / 1.045 GB, free: 56.09 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/0.5132, allocations: 253.2 kB / 1.045 GB, free: 55.95 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.5132, allocations: 32.42 kB / 1.045 GB, free: 55.91 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.039e-05/0.5132, allocations: 124.2 kB / 1.045 GB, free: 55.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.326e-05/0.5133, allocations: 8.234 kB / 1.045 GB, free: 55.79 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-06/0.5133, allocations: 0 / 1.045 GB, free: 55.79 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 4.81e-05/0.5133, allocations: 327.5 kB / 1.046 GB, free: 55.47 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.5134, allocations: 36.59 kB / 1.046 GB, free: 55.46 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.5136, allocations: 57.02 kB / 1.046 GB, free: 55.43 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/0.5138, allocations: 91.55 kB / 1.046 GB, free: 55.38 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.5138, allocations: 4 kB / 1.046 GB, free: 55.38 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002665/0.514, allocations: 114.8 kB / 1.046 GB, free: 55.33 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.5141, allocations: 13.62 kB / 1.046 GB, free: 55.32 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.5141, allocations: 1.188 kB / 1.046 GB, free: 55.32 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.5141, allocations: 5.094 kB / 1.046 GB, free: 55.32 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.5142, allocations: 14.53 kB / 1.046 GB, free: 55.32 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.493e-06/0.5142, allocations: 5.359 kB / 1.046 GB, free: 55.32 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.431e-05/0.5143, allocations: 18.34 kB / 1.046 GB, free: 55.31 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.5143, allocations: 11.34 kB / 1.046 GB, free: 55.3 MB / 0.698 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 6.991e-05/0.5144, allocations: 127 kB / 1.046 GB, free: 55.18 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.303e-05/0.5144, allocations: 23.25 kB / 1.046 GB, free: 55.17 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.82e-05/0.5145, allocations: 17.7 kB / 1.046 GB, free: 55.17 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.5145, allocations: 3.938 kB / 1.046 GB, free: 55.16 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.5145, allocations: 0 / 1.046 GB, free: 55.16 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.5145, allocations: 1.547 kB / 1.046 GB, free: 55.16 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.5146, allocations: 211.9 kB / 1.046 GB, free: 54.96 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.5146, allocations: 0 / 1.046 GB, free: 54.96 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.523e-05/0.5147, allocations: 23.25 kB / 1.046 GB, free: 54.95 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.5147, allocations: 2.469 kB / 1.046 GB, free: 54.95 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.116e-06/0.5147, allocations: 1.734 kB / 1.046 GB, free: 54.95 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.5148, allocations: 7.875 kB / 1.046 GB, free: 54.94 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.5148, allocations: 0 / 1.046 GB, free: 54.94 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002571/0.515, allocations: 135.6 kB / 1.047 GB, free: 54.86 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.784e-05/0.5151, allocations: 97.78 kB / 1.047 GB, free: 54.75 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.5151, allocations: 4.453 kB / 1.047 GB, free: 54.75 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.36e-05/0.5152, allocations: 14.83 kB / 1.047 GB, free: 54.75 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.988e-05/0.5152, allocations: 11.56 kB / 1.047 GB, free: 54.74 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.5153, allocations: 6.703 kB / 1.047 GB, free: 54.74 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001362/0.5154, allocations: 184.3 kB / 1.047 GB, free: 54.64 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5154, allocations: 0 / 1.047 GB, free: 54.64 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001944/0.5156, allocations: 25.97 kB / 1.047 GB, free: 54.63 MB / 0.698 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.0001864/0.5158, allocations: 135.6 kB / 1.047 GB, free: 54.53 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002705/0.5161, allocations: 73.33 kB / 1.047 GB, free: 54.52 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.5161, allocations: 3.969 kB / 1.047 GB, free: 54.52 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.5162, allocations: 27.36 kB / 1.047 GB, free: 54.52 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.5165, allocations: 42.72 kB / 1.047 GB, free: 54.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000417/0.5169, allocations: 339.8 kB / 1.048 GB, free: 54.26 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.517, allocations: 0.7234 MB / 1.048 GB, free: 53.56 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.272e-05/0.5171, allocations: 15.12 kB / 1.048 GB, free: 53.56 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.283e-05/0.5171, allocations: 18.55 kB / 1.048 GB, free: 53.55 MB / 0.698 GB Notification: Performance of SimCode: time 2.01e-07/0.5171, allocations: 0 / 1.048 GB, free: 53.55 MB / 0.698 GB Notification: Performance of Templates: time 0.003905/0.5211, allocations: 1.59 MB / 1.05 GB, free: 53.38 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)