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.00103/0.00103, allocations: 110.4 kB / 16.42 MB, free: 6.508 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.0009472/0.0009472, allocations: 185.5 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.224/1.224, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002003/0.002003, allocations: 292.2 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8714/0.8714, allocations: 169.3 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 96.23 kB / 0.6821 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3559, allocations: 86.98 MB / 0.767 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002784/0.3587, allocations: 1.64 MB / 0.7686 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008619/0.3596, allocations: 0.5356 MB / 0.7692 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.493e-05/0.3597, allocations: 8 kB / 0.7692 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.3599, allocations: 31.72 kB / 0.7692 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002474/0.3601, allocations: 59.73 kB / 0.7693 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001433/0.3603, allocations: 71.78 kB / 0.7693 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001988/0.3605, allocations: 135.5 kB / 0.7695 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.3607, allocations: 45.14 kB / 0.7695 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.3608, allocations: 55.77 kB / 0.7696 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001238/0.3609, allocations: 63.69 kB / 0.7696 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.833e-05/0.361, allocations: 8 kB / 0.7696 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.975e-05/0.361, allocations: 27.92 kB / 0.7696 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.575e-05/0.3611, allocations: 39.84 kB / 0.7697 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.85e-05/0.3612, allocations: 59.59 kB / 0.7697 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.3614, allocations: 147.5 kB / 0.7699 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.3614, allocations: 0 / 0.7699 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3614, allocations: 0 / 0.7699 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.3614, allocations: 0 / 0.7699 GB, free: 1.02 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.0005677/0.362, allocations: 473.1 kB / 0.7703 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.362, allocations: 8.031 kB / 0.7703 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.3621, allocations: 16.75 kB / 0.7704 GB, free: 500 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000254/0.3623, allocations: 240.8 kB / 0.7706 GB, free: 216 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.977e-06/0.3623, allocations: 8.375 kB / 0.7706 GB, free: 208 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.3624, allocations: 8.312 kB / 0.7706 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002577/0.3626, allocations: 105.2 kB / 0.7707 GB, free: 92 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.3626, allocations: 7.984 kB / 0.7707 GB, free: 84 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.3627, allocations: 4 kB / 0.7707 GB, free: 80 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.3627, allocations: 0 / 0.7707 GB, free: 80 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002178/0.3629, allocations: 63.94 kB / 0.7708 GB, free: 16 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005556/0.3634, allocations: 392.4 kB / 0.7711 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.3636, allocations: 30.56 kB / 0.7712 GB, free: 15.54 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.3637, allocations: 40.83 kB / 0.7712 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.439e-05/0.3637, allocations: 0 / 0.7712 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.3639, allocations: 101 kB / 0.7713 GB, free: 15.38 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3639, allocations: 0 / 0.7713 GB, free: 15.38 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0004086/0.3644, allocations: 121.4 kB / 0.7714 GB, free: 15.26 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.3644, allocations: 81.09 kB / 0.7715 GB, free: 15.16 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.3647, allocations: 249 kB / 0.7717 GB, free: 14.91 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.3647, allocations: 29.7 kB / 0.7718 GB, free: 14.88 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.436e-05/0.3648, allocations: 128 kB / 0.7719 GB, free: 14.75 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.779e-05/0.3648, allocations: 11.84 kB / 0.7719 GB, free: 14.73 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.32e-05/0.3648, allocations: 17.72 kB / 0.7719 GB, free: 14.71 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3649, allocations: 334.8 kB / 0.7722 GB, free: 14.38 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.365, allocations: 23.92 kB / 0.7723 GB, free: 14.35 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.3652, allocations: 47.41 kB / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.3654, allocations: 70.55 kB / 0.7724 GB, free: 14.21 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3654, allocations: 3.938 kB / 0.7724 GB, free: 14.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002704/0.3657, allocations: 109.5 kB / 0.7725 GB, free: 14.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/0.3657, allocations: 8.031 kB / 0.7725 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3657, allocations: 0 / 0.7725 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.3657, allocations: 3.938 kB / 0.7725 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.3658, allocations: 15.92 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.3658, allocations: 4 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.464e-05/0.3659, allocations: 11.89 kB / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-06/0.3659, allocations: 4 kB / 0.7725 GB, free: 14.05 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 8.95e-05/0.366, allocations: 125.8 kB / 0.7727 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.3661, allocations: 23.81 kB / 0.7727 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.217e-05/0.3661, allocations: 17.23 kB / 0.7727 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3661, allocations: 3.938 kB / 0.7727 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3661, allocations: 0 / 0.7727 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.873e-05/0.3662, allocations: 88.92 kB / 0.7728 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.3662, allocations: 0 / 0.7728 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-05/0.3663, allocations: 15.98 kB / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.959e-05/0.3663, allocations: 3.984 kB / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000319/0.3667, allocations: 173.1 kB / 0.773 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003189/0.367, allocations: 270.6 kB / 0.7732 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001125/0.3671, allocations: 35.91 kB / 0.7733 GB, free: 13.25 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001543/0.3673, allocations: 192.5 kB / 0.7734 GB, free: 13.07 MB / 0.545 GB Notification: Performance of Backend: time 3.41e-07/0.3673, allocations: 0 / 0.7734 GB, free: 13.07 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005659/0.3679, allocations: 154 kB / 0.7736 GB, free: 12.92 MB / 0.545 GB Notification: Performance of SimCode: time 0.000634/0.3685, allocations: 0.7328 MB / 0.7743 GB, free: 12.14 MB / 0.545 GB Notification: Performance of Templates: time 0.004355/0.3729, allocations: 1.928 MB / 0.7762 GB, free: 10.24 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)