Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.conf.json 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/IBPSA 3.0.0-master/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 IBPSA with version 3.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/IBPSA 3.0.0-master/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) Running command: translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008367/0.0008369, allocations: 174.8 kB / 16.08 MB, free: 5.73 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 0.4416/0.4416, allocations: 89.06 MB / 105.9 MB, free: 12.44 MB / 90.72 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.233/1.233, allocations: 225.7 MB / 353.2 MB, free: 1.086 MB / 282.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.0007339/0.0007339, allocations: 97.09 kB / 425.4 MB, free: 6.617 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002776/0.0002777, allocations: 8 kB / 0.4955 GB, free: 4.5 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2724, allocations: 71.33 MB / 0.5652 GB, free: 42.33 MB / 410.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.001608/0.274, allocations: 1.324 MB / 0.5665 GB, free: 40.99 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006075/0.2747, allocations: 0.5132 MB / 0.567 GB, free: 40.48 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.192e-05/0.2747, allocations: 4 kB / 0.567 GB, free: 40.47 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.2749, allocations: 19.86 kB / 0.567 GB, free: 40.45 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001941/0.2751, allocations: 57.45 kB / 0.5671 GB, free: 40.4 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001221/0.2752, allocations: 59.94 kB / 0.5671 GB, free: 40.34 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001249/0.2754, allocations: 127.5 kB / 0.5672 GB, free: 40.21 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.2755, allocations: 41.36 kB / 0.5673 GB, free: 40.17 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.72e-05/0.2756, allocations: 43.78 kB / 0.5673 GB, free: 40.13 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.973e-05/0.2757, allocations: 55.69 kB / 0.5674 GB, free: 40.07 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.271e-05/0.2757, allocations: 4.938 kB / 0.5674 GB, free: 40.07 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.223e-05/0.2758, allocations: 12 kB / 0.5674 GB, free: 40.06 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.731e-05/0.2758, allocations: 36.53 kB / 0.5674 GB, free: 40.02 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.733e-05/0.2759, allocations: 77.3 kB / 0.5675 GB, free: 39.94 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.276, allocations: 142.5 kB / 0.5676 GB, free: 39.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.276, allocations: 0 / 0.5676 GB, free: 39.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2761, allocations: 1.781 kB / 0.5676 GB, free: 39.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.908e-06/0.2761, allocations: 0 / 0.5676 GB, free: 39.8 MB / 410.7 MB 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.0004645/0.2765, allocations: 454.7 kB / 0.5681 GB, free: 39.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.2766, allocations: 12.03 kB / 0.5681 GB, free: 39.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.925e-05/0.2766, allocations: 16.75 kB / 0.5681 GB, free: 39.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.2768, allocations: 232.8 kB / 0.5683 GB, free: 39.02 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.2768, allocations: 8.375 kB / 0.5683 GB, free: 39.01 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.2769, allocations: 4.375 kB / 0.5683 GB, free: 39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002419/0.2771, allocations: 114 kB / 0.5684 GB, free: 38.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.2771, allocations: 0 / 0.5684 GB, free: 38.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.2771, allocations: 7.984 kB / 0.5685 GB, free: 38.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.83e-06/0.2771, allocations: 4 kB / 0.5685 GB, free: 38.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.2774, allocations: 79.92 kB / 0.5685 GB, free: 38.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004557/0.2778, allocations: 392.4 kB / 0.5689 GB, free: 38.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001208/0.278, allocations: 54.48 kB / 0.569 GB, free: 38.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.797e-05/0.2781, allocations: 32.91 kB / 0.569 GB, free: 38.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.2781, allocations: 4 kB / 0.569 GB, free: 38.26 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002256/0.2783, allocations: 101.1 kB / 0.5691 GB, free: 38.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.2783, allocations: 0 / 0.5691 GB, free: 38.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003887/0.2787, allocations: 153.3 kB / 0.5692 GB, free: 37.99 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.2788, allocations: 81.11 kB / 0.5693 GB, free: 37.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.279, allocations: 249 kB / 0.5696 GB, free: 37.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.279, allocations: 37.62 kB / 0.5696 GB, free: 37.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.81e-05/0.2791, allocations: 128 kB / 0.5697 GB, free: 37.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.2791, allocations: 3.906 kB / 0.5697 GB, free: 37.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.977e-06/0.2791, allocations: 0 / 0.5697 GB, free: 37.46 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.2792, allocations: 330.8 kB / 0.57 GB, free: 37.13 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.2793, allocations: 31.98 kB / 0.5701 GB, free: 37.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.2794, allocations: 55.41 kB / 0.5701 GB, free: 37.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001986/0.2796, allocations: 90.48 kB / 0.5702 GB, free: 36.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2796, allocations: 4 kB / 0.5702 GB, free: 36.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002379/0.2799, allocations: 113.4 kB / 0.5703 GB, free: 36.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.2799, allocations: 8.094 kB / 0.5703 GB, free: 36.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2799, allocations: 4 kB / 0.5703 GB, free: 36.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.28, allocations: 3.938 kB / 0.5703 GB, free: 36.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.2801, allocations: 19.98 kB / 0.5703 GB, free: 36.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.2801, allocations: 0 / 0.5703 GB, free: 36.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.709e-05/0.2802, allocations: 23.92 kB / 0.5704 GB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.2802, allocations: 0 / 0.5704 GB, free: 36.76 MB / 410.7 MB 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 8.895e-05/0.2803, allocations: 129.8 kB / 0.5705 GB, free: 36.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.031e-05/0.2803, allocations: 19.72 kB / 0.5705 GB, free: 36.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/0.2804, allocations: 21.23 kB / 0.5705 GB, free: 36.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2804, allocations: 3.938 kB / 0.5705 GB, free: 36.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2804, allocations: 0 / 0.5705 GB, free: 36.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2804, allocations: 4 kB / 0.5705 GB, free: 36.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001242/0.2805, allocations: 209.6 kB / 0.5707 GB, free: 36.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2805, allocations: 0 / 0.5707 GB, free: 36.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.86e-05/0.2806, allocations: 23.92 kB / 0.5708 GB, free: 36.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.2806, allocations: 0 / 0.5708 GB, free: 36.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.2806, allocations: 0 / 0.5708 GB, free: 36.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.2806, allocations: 3.938 kB / 0.5708 GB, free: 36.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2806, allocations: 0 / 0.5708 GB, free: 36.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002427/0.2809, allocations: 145.1 kB / 0.5709 GB, free: 36.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.195e-05/0.2809, allocations: 92.92 kB / 0.571 GB, free: 36.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.281, allocations: 0 / 0.571 GB, free: 36.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.898e-05/0.2811, allocations: 19.86 kB / 0.571 GB, free: 36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-05/0.2811, allocations: 15.98 kB / 0.571 GB, free: 35.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.2811, allocations: 7.938 kB / 0.571 GB, free: 35.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001226/0.2813, allocations: 188.5 kB / 0.5712 GB, free: 35.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2813, allocations: 0 / 0.5712 GB, free: 35.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001875/0.2815, allocations: 20.12 kB / 0.5712 GB, free: 35.78 MB / 410.7 MB 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.0002021/0.2817, allocations: 144.5 kB / 0.5714 GB, free: 35.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.2819, allocations: 63.94 kB / 0.5714 GB, free: 35.58 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.282, allocations: 4.188 kB / 0.5714 GB, free: 35.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.2821, allocations: 31.98 kB / 0.5715 GB, free: 35.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.2823, allocations: 38.8 kB / 0.5715 GB, free: 35.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004388/0.2828, allocations: 341.9 kB / 0.5718 GB, free: 35.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.2829, allocations: 0.716 MB / 0.5725 GB, free: 34.4 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.183e-05/0.283, allocations: 24.52 kB / 0.5726 GB, free: 34.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.265e-05/0.283, allocations: 11.44 kB / 0.5726 GB, free: 34.37 MB / 410.7 MB Notification: Performance of SimCode: time 2.21e-07/0.283, allocations: 4 kB / 0.5726 GB, free: 34.36 MB / 410.7 MB Notification: Performance of Templates: time 0.003588/0.2866, allocations: 1.591 MB / 0.5741 GB, free: 32.79 MB / 410.7 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.sim & ./IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)