Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.0009859/0.0009859, allocations: 108.6 kB / 16.41 MB, free: 6.512 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.0009717/0.0009717, allocations: 186.7 kB / 17.35 MB, free: 5.738 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.227/1.227, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001997/0.001997, allocations: 296 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8864/0.8864, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 99.84 kB / 0.6821 GB, free: 6.949 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3599, allocations: 86.97 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.00257/0.3625, allocations: 1.64 MB / 0.7686 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0007752/0.3633, allocations: 0.5356 MB / 0.7692 GB, free: 1.73 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.153e-05/0.3634, allocations: 0 / 0.7692 GB, free: 1.73 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.3635, allocations: 35.72 kB / 0.7692 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002242/0.3638, allocations: 67.59 kB / 0.7693 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001409/0.3639, allocations: 63.92 kB / 0.7693 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001607/0.3641, allocations: 135.5 kB / 0.7694 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.3642, allocations: 45.12 kB / 0.7695 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.3643, allocations: 63.75 kB / 0.7696 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.949e-05/0.3644, allocations: 67.62 kB / 0.7696 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.896e-05/0.3645, allocations: 8 kB / 0.7696 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.403e-05/0.3645, allocations: 20 kB / 0.7696 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.171e-05/0.3646, allocations: 47.83 kB / 0.7697 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.43e-05/0.3647, allocations: 59.61 kB / 0.7697 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001682/0.3649, allocations: 143.4 kB / 0.7699 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3649, allocations: 0 / 0.7699 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3649, allocations: 0 / 0.7699 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.3649, allocations: 0 / 0.7699 GB, free: 0.9883 MB / 0.5294 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.0005648/0.3655, allocations: 469.2 kB / 0.7703 GB, free: 496 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.3655, allocations: 8.031 kB / 0.7703 GB, free: 488 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.352e-05/0.3656, allocations: 16.75 kB / 0.7704 GB, free: 472 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002679/0.3658, allocations: 248.7 kB / 0.7706 GB, free: 180 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.809e-06/0.3658, allocations: 4.375 kB / 0.7706 GB, free: 176 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.3659, allocations: 4.375 kB / 0.7706 GB, free: 172 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002571/0.3661, allocations: 114 kB / 0.7707 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.3661, allocations: 0 / 0.7707 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.3662, allocations: 3.984 kB / 0.7707 GB, free: 48 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.3662, allocations: 0 / 0.7707 GB, free: 48 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002395/0.3664, allocations: 63.94 kB / 0.7708 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005248/0.3669, allocations: 384.4 kB / 0.7711 GB, free: 15.56 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.3671, allocations: 42.55 kB / 0.7712 GB, free: 15.51 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.3672, allocations: 28.84 kB / 0.7712 GB, free: 15.48 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.3672, allocations: 0 / 0.7712 GB, free: 15.48 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001993/0.3674, allocations: 97.08 kB / 0.7713 GB, free: 15.36 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.3674, allocations: 7.875 kB / 0.7713 GB, free: 15.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0004066/0.3678, allocations: 121.4 kB / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.3679, allocations: 81.11 kB / 0.7715 GB, free: 15.13 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002357/0.3681, allocations: 257 kB / 0.7717 GB, free: 14.88 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.3682, allocations: 29.69 kB / 0.7718 GB, free: 14.84 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.3682, allocations: 128 kB / 0.7719 GB, free: 14.71 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.3683, allocations: 11.84 kB / 0.7719 GB, free: 14.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.3683, allocations: 17.7 kB / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.3684, allocations: 330.8 kB / 0.7722 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.3685, allocations: 23.97 kB / 0.7723 GB, free: 14.32 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.3687, allocations: 51.41 kB / 0.7723 GB, free: 14.26 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/0.3689, allocations: 62.47 kB / 0.7724 GB, free: 14.19 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3689, allocations: 8.031 kB / 0.7724 GB, free: 14.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002698/0.3692, allocations: 101.4 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.3692, allocations: 4 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.3692, allocations: 0 / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.3692, allocations: 4 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.3693, allocations: 15.92 kB / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.3693, allocations: 4.094 kB / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.953e-05/0.3694, allocations: 19.89 kB / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.3694, allocations: 4 kB / 0.7725 GB, free: 14.02 MB / 0.545 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 0.0001052/0.3695, allocations: 128.5 kB / 0.7726 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.748e-05/0.3696, allocations: 15.81 kB / 0.7727 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.575e-05/0.3696, allocations: 25.22 kB / 0.7727 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.3696, allocations: 3.938 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3696, allocations: 0 / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.323e-05/0.3697, allocations: 88.92 kB / 0.7728 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.121e-05/0.3697, allocations: 4 kB / 0.7728 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.533e-05/0.3698, allocations: 11.98 kB / 0.7728 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.339e-05/0.3698, allocations: 3.984 kB / 0.7728 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003125/0.3702, allocations: 168.8 kB / 0.773 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003093/0.3705, allocations: 274.5 kB / 0.7732 GB, free: 13.26 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001102/0.3706, allocations: 27.97 kB / 0.7732 GB, free: 13.23 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00016/0.3708, allocations: 188.5 kB / 0.7734 GB, free: 13.05 MB / 0.545 GB Notification: Performance of Backend: time 3.546e-06/0.3708, allocations: 0 / 0.7734 GB, free: 13.05 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005643/0.3713, allocations: 171.8 kB / 0.7736 GB, free: 12.89 MB / 0.545 GB Notification: Performance of SimCode: time 0.0006214/0.372, allocations: 0.7326 MB / 0.7743 GB, free: 12.11 MB / 0.545 GB Notification: Performance of Templates: time 0.004281/0.3763, allocations: 1.928 MB / 0.7762 GB, free: 10.21 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)