Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.785/1.785, allocations: 291.7 MB / 306.8 MB, free: 7.656 MB / 234.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.0009353/0.0009354, allocations: 181.6 kB / 375.4 MB, free: 5.098 MB / 298.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.483/1.483, allocations: 225.7 MB / 0.6538 GB, free: 13.62 MB / 490.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.0009067/0.0009063, allocations: 103.2 kB / 0.7699 GB, free: 50.48 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004185/0.0004185, allocations: 20.64 kB / 0.8956 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7171/0.7175, allocations: 118.1 MB / 1.011 GB, free: 58.12 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002323/0.7199, allocations: 1.336 MB / 1.012 GB, free: 58.07 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0007953/0.7207, allocations: 0.5108 MB / 1.013 GB, free: 58.02 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.301e-05/0.7208, allocations: 2.781 kB / 1.013 GB, free: 58.02 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0002027/0.721, allocations: 22.97 kB / 1.013 GB, free: 58.01 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0002427/0.7213, allocations: 51.45 kB / 1.013 GB, free: 58 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001344/0.7214, allocations: 57.91 kB / 1.013 GB, free: 58 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.7216, allocations: 118.5 kB / 1.013 GB, free: 57.97 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.7218, allocations: 44.72 kB / 1.013 GB, free: 57.97 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.7219, allocations: 43.41 kB / 1.013 GB, free: 57.96 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 9.659e-05/0.722, allocations: 55.38 kB / 1.013 GB, free: 57.94 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.541e-05/0.722, allocations: 2.812 kB / 1.013 GB, free: 57.94 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 5.276e-05/0.7221, allocations: 15.62 kB / 1.013 GB, free: 57.94 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 7.949e-05/0.7222, allocations: 35.91 kB / 1.013 GB, free: 57.93 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.376e-05/0.7222, allocations: 47.14 kB / 1.013 GB, free: 57.89 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.7223, allocations: 96.03 kB / 1.013 GB, free: 57.89 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.7224, allocations: 3.938 kB / 1.013 GB, free: 57.89 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7224, allocations: 6.656 kB / 1.013 GB, free: 57.88 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.329e-06/0.7224, allocations: 2.969 kB / 1.013 GB, free: 57.88 MB / 0.7136 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.0005525/0.7229, allocations: 440.2 kB / 1.014 GB, free: 57.48 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.723, allocations: 10.84 kB / 1.014 GB, free: 57.48 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.544e-05/0.723, allocations: 22.28 kB / 1.014 GB, free: 57.47 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002567/0.7233, allocations: 238.3 kB / 1.014 GB, free: 57.25 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.7233, allocations: 2.906 kB / 1.014 GB, free: 57.25 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.7233, allocations: 10.16 kB / 1.014 GB, free: 57.25 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.7236, allocations: 121.6 kB / 1.014 GB, free: 57.21 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.7236, allocations: 0 / 1.014 GB, free: 57.21 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.7237, allocations: 1.688 kB / 1.014 GB, free: 57.21 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.7237, allocations: 0 / 1.014 GB, free: 57.21 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002258/0.7239, allocations: 83.72 kB / 1.014 GB, free: 57.21 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005521/0.7245, allocations: 389.2 kB / 1.015 GB, free: 56.93 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.7246, allocations: 51.45 kB / 1.015 GB, free: 56.91 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.7247, allocations: 35.7 kB / 1.015 GB, free: 56.9 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.7248, allocations: 3.375 kB / 1.015 GB, free: 56.9 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002596/0.725, allocations: 101.4 kB / 1.015 GB, free: 56.84 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.683e-06/0.725, allocations: 1.875 kB / 1.015 GB, free: 56.84 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0004335/0.7255, allocations: 154.3 kB / 1.015 GB, free: 56.79 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.7255, allocations: 77.95 kB / 1.015 GB, free: 56.7 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.7258, allocations: 254.9 kB / 1.015 GB, free: 56.58 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.7258, allocations: 30.19 kB / 1.015 GB, free: 56.55 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.368e-05/0.7258, allocations: 123.8 kB / 1.015 GB, free: 56.47 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.7259, allocations: 10.09 kB / 1.015 GB, free: 56.46 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-06/0.7259, allocations: 3.75 kB / 1.015 GB, free: 56.46 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.78e-05/0.726, allocations: 327 kB / 1.016 GB, free: 56.15 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.7261, allocations: 33.89 kB / 1.016 GB, free: 56.15 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.7262, allocations: 56.25 kB / 1.016 GB, free: 56.12 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.7264, allocations: 86.67 kB / 1.016 GB, free: 56.09 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.7264, allocations: 0 / 1.016 GB, free: 56.09 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002539/0.7267, allocations: 118.2 kB / 1.016 GB, free: 56.05 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.7267, allocations: 3.406 kB / 1.016 GB, free: 56.05 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.7267, allocations: 3.375 kB / 1.016 GB, free: 56.05 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.7267, allocations: 3.938 kB / 1.016 GB, free: 56.04 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.7268, allocations: 20.23 kB / 1.016 GB, free: 56.04 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.7268, allocations: 2.812 kB / 1.016 GB, free: 56.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.593e-05/0.7269, allocations: 22.16 kB / 1.016 GB, free: 56.04 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.727, allocations: 0.7188 kB / 1.016 GB, free: 56.04 MB / 0.7136 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 8.81e-05/0.7271, allocations: 129.5 kB / 1.016 GB, free: 55.93 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.7271, allocations: 14.66 kB / 1.016 GB, free: 55.92 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.818e-05/0.7271, allocations: 22.45 kB / 1.016 GB, free: 55.91 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.7272, allocations: 6.594 kB / 1.016 GB, free: 55.9 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.7272, allocations: 3.094 kB / 1.016 GB, free: 55.9 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.7272, allocations: 5.344 kB / 1.016 GB, free: 55.9 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.7273, allocations: 214.7 kB / 1.016 GB, free: 55.71 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.7273, allocations: 5.531 kB / 1.016 GB, free: 55.71 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.031e-05/0.7274, allocations: 15.94 kB / 1.016 GB, free: 55.71 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.7274, allocations: 1.281 kB / 1.016 GB, free: 55.71 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.7274, allocations: 0 / 1.016 GB, free: 55.71 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.7274, allocations: 7.844 kB / 1.016 GB, free: 55.7 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7275, allocations: 0.625 kB / 1.016 GB, free: 55.7 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002682/0.7277, allocations: 140.1 kB / 1.017 GB, free: 55.63 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.051e-05/0.7278, allocations: 93.75 kB / 1.017 GB, free: 55.53 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.7278, allocations: 2.062 kB / 1.017 GB, free: 55.53 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.299e-05/0.7279, allocations: 22.48 kB / 1.017 GB, free: 55.52 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.592e-05/0.7279, allocations: 5.75 kB / 1.017 GB, free: 55.52 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.728, allocations: 7.594 kB / 1.017 GB, free: 55.52 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001419/0.7281, allocations: 187.6 kB / 1.017 GB, free: 55.45 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.152e-06/0.7281, allocations: 0 / 1.017 GB, free: 55.45 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001999/0.7283, allocations: 24.66 kB / 1.017 GB, free: 55.44 MB / 0.7136 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.0002267/0.7286, allocations: 132.1 kB / 1.017 GB, free: 55.35 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002805/0.7289, allocations: 69.23 kB / 1.017 GB, free: 55.35 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7289, allocations: 0 / 1.017 GB, free: 55.35 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.729, allocations: 37.91 kB / 1.017 GB, free: 55.34 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.7293, allocations: 40.67 kB / 1.017 GB, free: 55.34 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004797/0.7298, allocations: 316.6 kB / 1.017 GB, free: 55.14 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000145/0.7299, allocations: 0.7236 MB / 1.018 GB, free: 54.44 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 6.43e-05/0.73, allocations: 17.72 kB / 1.018 GB, free: 54.44 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.73, allocations: 21.12 kB / 1.018 GB, free: 54.43 MB / 0.7136 GB Notification: Performance of SimCode: time 2.3e-07/0.73, allocations: 0 / 1.018 GB, free: 54.43 MB / 0.7136 GB Notification: Performance of Templates: time 0.004179/0.7342, allocations: 1.568 MB / 1.02 GB, free: 54.32 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)