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.001617/0.001617, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001705/0.001706, allocations: 196.8 kB / 16.14 MB, free: 6.715 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.438/1.438, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00283/0.00283, allocations: 279 kB / 290.2 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.081/1.081, allocations: 178.6 MB / 0.5068 GB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002839/0.002839, allocations: 99.52 kB / 0.6057 GB, free: 25.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1649, allocations: 89.15 MB / 0.6928 GB, free: 4.828 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004207/0.1691, allocations: 2.542 MB / 0.6953 GB, free: 2.281 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.1705, allocations: 0.7863 MB / 0.696 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.707e-05/0.1706, allocations: 0 / 0.696 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001086/0.1717, allocations: 0.4994 MB / 0.6965 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000231/0.172, allocations: 108.2 kB / 0.6966 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.1723, allocations: 101.8 kB / 0.6967 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003869/0.1727, allocations: 291.3 kB / 0.697 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002448/0.1729, allocations: 110.4 kB / 0.6971 GB, free: 400 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.722e-05/0.173, allocations: 75.7 kB / 0.6972 GB, free: 324 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.1732, allocations: 99.69 kB / 0.6973 GB, free: 224 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.178e-05/0.1733, allocations: 8 kB / 0.6973 GB, free: 216 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002339/0.1735, allocations: 147.6 kB / 0.6974 GB, free: 68 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.073e-05/0.1736, allocations: 51.83 kB / 0.6975 GB, free: 16 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.938e-05/0.1737, allocations: 71.78 kB / 0.6976 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003088/0.174, allocations: 227.2 kB / 0.6978 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.174, allocations: 0 / 0.6978 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.91e-07/0.174, allocations: 3.938 kB / 0.6978 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.174, allocations: 0 / 0.6978 GB, free: 15.72 MB / 0.4981 GB 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.00064/0.1747, allocations: 449 kB / 0.6982 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.1747, allocations: 8.031 kB / 0.6982 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003582/0.1751, allocations: 44.7 kB / 0.6983 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002453/0.1754, allocations: 220.1 kB / 0.6985 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.1754, allocations: 8.656 kB / 0.6985 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/0.1754, allocations: 12.38 kB / 0.6985 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003681/0.1758, allocations: 243.5 kB / 0.6987 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1758, allocations: 0 / 0.6987 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.1758, allocations: 7.984 kB / 0.6987 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.197e-05/0.1759, allocations: 12.28 kB / 0.6987 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002497/0.1761, allocations: 152.7 kB / 0.6989 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.1773, allocations: 1.13 MB / 0.7 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.423e-05/0.1774, allocations: 34.67 kB / 0.7 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.04e-05/0.1775, allocations: 24.84 kB / 0.7 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.1775, allocations: 0 / 0.7 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.1776, allocations: 42.5 kB / 0.7001 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.1776, allocations: 0 / 0.7001 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=4): time 0.0002156/0.1778, allocations: 73.52 kB / 0.7001 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.1778, allocations: 51.41 kB / 0.7002 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.178, allocations: 171 kB / 0.7004 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.178, allocations: 29.7 kB / 0.7004 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.1782, allocations: 147.4 kB / 0.7005 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.39e-05/0.1782, allocations: 11.8 kB / 0.7005 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.223e-05/0.1782, allocations: 33.72 kB / 0.7006 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1784, allocations: 318.8 kB / 0.7009 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.07e-05/0.1785, allocations: 24.84 kB / 0.7009 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.1786, allocations: 93.38 kB / 0.701 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.1787, allocations: 121.3 kB / 0.7011 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1787, allocations: 0 / 0.7011 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002042/0.179, allocations: 141.3 kB / 0.7012 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.179, allocations: 4 kB / 0.7012 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.179, allocations: 4 kB / 0.7012 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.179, allocations: 8.172 kB / 0.7013 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.1791, allocations: 20 kB / 0.7013 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.1792, allocations: 11.86 kB / 0.7013 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.921e-05/0.1793, allocations: 28.06 kB / 0.7013 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.1793, allocations: 4 kB / 0.7013 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001097/0.1794, allocations: 124.1 kB / 0.7014 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.826e-05/0.1795, allocations: 85.44 kB / 0.7015 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001381/0.1796, allocations: 125.2 kB / 0.7016 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.042e-06/0.1796, allocations: 3.938 kB / 0.7016 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001952/0.1798, allocations: 129.4 kB / 0.7018 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.726e-06/0.1799, allocations: 8 kB / 0.7018 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-06/0.1799, allocations: 320 / 0.7018 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.007e-06/0.1799, allocations: 8 kB / 0.7018 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.273e-05/0.18, allocations: 31.92 kB / 0.7018 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.18, allocations: 11.92 kB / 0.7018 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.815e-05/0.18, allocations: 7.938 kB / 0.7018 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.1801, allocations: 4 kB / 0.7018 GB, free: 11.09 MB / 0.4981 GB 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 0.0001269/0.1802, allocations: 188.9 kB / 0.702 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.107e-05/0.1802, allocations: 11.81 kB / 0.702 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.245e-05/0.1803, allocations: 16.92 kB / 0.702 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1803, allocations: 7.938 kB / 0.702 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1803, allocations: 4 kB / 0.7021 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1803, allocations: 0 / 0.7021 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004816/0.1808, allocations: 469.1 kB / 0.7025 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1808, allocations: 0 / 0.7025 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.35e-05/0.1808, allocations: 8 kB / 0.7025 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1808, allocations: 4.125 kB / 0.7025 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.1808, allocations: 0 / 0.7025 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.508e-05/0.1809, allocations: 7.984 kB / 0.7025 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1809, allocations: 4 kB / 0.7025 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001377/0.181, allocations: 119.4 kB / 0.7026 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.494e-05/0.1811, allocations: 93 kB / 0.7027 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.1811, allocations: 4 kB / 0.7027 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.249e-05/0.1812, allocations: 0 / 0.7027 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.782e-05/0.1812, allocations: 0 / 0.7027 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.1812, allocations: 4 kB / 0.7027 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001053/0.1813, allocations: 126.8 kB / 0.7029 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1813, allocations: 0 / 0.7029 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003384/0.1817, allocations: 55.78 kB / 0.7029 GB, free: 9.871 MB / 0.4981 GB 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 0.0001073/0.1818, allocations: 107.2 kB / 0.703 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002018/0.182, allocations: 111.6 kB / 0.7031 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.182, allocations: 1.25 kB / 0.7031 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.408e-05/0.182, allocations: 11.94 kB / 0.7031 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.1823, allocations: 32.17 kB / 0.7032 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004955/0.1828, allocations: 323.2 kB / 0.7035 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.1831, allocations: 0.7319 MB / 0.7042 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.484e-05/0.1832, allocations: 24.62 kB / 0.7042 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.124e-05/0.1833, allocations: 15.44 kB / 0.7042 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of SimCode: time 1.9e-07/0.1833, allocations: 0 / 0.7042 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of Templates: time 0.00342/0.1867, allocations: 0.8247 MB / 0.705 GB, free: 7.641 MB / 0.4981 GB 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)