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: 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 115.1 kB / 17.04 MB, free: 5.793 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.001576/0.001576, allocations: 195 kB / 17.98 MB, free: 5.02 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.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7418/0.7418, allocations: 115.1 MB / 406.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 67.89 kB / 494.8 MB, free: 15.9 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3665, allocations: 76.14 MB / 0.5576 GB, free: 36.87 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.003953/0.3705, allocations: 1.631 MB / 0.5592 GB, free: 35.76 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.3718, allocations: 0.5413 MB / 0.5597 GB, free: 35.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.372, allocations: 2.656 kB / 0.5597 GB, free: 35.38 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001935/0.3722, allocations: 27.48 kB / 0.5597 GB, free: 35.36 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003461/0.3725, allocations: 64.86 kB / 0.5598 GB, free: 35.33 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001998/0.3727, allocations: 67.97 kB / 0.5598 GB, free: 35.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002395/0.373, allocations: 129.4 kB / 0.56 GB, free: 35.24 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.3732, allocations: 47.67 kB / 0.56 GB, free: 35.22 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.3734, allocations: 57 kB / 0.5601 GB, free: 35.19 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.3735, allocations: 64.91 kB / 0.5601 GB, free: 35.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.78e-05/0.3736, allocations: 8.438 kB / 0.5601 GB, free: 35.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.201e-05/0.3737, allocations: 21.22 kB / 0.5602 GB, free: 35.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.3738, allocations: 54.16 kB / 0.5602 GB, free: 35.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.346e-05/0.3739, allocations: 59.36 kB / 0.5603 GB, free: 35.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002722/0.3742, allocations: 139.7 kB / 0.5604 GB, free: 35.03 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3742, allocations: 0 / 0.5604 GB, free: 35.03 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3742, allocations: 1.406 kB / 0.5604 GB, free: 35.03 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.3743, allocations: 0 / 0.5604 GB, free: 35.03 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.0006764/0.3749, allocations: 467.4 kB / 0.5608 GB, free: 34.6 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.375, allocations: 10.41 kB / 0.5609 GB, free: 34.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.64e-05/0.3751, allocations: 22.42 kB / 0.5609 GB, free: 34.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.3754, allocations: 241.2 kB / 0.5611 GB, free: 34.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.3755, allocations: 2.875 kB / 0.5611 GB, free: 34.36 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.165e-05/0.3755, allocations: 8.469 kB / 0.5611 GB, free: 34.35 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003935/0.3759, allocations: 111.5 kB / 0.5612 GB, free: 34.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.3759, allocations: 1.094 kB / 0.5612 GB, free: 34.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.376, allocations: 6.547 kB / 0.5612 GB, free: 34.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.376, allocations: 2.375 kB / 0.5612 GB, free: 34.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003767/0.3764, allocations: 61.81 kB / 0.5613 GB, free: 34.29 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007597/0.3772, allocations: 388.7 kB / 0.5617 GB, free: 33.96 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.3774, allocations: 44.48 kB / 0.5617 GB, free: 33.93 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.3775, allocations: 34.73 kB / 0.5617 GB, free: 33.92 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.3776, allocations: 1.469 kB / 0.5617 GB, free: 33.92 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003063/0.3779, allocations: 99 kB / 0.5618 GB, free: 33.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 2.023e-06/0.3779, allocations: 0 / 0.5618 GB, free: 33.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0006759/0.3786, allocations: 124 kB / 0.562 GB, free: 33.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/0.3786, allocations: 79.94 kB / 0.562 GB, free: 33.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.379, allocations: 255.8 kB / 0.5623 GB, free: 33.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.379, allocations: 25.7 kB / 0.5623 GB, free: 33.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.074e-05/0.3791, allocations: 134.4 kB / 0.5624 GB, free: 33.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.3791, allocations: 5.719 kB / 0.5624 GB, free: 33.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.417e-05/0.3792, allocations: 14.8 kB / 0.5624 GB, free: 33.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.391e-05/0.3793, allocations: 328.5 kB / 0.5628 GB, free: 33.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.3795, allocations: 24.66 kB / 0.5628 GB, free: 33.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.3797, allocations: 53.42 kB / 0.5628 GB, free: 33.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000337/0.38, allocations: 69.12 kB / 0.5629 GB, free: 32.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.38, allocations: 3.938 kB / 0.5629 GB, free: 32.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004502/0.3805, allocations: 103.3 kB / 0.563 GB, free: 32.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3805, allocations: 5.781 kB / 0.563 GB, free: 32.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3805, allocations: 1.562 kB / 0.563 GB, free: 32.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.3806, allocations: 7.25 kB / 0.563 GB, free: 32.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.3807, allocations: 15.78 kB / 0.563 GB, free: 32.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3808, allocations: 0.7969 kB / 0.563 GB, free: 32.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.3809, allocations: 15.42 kB / 0.563 GB, free: 32.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.3809, allocations: 3.047 kB / 0.5631 GB, free: 32.92 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 0.0001141/0.3811, allocations: 128.7 kB / 0.5632 GB, free: 32.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.803e-05/0.3811, allocations: 20.08 kB / 0.5632 GB, free: 32.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.029e-05/0.3812, allocations: 20 kB / 0.5632 GB, free: 32.78 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.3812, allocations: 4.562 kB / 0.5632 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3812, allocations: 1.156 kB / 0.5632 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3812, allocations: 1.312 kB / 0.5632 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.3814, allocations: 213 kB / 0.5634 GB, free: 32.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3814, allocations: 1.156 kB / 0.5634 GB, free: 32.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.3816, allocations: 12.47 kB / 0.5634 GB, free: 32.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3816, allocations: 0 / 0.5634 GB, free: 32.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.3816, allocations: 6.188 kB / 0.5634 GB, free: 32.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3816, allocations: 5.031 kB / 0.5634 GB, free: 32.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3816, allocations: 0.6562 kB / 0.5634 GB, free: 32.56 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004069/0.382, allocations: 132.2 kB / 0.5636 GB, free: 32.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.706e-05/0.3821, allocations: 88.84 kB / 0.5637 GB, free: 32.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.3821, allocations: 2.094 kB / 0.5637 GB, free: 32.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.3823, allocations: 14.44 kB / 0.5637 GB, free: 32.37 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.868e-05/0.3824, allocations: 5.188 kB / 0.5637 GB, free: 32.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.48e-05/0.3824, allocations: 5.031 kB / 0.5637 GB, free: 32.37 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002267/0.3827, allocations: 192.4 kB / 0.5639 GB, free: 32.26 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3827, allocations: 0 / 0.5639 GB, free: 32.26 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004296/0.3831, allocations: 18.47 kB / 0.5639 GB, free: 32.26 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.0002451/0.3834, allocations: 125.1 kB / 0.564 GB, free: 32.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004308/0.3838, allocations: 56.92 kB / 0.5641 GB, free: 32.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3838, allocations: 1.344 kB / 0.5641 GB, free: 32.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.384, allocations: 26.89 kB / 0.5641 GB, free: 32.14 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004473/0.3845, allocations: 42.89 kB / 0.5641 GB, free: 32.13 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006851/0.3852, allocations: 292.1 kB / 0.5644 GB, free: 31.94 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.3854, allocations: 0.7178 MB / 0.5651 GB, free: 31.24 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.3855, allocations: 16.25 kB / 0.5651 GB, free: 31.24 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.356e-05/0.3856, allocations: 15.86 kB / 0.5651 GB, free: 31.23 MB / 446.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3856, allocations: 0.875 kB / 0.5651 GB, free: 31.23 MB / 446.1 MB Notification: Performance of Templates: time 0.007839/0.3934, allocations: 1.766 MB / 0.5669 GB, free: 31.1 MB / 446.1 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 -s gbode -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)