Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.275/1.275, allocations: 251.5 MB / 266.7 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000849/0.0008491, allocations: 175.9 kB / 325.8 MB, free: 2.672 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205 MB / 0.576 GB, free: 20.96 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006833/0.0006833, allocations: 89.22 kB / 0.6797 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002771, allocations: 5.906 kB / 0.7933 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1502, allocations: 105.4 MB / 0.8962 GB, free: 68.09 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002069/0.1523, allocations: 2.244 MB / 0.8984 GB, free: 65.84 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008687/0.1532, allocations: 0.7713 MB / 0.8991 GB, free: 65.06 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.21e-05/0.1533, allocations: 4 kB / 0.8991 GB, free: 65.06 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0008176/0.1541, allocations: 0.5538 MB / 0.8997 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001662/0.1543, allocations: 103.6 kB / 0.8998 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.1545, allocations: 102.7 kB / 0.8999 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.1547, allocations: 295.3 kB / 0.9002 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.1548, allocations: 106.2 kB / 0.9003 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.361e-05/0.1549, allocations: 67.7 kB / 0.9003 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.155, allocations: 83.66 kB / 0.9004 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.639e-05/0.1551, allocations: 8 kB / 0.9004 GB, free: 63.74 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001496/0.1552, allocations: 147.6 kB / 0.9006 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.105e-05/0.1553, allocations: 47.89 kB / 0.9006 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.655e-05/0.1553, allocations: 63.66 kB / 0.9007 GB, free: 63.49 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.1555, allocations: 231.2 kB / 0.9009 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.1555, allocations: 0 / 0.9009 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1555, allocations: 0 / 0.9009 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.987e-06/0.1555, allocations: 0 / 0.9009 GB, free: 63.26 MB / 0.6042 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.000364/0.1559, allocations: 415.4 kB / 0.9013 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.1559, allocations: 8.031 kB / 0.9013 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.452e-05/0.156, allocations: 50.73 kB / 0.9013 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002815/0.1563, allocations: 48.72 kB / 0.9014 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.1564, allocations: 220 kB / 0.9016 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.1564, allocations: 12.64 kB / 0.9016 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.704e-05/0.1565, allocations: 12.38 kB / 0.9016 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002614/0.1567, allocations: 230.8 kB / 0.9018 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.1568, allocations: 0 / 0.9018 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.1568, allocations: 8 kB / 0.9018 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.531e-05/0.1568, allocations: 20.27 kB / 0.9019 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.157, allocations: 144.7 kB / 0.902 GB, free: 62 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006867/0.1577, allocations: 1.13 MB / 0.9031 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 5.83e-05/0.1577, allocations: 46.5 kB / 0.9032 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.401e-05/0.1578, allocations: 12.86 kB / 0.9032 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.1578, allocations: 8 kB / 0.9032 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.229e-05/0.1578, allocations: 38.64 kB / 0.9032 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=4): time 1.272e-06/0.1578, allocations: 0 / 0.9032 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of matching and sorting (n=4): time 0.0001519/0.158, allocations: 73.53 kB / 0.9033 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.405e-05/0.158, allocations: 55.41 kB / 0.9033 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.1581, allocations: 177.7 kB / 0.9035 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.265e-06/0.1581, allocations: 25.7 kB / 0.9035 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.236e-05/0.1582, allocations: 139.4 kB / 0.9037 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.899e-06/0.1582, allocations: 15.81 kB / 0.9037 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.358e-05/0.1582, allocations: 21.7 kB / 0.9037 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.163e-05/0.1583, allocations: 326.7 kB / 0.904 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.123e-05/0.1583, allocations: 19.98 kB / 0.904 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.09e-05/0.1584, allocations: 85.42 kB / 0.9041 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.542e-05/0.1585, allocations: 125.3 kB / 0.9042 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1585, allocations: 0 / 0.9042 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001462/0.1586, allocations: 133.6 kB / 0.9044 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.349e-05/0.1587, allocations: 161.6 kB / 0.9045 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.1587, allocations: 4 kB / 0.9045 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.1587, allocations: 4 kB / 0.9045 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.53e-05/0.1588, allocations: 31.92 kB / 0.9045 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1589, allocations: 4 kB / 0.9046 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.722e-05/0.1589, allocations: 11.84 kB / 0.9046 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.1589, allocations: 8 kB / 0.9046 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.54e-06/0.1589, allocations: 10.75 kB / 0.9046 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001297/0.1591, allocations: 99.94 kB / 0.9047 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-06/0.1591, allocations: 48 / 0.9047 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.358e-06/0.1591, allocations: 7.984 kB / 0.9047 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.378e-05/0.1592, allocations: 31.92 kB / 0.9047 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.266e-06/0.1592, allocations: 4 kB / 0.9047 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.815e-05/0.1592, allocations: 20.09 kB / 0.9047 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.1592, allocations: 8 kB / 0.9047 GB, free: 58.88 MB / 0.6042 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 8.004e-05/0.1593, allocations: 213 kB / 0.9049 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.549e-05/0.1594, allocations: 7.906 kB / 0.905 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.79e-05/0.1594, allocations: 16.92 kB / 0.905 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1594, allocations: 4 kB / 0.905 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1594, allocations: 3.938 kB / 0.905 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1594, allocations: 0 / 0.905 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002819/0.1597, allocations: 480.9 kB / 0.9054 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1597, allocations: 4 kB / 0.9054 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.706e-05/0.1597, allocations: 4 kB / 0.9054 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.1598, allocations: 4 kB / 0.9054 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.1598, allocations: 0 / 0.9054 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1598, allocations: 0 / 0.9054 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1598, allocations: 7.938 kB / 0.9055 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.268e-05/0.1599, allocations: 115.6 kB / 0.9056 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.985e-05/0.1599, allocations: 97 kB / 0.9057 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.1599, allocations: 0 / 0.9057 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.131e-05/0.16, allocations: 0 / 0.9057 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.682e-05/0.16, allocations: 8 kB / 0.9057 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.16, allocations: 0 / 0.9057 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.054e-05/0.1601, allocations: 128.9 kB / 0.9058 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9e-08/0.1601, allocations: 0 / 0.9058 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002933/0.1604, allocations: 55.75 kB / 0.9058 GB, free: 57.63 MB / 0.6042 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.0002208/0.1606, allocations: 0.646 MB / 0.9065 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001428/0.1607, allocations: 108.8 kB / 0.9066 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1608, allocations: 4.125 kB / 0.9066 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.947e-05/0.1608, allocations: 19.98 kB / 0.9066 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.161, allocations: 18.56 kB / 0.9066 GB, free: 56.8 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.1621, allocations: 1.781 MB / 0.9084 GB, free: 54.86 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.1622, allocations: 0.7241 MB / 0.9091 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.636e-05/0.1623, allocations: 32.56 kB / 0.9091 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.375e-05/0.1624, allocations: 35.42 kB / 0.9091 GB, free: 54.04 MB / 0.6042 GB Notification: Performance of SimCode: time 2.41e-07/0.1624, allocations: 0 / 0.9091 GB, free: 54.04 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1652/0.3276, allocations: 2.161 MB / 0.9112 GB, free: 52.04 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001459/0.3277, allocations: 217.8 kB / 0.9114 GB, free: 51.79 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/2.087, allocations: 2.812 kB / 0.9114 GB, free: 51.79 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)