Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.507/1.507, allocations: 288.4 MB / 303.6 MB, free: 8.168 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008734/0.0008734, allocations: 198.5 kB / 372.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.291/1.291, allocations: 205.4 MB / 0.631 GB, free: 9.883 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006434/0.0006435, allocations: 94.86 kB / 0.7444 GB, free: 5.797 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006055/0.0006055, allocations: 11.22 kB / 0.8676 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.175, allocations: 115.3 MB / 0.9802 GB, free: 27.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002115/0.1771, allocations: 2.135 MB / 0.9823 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008956/0.1781, allocations: 0.7287 MB / 0.983 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.707e-05/0.1782, allocations: 4 kB / 0.983 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.1783, allocations: 27.78 kB / 0.983 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.1786, allocations: 99.66 kB / 0.9831 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.1789, allocations: 97.44 kB / 0.9832 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002061/0.1791, allocations: 231.3 kB / 0.9834 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.1793, allocations: 179.3 kB / 0.9836 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.625e-05/0.1794, allocations: 55.78 kB / 0.9836 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.1796, allocations: 91.66 kB / 0.9837 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.1796, allocations: 8 kB / 0.9837 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.1798, allocations: 131.7 kB / 0.9839 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.456e-05/0.1798, allocations: 55.86 kB / 0.9839 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.725e-05/0.1799, allocations: 85.38 kB / 0.984 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.1801, allocations: 167.9 kB / 0.9842 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1801, allocations: 4 kB / 0.9842 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.242e-06/0.1801, allocations: 0 / 0.9842 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.1801, allocations: 0 / 0.9842 GB, free: 23.14 MB / 0.6198 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.0004081/0.1805, allocations: 427.2 kB / 0.9846 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.1806, allocations: 8.031 kB / 0.9846 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.769e-05/0.1806, allocations: 54.73 kB / 0.9846 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000304/0.1809, allocations: 44.72 kB / 0.9847 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.1811, allocations: 208.1 kB / 0.9849 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.1811, allocations: 12.66 kB / 0.9849 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/0.1811, allocations: 24.28 kB / 0.9849 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.1814, allocations: 231 kB / 0.9851 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1814, allocations: 3.938 kB / 0.9851 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.1814, allocations: 8 kB / 0.9851 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.737e-05/0.1815, allocations: 20.27 kB / 0.9852 GB, free: 22 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.1817, allocations: 140.7 kB / 0.9853 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000702/0.1824, allocations: 1.13 MB / 0.9864 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 5.629e-05/0.1824, allocations: 42.56 kB / 0.9864 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.507e-05/0.1825, allocations: 16.8 kB / 0.9864 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.005e-05/0.1825, allocations: 8 kB / 0.9865 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.341e-05/0.1825, allocations: 34.64 kB / 0.9865 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1825, allocations: 0 / 0.9865 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of matching and sorting (n=4): time 0.0001521/0.1827, allocations: 69.59 kB / 0.9866 GB, free: 20.4 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.682e-05/0.1827, allocations: 55.34 kB / 0.9866 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.876e-05/0.1828, allocations: 169.6 kB / 0.9868 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.163e-06/0.1828, allocations: 25.7 kB / 0.9868 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.458e-05/0.1829, allocations: 155.3 kB / 0.9869 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.906e-06/0.1829, allocations: 11.84 kB / 0.987 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-06/0.1829, allocations: 0 / 0.987 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 3.815e-05/0.1829, allocations: 322.8 kB / 0.9873 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.212e-05/0.183, allocations: 27.92 kB / 0.9873 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.734e-05/0.183, allocations: 89.38 kB / 0.9874 GB, free: 19.49 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.997e-05/0.1831, allocations: 117.3 kB / 0.9875 GB, free: 19.34 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1831, allocations: 4 kB / 0.9875 GB, free: 19.34 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001456/0.1833, allocations: 137.4 kB / 0.9876 GB, free: 19.2 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.819e-05/0.1833, allocations: 169.6 kB / 0.9878 GB, free: 19 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1833, allocations: 0 / 0.9878 GB, free: 19 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1833, allocations: 4 kB / 0.9878 GB, free: 18.99 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.166e-05/0.1834, allocations: 27.92 kB / 0.9878 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.1835, allocations: 4 kB / 0.9878 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.334e-05/0.1835, allocations: 15.84 kB / 0.9878 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.1835, allocations: 12 kB / 0.9878 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.109e-06/0.1836, allocations: 4 kB / 0.9878 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001111/0.1837, allocations: 99.94 kB / 0.9879 GB, free: 18.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-06/0.1837, allocations: 4 kB / 0.9879 GB, free: 18.83 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.645e-06/0.1837, allocations: 48 / 0.9879 GB, free: 18.83 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.247e-05/0.1838, allocations: 27.92 kB / 0.988 GB, free: 18.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.586e-06/0.1838, allocations: 12.3 kB / 0.988 GB, free: 18.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.173e-05/0.1838, allocations: 15.84 kB / 0.988 GB, free: 18.77 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.1838, allocations: 11.94 kB / 0.988 GB, free: 18.76 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.352e-05/0.1839, allocations: 217 kB / 0.9882 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.688e-05/0.1839, allocations: 7.906 kB / 0.9882 GB, free: 18.53 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.348e-05/0.184, allocations: 16.88 kB / 0.9882 GB, free: 18.52 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.184, allocations: 0 / 0.9882 GB, free: 18.52 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.184, allocations: 0 / 0.9882 GB, free: 18.52 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.184, allocations: 3.938 kB / 0.9882 GB, free: 18.51 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002681/0.1843, allocations: 477.1 kB / 0.9887 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1843, allocations: 3.984 kB / 0.9887 GB, free: 17.97 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.834e-05/0.1843, allocations: 7.938 kB / 0.9887 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.1843, allocations: 4 kB / 0.9887 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-06/0.1843, allocations: 0 / 0.9887 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1843, allocations: 128 / 0.9887 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1843, allocations: 8 kB / 0.9887 GB, free: 17.95 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.707e-05/0.1844, allocations: 107.5 kB / 0.9888 GB, free: 17.82 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.2e-05/0.1845, allocations: 92.94 kB / 0.9889 GB, free: 17.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.1845, allocations: 0 / 0.9889 GB, free: 17.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.339e-05/0.1845, allocations: 8 kB / 0.9889 GB, free: 17.7 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.091e-05/0.1845, allocations: 11.92 kB / 0.9889 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.1845, allocations: 4 kB / 0.9889 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.856e-05/0.1846, allocations: 124.9 kB / 0.9891 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-07/0.1846, allocations: 0 / 0.9891 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002948/0.1849, allocations: 55.78 kB / 0.9891 GB, free: 17.51 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001974/0.1851, allocations: 0.6538 MB / 0.9897 GB, free: 16.82 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000144/0.1853, allocations: 112.7 kB / 0.9899 GB, free: 16.71 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1853, allocations: 0 / 0.9899 GB, free: 16.71 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.871e-05/0.1853, allocations: 8 kB / 0.9899 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002246/0.1855, allocations: 26.94 kB / 0.9899 GB, free: 16.68 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007548/0.1863, allocations: 0.8053 MB / 0.9907 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.1864, allocations: 0.7202 MB / 0.9914 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.925e-05/0.1865, allocations: 36.39 kB / 0.9914 GB, free: 15 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.474e-05/0.1866, allocations: 31.42 kB / 0.9914 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of SimCode: time 3.31e-07/0.1866, allocations: 0 / 0.9914 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2297/0.4163, allocations: 2.144 MB / 0.9935 GB, free: 13 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001599/0.4165, allocations: 212.8 kB / 0.9937 GB, free: 12.75 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.337, allocations: 0 / 0.9937 GB, free: 12.75 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)