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.001377/0.001377, allocations: 107.6 kB / 16.37 MB, free: 6.477 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.001207/0.001207, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.22/1.22, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002041/0.002041, allocations: 281.5 kB / 291.4 MB, free: 14.51 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8821/0.8821, allocations: 169.3 MB / 0.4989 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 93.34 kB / 0.5967 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1428, allocations: 86.97 MB / 0.6816 GB, free: 7.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002972/0.1458, allocations: 1.637 MB / 0.6832 GB, free: 5.828 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008282/0.1467, allocations: 0.5424 MB / 0.6837 GB, free: 5.281 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.111e-05/0.1467, allocations: 7.938 kB / 0.6837 GB, free: 5.273 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.1469, allocations: 27.78 kB / 0.6838 GB, free: 5.246 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002264/0.1471, allocations: 63.62 kB / 0.6838 GB, free: 5.184 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001319/0.1473, allocations: 63.91 kB / 0.6839 GB, free: 5.121 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000162/0.1475, allocations: 135.5 kB / 0.684 GB, free: 4.988 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.1476, allocations: 53.39 kB / 0.6841 GB, free: 4.934 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.907e-05/0.1477, allocations: 63.7 kB / 0.6841 GB, free: 4.871 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.411e-05/0.1478, allocations: 59.7 kB / 0.6842 GB, free: 4.812 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.1478, allocations: 8 kB / 0.6842 GB, free: 4.805 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.111e-05/0.1479, allocations: 23.97 kB / 0.6842 GB, free: 4.781 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.773e-05/0.148, allocations: 43.91 kB / 0.6843 GB, free: 4.738 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.31e-05/0.148, allocations: 67.53 kB / 0.6843 GB, free: 4.672 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.1482, allocations: 147.4 kB / 0.6845 GB, free: 4.527 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1482, allocations: 0 / 0.6845 GB, free: 4.527 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1482, allocations: 0 / 0.6845 GB, free: 4.527 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.1482, allocations: 0 / 0.6845 GB, free: 4.527 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.0005401/0.1488, allocations: 466.6 kB / 0.6849 GB, free: 4.023 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.852e-05/0.1488, allocations: 8.031 kB / 0.6849 GB, free: 4.016 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.54e-05/0.1489, allocations: 16.75 kB / 0.6849 GB, free: 4 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002969/0.1492, allocations: 244.8 kB / 0.6852 GB, free: 3.719 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.1492, allocations: 4.375 kB / 0.6852 GB, free: 3.715 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.1492, allocations: 8.375 kB / 0.6852 GB, free: 3.707 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002613/0.1495, allocations: 109.9 kB / 0.6853 GB, free: 3.594 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1495, allocations: 0 / 0.6853 GB, free: 3.594 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.1495, allocations: 0 / 0.6853 GB, free: 3.594 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1495, allocations: 4 kB / 0.6853 GB, free: 3.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.1497, allocations: 63.94 kB / 0.6853 GB, free: 3.527 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005476/0.1503, allocations: 380.5 kB / 0.6857 GB, free: 3.105 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.1504, allocations: 50.48 kB / 0.6858 GB, free: 3.047 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.587e-05/0.1505, allocations: 28.89 kB / 0.6858 GB, free: 3.016 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.1506, allocations: 0 / 0.6858 GB, free: 3.016 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001922/0.1507, allocations: 93.08 kB / 0.6859 GB, free: 2.906 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 2.224e-06/0.1508, allocations: 8 kB / 0.6859 GB, free: 2.898 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003704/0.1511, allocations: 121.3 kB / 0.686 GB, free: 2.773 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.1512, allocations: 77.11 kB / 0.6861 GB, free: 2.68 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.1514, allocations: 253 kB / 0.6863 GB, free: 2.43 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.1514, allocations: 25.7 kB / 0.6863 GB, free: 2.398 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.517e-05/0.1515, allocations: 136 kB / 0.6865 GB, free: 2.262 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.574e-05/0.1515, allocations: 15.84 kB / 0.6865 GB, free: 2.246 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.1516, allocations: 13.72 kB / 0.6865 GB, free: 2.227 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.907e-05/0.1517, allocations: 326.8 kB / 0.6868 GB, free: 1.898 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.1518, allocations: 23.97 kB / 0.6868 GB, free: 1.875 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.1519, allocations: 47.41 kB / 0.6869 GB, free: 1.816 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001874/0.1521, allocations: 78.48 kB / 0.687 GB, free: 1.73 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1521, allocations: 0 / 0.687 GB, free: 1.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002495/0.1524, allocations: 97.41 kB / 0.687 GB, free: 1.629 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.1524, allocations: 11.92 kB / 0.6871 GB, free: 1.617 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1524, allocations: 0 / 0.6871 GB, free: 1.617 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1524, allocations: 7.938 kB / 0.6871 GB, free: 1.609 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.896e-05/0.1525, allocations: 15.98 kB / 0.6871 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.1525, allocations: 0 / 0.6871 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.126e-05/0.1526, allocations: 16.2 kB / 0.6871 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.1526, allocations: 0 / 0.6871 GB, free: 1.578 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 8.567e-05/0.1527, allocations: 129.9 kB / 0.6872 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.961e-05/0.1527, allocations: 23.7 kB / 0.6872 GB, free: 1.418 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.718e-05/0.1528, allocations: 17.25 kB / 0.6873 GB, free: 1.398 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.1528, allocations: 3.938 kB / 0.6873 GB, free: 1.395 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.1528, allocations: 11.98 kB / 0.6873 GB, free: 1.383 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.1528, allocations: 0 / 0.6873 GB, free: 1.383 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.153, allocations: 213.5 kB / 0.6875 GB, free: 1.125 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.153, allocations: 0 / 0.6875 GB, free: 1.125 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.576e-05/0.1531, allocations: 11.98 kB / 0.6875 GB, free: 1.113 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1531, allocations: 4 kB / 0.6875 GB, free: 1.109 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-06/0.1531, allocations: 0 / 0.6875 GB, free: 1.109 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1531, allocations: 3.938 kB / 0.6875 GB, free: 1.105 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1531, allocations: 4 kB / 0.6875 GB, free: 1.102 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002425/0.1533, allocations: 112.9 kB / 0.6876 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.121e-05/0.1534, allocations: 92.91 kB / 0.6877 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.1534, allocations: 12 kB / 0.6877 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.886e-05/0.1535, allocations: 11.92 kB / 0.6877 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.598e-05/0.1536, allocations: 4 kB / 0.6877 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.1536, allocations: 7.984 kB / 0.6877 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001552/0.1537, allocations: 188.5 kB / 0.6879 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.363e-06/0.1537, allocations: 0 / 0.6879 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002065/0.154, allocations: 20.06 kB / 0.6879 GB, free: 0.6289 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.0001849/0.1541, allocations: 133.2 kB / 0.6881 GB, free: 0.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002647/0.1544, allocations: 56.06 kB / 0.6881 GB, free: 456 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1544, allocations: 4.062 kB / 0.6881 GB, free: 452 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.1545, allocations: 35.91 kB / 0.6881 GB, free: 416 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.1548, allocations: 38.16 kB / 0.6882 GB, free: 376 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004421/0.1553, allocations: 283 kB / 0.6885 GB, free: 68 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2201/0.3754, allocations: 0.715 MB / 0.6891 GB, free: 17.44 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.3756, allocations: 15.86 kB / 0.6892 GB, free: 17.44 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.476e-05/0.3756, allocations: 15.75 kB / 0.6892 GB, free: 17.43 MB / 494.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3756, allocations: 0.6875 kB / 0.6892 GB, free: 17.43 MB / 494.1 MB Notification: Performance of Templates: time 0.004837/0.3805, allocations: 1.764 MB / 0.6909 GB, free: 17.38 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)