Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001001/0.001001, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.267/1.267, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002036/0.002036, allocations: 283.8 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9012/0.9012, allocations: 169.3 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 96.2 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1709, allocations: 86.98 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003711/0.1747, allocations: 2.482 MB / 0.684 GB, free: 4.969 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.1759, allocations: 0.7984 MB / 0.6848 GB, free: 4.168 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.157e-05/0.176, allocations: 4 kB / 0.6848 GB, free: 4.164 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.1771, allocations: 0.521 MB / 0.6853 GB, free: 3.641 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002412/0.1773, allocations: 107.5 kB / 0.6854 GB, free: 3.535 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002615/0.1776, allocations: 111.7 kB / 0.6855 GB, free: 3.426 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002321/0.1778, allocations: 195.4 kB / 0.6857 GB, free: 3.234 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00032/0.1782, allocations: 175.5 kB / 0.6859 GB, free: 3.059 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.349e-05/0.1783, allocations: 79.73 kB / 0.686 GB, free: 2.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001923/0.1785, allocations: 95.66 kB / 0.6861 GB, free: 2.887 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.1785, allocations: 12 kB / 0.6861 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001691/0.1787, allocations: 111.8 kB / 0.6862 GB, free: 2.766 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.088e-05/0.1787, allocations: 55.83 kB / 0.6862 GB, free: 2.711 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.13e-05/0.1788, allocations: 67.67 kB / 0.6863 GB, free: 2.645 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.1791, allocations: 219.3 kB / 0.6865 GB, free: 2.43 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1791, allocations: 4 kB / 0.6865 GB, free: 2.426 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1791, allocations: 4 kB / 0.6865 GB, free: 2.422 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.1791, allocations: 0 / 0.6865 GB, free: 2.422 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0005358/0.1797, allocations: 447.2 kB / 0.6869 GB, free: 1.934 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.1797, allocations: 11.97 kB / 0.6869 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003413/0.1801, allocations: 48.72 kB / 0.687 GB, free: 1.875 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.1803, allocations: 216.1 kB / 0.6872 GB, free: 1.625 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.1803, allocations: 12.66 kB / 0.6872 GB, free: 1.613 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.1803, allocations: 12.38 kB / 0.6872 GB, free: 1.602 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000316/0.1807, allocations: 232.5 kB / 0.6874 GB, free: 1.355 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.1807, allocations: 0 / 0.6874 GB, free: 1.355 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.1807, allocations: 4 kB / 0.6874 GB, free: 1.352 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.858e-05/0.1807, allocations: 16.27 kB / 0.6875 GB, free: 1.336 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002153/0.181, allocations: 156.7 kB / 0.6876 GB, free: 1.184 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2602/0.4412, allocations: 1.113 MB / 0.6887 GB, free: 18.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/0.4413, allocations: 40.42 kB / 0.6887 GB, free: 18.31 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.959e-05/0.4414, allocations: 16.83 kB / 0.6887 GB, free: 18.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.4414, allocations: 3.516 kB / 0.6888 GB, free: 18.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.684e-05/0.4414, allocations: 32.31 kB / 0.6888 GB, free: 18.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 2.394e-06/0.4414, allocations: 0 / 0.6888 GB, free: 18.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002305/0.4417, allocations: 83.81 kB / 0.6889 GB, free: 18.23 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.575e-05/0.4417, allocations: 51.41 kB / 0.6889 GB, free: 18.17 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.4419, allocations: 175.5 kB / 0.6891 GB, free: 18.07 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 8.105e-06/0.4419, allocations: 26.27 kB / 0.6891 GB, free: 18.04 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.427e-05/0.442, allocations: 138.3 kB / 0.6892 GB, free: 17.95 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.408e-05/0.442, allocations: 17.64 kB / 0.6893 GB, free: 17.94 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.363e-05/0.4421, allocations: 32.81 kB / 0.6893 GB, free: 17.92 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.238e-05/0.4421, allocations: 324.4 kB / 0.6896 GB, free: 17.61 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.834e-05/0.4422, allocations: 27.16 kB / 0.6896 GB, free: 17.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.269e-05/0.4422, allocations: 92.11 kB / 0.6897 GB, free: 17.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.4424, allocations: 126.4 kB / 0.6898 GB, free: 17.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4424, allocations: 1.406 kB / 0.6898 GB, free: 17.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000177/0.4426, allocations: 136 kB / 0.69 GB, free: 17.39 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.4426, allocations: 6.188 kB / 0.69 GB, free: 17.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.4426, allocations: 5.719 kB / 0.69 GB, free: 17.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.4426, allocations: 3.375 kB / 0.69 GB, free: 17.39 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.4427, allocations: 34.25 kB / 0.69 GB, free: 17.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.4427, allocations: 3.266 kB / 0.69 GB, free: 17.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.627e-05/0.4428, allocations: 17.7 kB / 0.69 GB, free: 17.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.4428, allocations: 11.66 kB / 0.69 GB, free: 17.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.925e-05/0.4429, allocations: 125.5 kB / 0.6902 GB, free: 17.29 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.248e-05/0.443, allocations: 83.78 kB / 0.6902 GB, free: 17.21 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 9.252e-05/0.4431, allocations: 127.6 kB / 0.6904 GB, free: 17.11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.062e-06/0.4431, allocations: 0 / 0.6904 GB, free: 17.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.000187/0.4433, allocations: 130.6 kB / 0.6905 GB, free: 17.06 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.4433, allocations: 10.48 kB / 0.6905 GB, free: 17.06 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-06/0.4433, allocations: 3.719 kB / 0.6905 GB, free: 17.06 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.019e-06/0.4433, allocations: 6.938 kB / 0.6905 GB, free: 17.06 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.277e-05/0.4434, allocations: 22.11 kB / 0.6905 GB, free: 17.06 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.4434, allocations: 5.359 kB / 0.6905 GB, free: 17.06 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.742e-05/0.4435, allocations: 10.06 kB / 0.6905 GB, free: 17.05 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.4435, allocations: 9.906 kB / 0.6905 GB, free: 17.05 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 4.8e-05/0.4435, allocations: 186.5 kB / 0.6907 GB, free: 16.87 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.868e-05/0.4436, allocations: 13.86 kB / 0.6907 GB, free: 16.86 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.079e-05/0.4436, allocations: 23.88 kB / 0.6908 GB, free: 16.86 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.4436, allocations: 0 / 0.6908 GB, free: 16.86 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4436, allocations: 2.141 kB / 0.6908 GB, free: 16.86 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.4436, allocations: 3.938 kB / 0.6908 GB, free: 16.85 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000341/0.444, allocations: 465.3 kB / 0.6912 GB, free: 16.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.444, allocations: 4.469 kB / 0.6912 GB, free: 16.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.138e-05/0.444, allocations: 7.219 kB / 0.6912 GB, free: 16.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.444, allocations: 5.875 kB / 0.6912 GB, free: 16.44 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.444, allocations: 4.375 kB / 0.6912 GB, free: 16.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.444, allocations: 6.359 kB / 0.6912 GB, free: 16.44 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4441, allocations: 3.812 kB / 0.6912 GB, free: 16.44 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.319e-05/0.4442, allocations: 114 kB / 0.6914 GB, free: 16.34 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.084e-05/0.4442, allocations: 99.88 kB / 0.6914 GB, free: 16.24 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.875e-05/0.4442, allocations: 1.781 kB / 0.6914 GB, free: 16.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.365e-05/0.4443, allocations: 4.531 kB / 0.6915 GB, free: 16.24 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.097e-05/0.4443, allocations: 7.281 kB / 0.6915 GB, free: 16.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.4443, allocations: 1.188 kB / 0.6915 GB, free: 16.24 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.928e-05/0.4444, allocations: 129.2 kB / 0.6916 GB, free: 16.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4444, allocations: 0 / 0.6916 GB, free: 16.16 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000336/0.4447, allocations: 55.47 kB / 0.6916 GB, free: 16.16 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 7.742e-05/0.4448, allocations: 100.4 kB / 0.6917 GB, free: 16.06 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001978/0.445, allocations: 110.2 kB / 0.6918 GB, free: 16.05 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.445, allocations: 0 / 0.6918 GB, free: 16.05 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.763e-05/0.4451, allocations: 24.2 kB / 0.6919 GB, free: 16.05 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.4453, allocations: 23.08 kB / 0.6919 GB, free: 16.04 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004096/0.4457, allocations: 266.7 kB / 0.6921 GB, free: 15.87 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000144/0.4459, allocations: 0.723 MB / 0.6928 GB, free: 15.18 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.18e-05/0.446, allocations: 26.7 kB / 0.6929 GB, free: 15.18 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.645e-05/0.446, allocations: 14.75 kB / 0.6929 GB, free: 15.17 MB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.446, allocations: 0 / 0.6929 GB, free: 15.17 MB / 494.1 MB Notification: Performance of Templates: time 0.003062/0.4491, allocations: 0.8565 MB / 0.6937 GB, free: 15.1 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)