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: "" <> buildModelFMU(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008133/0.008133, allocations: 169.6 kB / 16.26 MB, free: 6.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.294/1.294, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001706/0.001706, allocations: 274.1 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9182/0.9182, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004202/0.0004206, allocations: 13.61 kB / 0.5988 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1482, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002735/0.151, allocations: 2.187 MB / 0.6874 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.1522, allocations: 0.7688 MB / 0.6881 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.391e-05/0.1522, allocations: 0.5 kB / 0.6881 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.1524, allocations: 28.34 kB / 0.6881 GB, free: 11.98 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002953/0.1527, allocations: 104.1 kB / 0.6882 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.153, allocations: 107 kB / 0.6883 GB, free: 11.78 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003001/0.1533, allocations: 287.3 kB / 0.6886 GB, free: 11.5 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/0.1536, allocations: 186.1 kB / 0.6888 GB, free: 11.3 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.898e-05/0.1537, allocations: 63.72 kB / 0.6889 GB, free: 11.24 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.1539, allocations: 83.72 kB / 0.6889 GB, free: 11.16 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.1539, allocations: 8 kB / 0.6889 GB, free: 11.15 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002184/0.1541, allocations: 151.6 kB / 0.6891 GB, free: 11 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.1542, allocations: 48.64 kB / 0.6891 GB, free: 10.95 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.698e-05/0.1543, allocations: 85.38 kB / 0.6892 GB, free: 10.86 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002374/0.1545, allocations: 226.6 kB / 0.6894 GB, free: 10.64 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1546, allocations: 0 / 0.6894 GB, free: 10.64 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1546, allocations: 0 / 0.6894 GB, free: 10.64 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1546, allocations: 0 / 0.6894 GB, free: 10.64 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.0004883/0.1551, allocations: 421.3 kB / 0.6898 GB, free: 10.18 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1551, allocations: 12.02 kB / 0.6898 GB, free: 10.17 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.836e-05/0.1552, allocations: 46.75 kB / 0.6899 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003396/0.1555, allocations: 47.17 kB / 0.6899 GB, free: 10.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.1557, allocations: 216.1 kB / 0.6901 GB, free: 9.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.1557, allocations: 12.64 kB / 0.6902 GB, free: 9.809 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.297e-05/0.1558, allocations: 12.38 kB / 0.6902 GB, free: 9.797 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003295/0.1561, allocations: 228.9 kB / 0.6904 GB, free: 9.555 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.1561, allocations: 5.656 kB / 0.6904 GB, free: 9.551 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.124e-05/0.1561, allocations: 7.938 kB / 0.6904 GB, free: 9.543 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.961e-05/0.1562, allocations: 12.28 kB / 0.6904 GB, free: 9.531 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002216/0.1564, allocations: 148.7 kB / 0.6905 GB, free: 9.387 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009497/0.1574, allocations: 1.132 MB / 0.6917 GB, free: 8.129 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.948e-05/0.1574, allocations: 43.44 kB / 0.6917 GB, free: 8.078 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.073e-05/0.1575, allocations: 16.8 kB / 0.6917 GB, free: 8.059 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.1575, allocations: 0.625 kB / 0.6917 GB, free: 8.059 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.1575, allocations: 35.62 kB / 0.6917 GB, free: 8.016 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.1575, allocations: 0 / 0.6917 GB, free: 8.016 MB / 494.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001753/0.1577, allocations: 78.58 kB / 0.6918 GB, free: 7.934 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.1577, allocations: 55.34 kB / 0.6919 GB, free: 7.867 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.1579, allocations: 181.2 kB / 0.692 GB, free: 7.684 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.1579, allocations: 29.7 kB / 0.6921 GB, free: 7.648 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.273e-05/0.158, allocations: 135.4 kB / 0.6922 GB, free: 7.512 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.158, allocations: 15.78 kB / 0.6922 GB, free: 7.496 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.463e-05/0.158, allocations: 17.72 kB / 0.6922 GB, free: 7.473 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.523e-05/0.1581, allocations: 322.8 kB / 0.6925 GB, free: 7.148 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.261e-05/0.1582, allocations: 27.92 kB / 0.6926 GB, free: 7.121 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.102e-05/0.1583, allocations: 88.31 kB / 0.6927 GB, free: 7.004 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/0.1584, allocations: 125.3 kB / 0.6928 GB, free: 6.848 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1584, allocations: 0 / 0.6928 GB, free: 6.848 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001831/0.1586, allocations: 133.3 kB / 0.6929 GB, free: 6.711 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.43e-05/0.1587, allocations: 163.7 kB / 0.6931 GB, free: 6.516 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1587, allocations: 4 kB / 0.6931 GB, free: 6.512 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.1587, allocations: 4 kB / 0.6931 GB, free: 6.508 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.1588, allocations: 31.86 kB / 0.6931 GB, free: 6.477 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.1588, allocations: 4 kB / 0.6931 GB, free: 6.473 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.708e-05/0.1589, allocations: 19.84 kB / 0.6931 GB, free: 6.453 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.1589, allocations: 8 kB / 0.6931 GB, free: 6.445 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.158e-06/0.1589, allocations: 4 kB / 0.6931 GB, free: 6.441 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001321/0.1591, allocations: 99.7 kB / 0.6932 GB, free: 6.344 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.1591, allocations: 0 / 0.6932 GB, free: 6.344 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.767e-06/0.1591, allocations: 8.25 kB / 0.6932 GB, free: 6.336 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.852e-05/0.1592, allocations: 27.94 kB / 0.6933 GB, free: 6.309 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1592, allocations: 11.97 kB / 0.6933 GB, free: 6.297 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.826e-05/0.1593, allocations: 15.84 kB / 0.6933 GB, free: 6.281 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.806e-06/0.1593, allocations: 11.94 kB / 0.6933 GB, free: 6.27 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 0.0001114/0.1594, allocations: 218.3 kB / 0.6935 GB, free: 6.047 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.1594, allocations: 11.81 kB / 0.6935 GB, free: 6.035 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.973e-05/0.1595, allocations: 12.94 kB / 0.6935 GB, free: 6.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1595, allocations: 0 / 0.6935 GB, free: 6.02 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1595, allocations: 4 kB / 0.6935 GB, free: 6.016 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.1595, allocations: 8.203 kB / 0.6935 GB, free: 6.008 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003696/0.1599, allocations: 465.2 kB / 0.694 GB, free: 5.484 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1599, allocations: 4 kB / 0.694 GB, free: 5.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.094e-05/0.1599, allocations: 7.938 kB / 0.694 GB, free: 5.473 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.1599, allocations: 7.984 kB / 0.694 GB, free: 5.465 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.1599, allocations: 8.125 kB / 0.694 GB, free: 5.457 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1599, allocations: 0 / 0.694 GB, free: 5.457 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.1599, allocations: 4 kB / 0.694 GB, free: 5.453 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001002/0.16, allocations: 107.5 kB / 0.6941 GB, free: 5.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-05/0.1601, allocations: 96.86 kB / 0.6942 GB, free: 5.207 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.1601, allocations: 4 kB / 0.6942 GB, free: 5.203 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.26e-05/0.1602, allocations: 0 / 0.6942 GB, free: 5.203 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.626e-05/0.1602, allocations: 11.98 kB / 0.6942 GB, free: 5.191 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-06/0.1602, allocations: 0 / 0.6942 GB, free: 5.191 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.99e-05/0.1603, allocations: 127.5 kB / 0.6943 GB, free: 5.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1603, allocations: 0 / 0.6943 GB, free: 5.07 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003434/0.1606, allocations: 51.84 kB / 0.6944 GB, free: 5.02 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 0.0003109/0.1609, allocations: 0.6499 MB / 0.695 GB, free: 4.328 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001726/0.1611, allocations: 104.2 kB / 0.6951 GB, free: 4.227 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1611, allocations: 3.938 kB / 0.6951 GB, free: 4.223 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.531e-05/0.1612, allocations: 16 kB / 0.6951 GB, free: 4.207 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.1614, allocations: 26.17 kB / 0.6952 GB, free: 4.184 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.1629, allocations: 1.794 MB / 0.6969 GB, free: 2.238 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.1632, allocations: 0.7202 MB / 0.6976 GB, free: 1.492 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.904e-05/0.1633, allocations: 32.61 kB / 0.6977 GB, free: 1.457 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.209e-05/0.1633, allocations: 27.44 kB / 0.6977 GB, free: 1.43 MB / 494.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1633, allocations: 0 / 0.6977 GB, free: 1.43 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01085/0.1742, allocations: 2.156 MB / 0.6998 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/0.1744, allocations: 228.6 kB / 0.7 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.587/1.762, allocations: 0 / 0.7 GB, free: 15.18 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)