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.001054/0.001054, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.288/1.288, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002018/0.002018, allocations: 286.8 kB / 290.7 MB, free: 1.973 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9108/0.9108, allocations: 169.3 MB / 0.4982 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 89.97 kB / 0.5952 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1407, allocations: 86.99 MB / 0.6802 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002919/0.1436, allocations: 1.636 MB / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009273/0.1446, allocations: 0.5403 MB / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.672e-05/0.1447, allocations: 4 kB / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.1448, allocations: 31.72 kB / 0.6823 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000234/0.1451, allocations: 55.75 kB / 0.6824 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000175/0.1453, allocations: 67.84 kB / 0.6825 GB, free: 14.35 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.1455, allocations: 135.5 kB / 0.6826 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.1456, allocations: 53.73 kB / 0.6826 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.1458, allocations: 55.77 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.1459, allocations: 59.77 kB / 0.6827 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.1459, allocations: 8 kB / 0.6827 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.552e-05/0.146, allocations: 31.86 kB / 0.6828 GB, free: 14.01 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.758e-05/0.1461, allocations: 47.83 kB / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.216e-05/0.1462, allocations: 59.59 kB / 0.6829 GB, free: 13.9 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001898/0.1463, allocations: 139.5 kB / 0.683 GB, free: 13.77 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1464, allocations: 4 kB / 0.683 GB, free: 13.76 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1464, allocations: 0 / 0.683 GB, free: 13.76 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.421e-06/0.1464, allocations: 0 / 0.683 GB, free: 13.76 MB / 494.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.0005746/0.147, allocations: 466.5 kB / 0.6835 GB, free: 13.26 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.147, allocations: 8.031 kB / 0.6835 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.616e-05/0.1471, allocations: 16.75 kB / 0.6835 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.1473, allocations: 245.4 kB / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.1473, allocations: 384 / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.411e-05/0.1473, allocations: 12.38 kB / 0.6837 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.1476, allocations: 109.9 kB / 0.6838 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.1476, allocations: 3.938 kB / 0.6838 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.1477, allocations: 0 / 0.6838 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.1477, allocations: 4 kB / 0.6838 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002333/0.1479, allocations: 70.81 kB / 0.6839 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005588/0.1485, allocations: 384.5 kB / 0.6843 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/0.1486, allocations: 38.55 kB / 0.6843 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.1487, allocations: 24.91 kB / 0.6843 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.1488, allocations: 11.94 kB / 0.6844 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002543/0.149, allocations: 97.06 kB / 0.6844 GB, free: 12.13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.149, allocations: 3.938 kB / 0.6844 GB, free: 12.13 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004393/0.1495, allocations: 129.4 kB / 0.6846 GB, free: 12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.1495, allocations: 77.11 kB / 0.6846 GB, free: 11.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000237/0.1498, allocations: 253 kB / 0.6849 GB, free: 11.65 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.1498, allocations: 25.7 kB / 0.6849 GB, free: 11.62 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.751e-05/0.1499, allocations: 132 kB / 0.685 GB, free: 11.48 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.459e-05/0.1499, allocations: 3.906 kB / 0.685 GB, free: 11.48 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.749e-05/0.15, allocations: 17.7 kB / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.1501, allocations: 326.8 kB / 0.6854 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.1502, allocations: 31.97 kB / 0.6854 GB, free: 11.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.1503, allocations: 47.41 kB / 0.6854 GB, free: 11.04 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.1505, allocations: 70.5 kB / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1506, allocations: 0 / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002822/0.1508, allocations: 101.4 kB / 0.6856 GB, free: 10.86 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.1509, allocations: 4 kB / 0.6856 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1509, allocations: 8.094 kB / 0.6856 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.1509, allocations: 3.938 kB / 0.6856 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.151, allocations: 11.98 kB / 0.6856 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.151, allocations: 3.938 kB / 0.6856 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.315e-05/0.1511, allocations: 23.86 kB / 0.6857 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.1511, allocations: 0 / 0.6857 GB, free: 10.8 MB / 494.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 9.991e-05/0.1512, allocations: 130.5 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.092e-05/0.1513, allocations: 19.72 kB / 0.6858 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.222e-05/0.1513, allocations: 25.23 kB / 0.6858 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.1513, allocations: 3.938 kB / 0.6858 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1514, allocations: 0 / 0.6858 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1514, allocations: 0 / 0.6858 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.1515, allocations: 213.6 kB / 0.686 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1515, allocations: 4 kB / 0.686 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.202e-05/0.1516, allocations: 7.984 kB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.1516, allocations: 4 kB / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.1517, allocations: 0 / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1517, allocations: 3.938 kB / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1517, allocations: 7.938 kB / 0.6861 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.152, allocations: 120.8 kB / 0.6862 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.217e-05/0.152, allocations: 92.92 kB / 0.6863 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/0.152, allocations: 0 / 0.6863 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.389e-05/0.1521, allocations: 11.92 kB / 0.6863 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.619e-05/0.1522, allocations: 11.98 kB / 0.6863 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.1522, allocations: 4 kB / 0.6863 GB, free: 10.05 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001688/0.1524, allocations: 192.5 kB / 0.6865 GB, free: 9.867 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1524, allocations: 0 / 0.6865 GB, free: 9.867 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.1526, allocations: 16 kB / 0.6865 GB, free: 9.852 MB / 494.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.0001995/0.1528, allocations: 126.3 kB / 0.6866 GB, free: 9.727 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002854/0.1531, allocations: 59.88 kB / 0.6867 GB, free: 9.668 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1531, allocations: 0 / 0.6867 GB, free: 9.668 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.1532, allocations: 23.98 kB / 0.6867 GB, free: 9.645 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.1535, allocations: 49.41 kB / 0.6867 GB, free: 9.602 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004833/0.154, allocations: 284.2 kB / 0.687 GB, free: 9.297 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.1543, allocations: 0.7157 MB / 0.6877 GB, free: 8.555 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.756e-05/0.1544, allocations: 20.53 kB / 0.6877 GB, free: 8.535 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.561e-05/0.1544, allocations: 15.44 kB / 0.6877 GB, free: 8.52 MB / 494.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1544, allocations: 4 kB / 0.6877 GB, free: 8.516 MB / 494.1 MB Notification: Performance of Templates: time 0.004707/0.1591, allocations: 1.762 MB / 0.6895 GB, free: 6.777 MB / 494.1 MB 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)