Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 101.5 kB / 16.27 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009913/0.0009912, allocations: 190.7 kB / 17.2 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.248/1.248, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7402/0.7402, allocations: 122.9 MB / 413.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 59.91 kB / 0.4912 GB, free: 7.34 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3125, allocations: 77.93 MB / 0.5673 GB, free: 32.63 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.002518/0.3151, allocations: 1.639 MB / 0.5689 GB, free: 31.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007332/0.3158, allocations: 0.544 MB / 0.5694 GB, free: 31.12 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.929e-05/0.3159, allocations: 2.625 kB / 0.5694 GB, free: 31.12 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.3161, allocations: 20.38 kB / 0.5694 GB, free: 31.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002028/0.3163, allocations: 59.66 kB / 0.5695 GB, free: 31.07 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001452/0.3164, allocations: 69.47 kB / 0.5696 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.3166, allocations: 128.2 kB / 0.5697 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.3167, allocations: 51.05 kB / 0.5697 GB, free: 30.96 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.924e-05/0.3168, allocations: 61.23 kB / 0.5698 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.317, allocations: 60.83 kB / 0.5698 GB, free: 30.9 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/0.317, allocations: 7.469 kB / 0.5698 GB, free: 30.9 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.752e-05/0.3171, allocations: 30.08 kB / 0.5699 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.854e-05/0.3171, allocations: 36.38 kB / 0.5699 GB, free: 30.88 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.216e-05/0.3172, allocations: 65.48 kB / 0.57 GB, free: 30.83 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001692/0.3174, allocations: 140.2 kB / 0.5701 GB, free: 30.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3174, allocations: 2.25 kB / 0.5701 GB, free: 30.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3174, allocations: 0 / 0.5701 GB, free: 30.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.3174, allocations: 1.312 kB / 0.5701 GB, free: 30.77 MB / 446.1 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.00049/0.3179, allocations: 467.6 kB / 0.5706 GB, free: 30.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.3179, allocations: 10.22 kB / 0.5706 GB, free: 30.34 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.837e-05/0.318, allocations: 40.02 kB / 0.5706 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.165e-05/0.318, allocations: 21.53 kB / 0.5706 GB, free: 30.29 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.3182, allocations: 241.3 kB / 0.5709 GB, free: 30.05 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.832e-06/0.3182, allocations: 3.25 kB / 0.5709 GB, free: 30.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.3182, allocations: 9.438 kB / 0.5709 GB, free: 30.04 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.3185, allocations: 108.2 kB / 0.571 GB, free: 29.99 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.3185, allocations: 0 / 0.571 GB, free: 29.99 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.3185, allocations: 7.078 kB / 0.571 GB, free: 29.99 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.3185, allocations: 1.156 kB / 0.571 GB, free: 29.99 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.3188, allocations: 64.41 kB / 0.571 GB, free: 29.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000482/0.3193, allocations: 387 kB / 0.5714 GB, free: 29.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.3194, allocations: 46.06 kB / 0.5715 GB, free: 29.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.3195, allocations: 29.36 kB / 0.5715 GB, free: 29.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.3195, allocations: 2.062 kB / 0.5715 GB, free: 29.61 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002243/0.3198, allocations: 94.67 kB / 0.5716 GB, free: 29.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.3198, allocations: 0 / 0.5716 GB, free: 29.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004037/0.3202, allocations: 128.1 kB / 0.5717 GB, free: 29.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.3202, allocations: 81.7 kB / 0.5718 GB, free: 29.39 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/0.3204, allocations: 255.6 kB / 0.572 GB, free: 29.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.3205, allocations: 29.7 kB / 0.572 GB, free: 29.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.071e-05/0.3205, allocations: 123.2 kB / 0.5722 GB, free: 29.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.494e-05/0.3205, allocations: 5.719 kB / 0.5722 GB, free: 29.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.3206, allocations: 18.56 kB / 0.5722 GB, free: 29.08 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.796e-05/0.3206, allocations: 325.5 kB / 0.5725 GB, free: 28.76 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.3207, allocations: 25.34 kB / 0.5725 GB, free: 28.76 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.3209, allocations: 52.92 kB / 0.5726 GB, free: 28.72 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.3211, allocations: 72.3 kB / 0.5726 GB, free: 28.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3211, allocations: 0 / 0.5726 GB, free: 28.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002606/0.3214, allocations: 103.1 kB / 0.5727 GB, free: 28.63 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.3214, allocations: 7.375 kB / 0.5727 GB, free: 28.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3214, allocations: 5.156 kB / 0.5728 GB, free: 28.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.3214, allocations: 5.922 kB / 0.5728 GB, free: 28.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.3215, allocations: 11.8 kB / 0.5728 GB, free: 28.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.3215, allocations: 2.188 kB / 0.5728 GB, free: 28.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.716e-05/0.3216, allocations: 18.7 kB / 0.5728 GB, free: 28.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.3216, allocations: 2.297 kB / 0.5728 GB, free: 28.62 MB / 446.1 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 7.262e-05/0.3217, allocations: 129.4 kB / 0.5729 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.8e-05/0.3217, allocations: 16.06 kB / 0.5729 GB, free: 28.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.294e-05/0.3218, allocations: 23.89 kB / 0.573 GB, free: 28.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3218, allocations: 0.5156 kB / 0.573 GB, free: 28.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3218, allocations: 13.12 kB / 0.573 GB, free: 28.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3218, allocations: 0.5625 kB / 0.573 GB, free: 28.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001194/0.3219, allocations: 216.5 kB / 0.5732 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3219, allocations: 0 / 0.5732 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.724e-05/0.322, allocations: 12.66 kB / 0.5732 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.322, allocations: 0 / 0.5732 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.322, allocations: 5.125 kB / 0.5732 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3221, allocations: 0 / 0.5732 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3221, allocations: 1.781 kB / 0.5732 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002603/0.3223, allocations: 122 kB / 0.5733 GB, free: 28.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.688e-05/0.3224, allocations: 91.98 kB / 0.5734 GB, free: 28.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.3224, allocations: 5.281 kB / 0.5734 GB, free: 28.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.207e-05/0.3225, allocations: 9.969 kB / 0.5734 GB, free: 28.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.3225, allocations: 8.047 kB / 0.5734 GB, free: 28.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.3225, allocations: 5.203 kB / 0.5734 GB, free: 28.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001409/0.3227, allocations: 189.2 kB / 0.5736 GB, free: 27.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3227, allocations: 3.938 kB / 0.5736 GB, free: 27.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002165/0.3229, allocations: 22 kB / 0.5736 GB, free: 27.95 MB / 446.1 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.0004924/0.3234, allocations: 0.6748 MB / 0.5743 GB, free: 27.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002672/0.3237, allocations: 66.12 kB / 0.5743 GB, free: 27.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3237, allocations: 0 / 0.5743 GB, free: 27.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.3238, allocations: 29.33 kB / 0.5744 GB, free: 27.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.3241, allocations: 57.44 kB / 0.5744 GB, free: 27.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001727/0.3258, allocations: 1.743 MB / 0.5761 GB, free: 25.95 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.326, allocations: 0.7263 MB / 0.5768 GB, free: 25.25 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.819e-05/0.3261, allocations: 14.98 kB / 0.5769 GB, free: 25.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.08e-05/0.3261, allocations: 42.17 kB / 0.5769 GB, free: 25.21 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3261, allocations: 2.562 kB / 0.5769 GB, free: 25.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.3445, allocations: 3.543 MB / 0.5804 GB, free: 24.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.185/7.529, allocations: 8.25 kB / 0.5804 GB, free: 24.36 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)