Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_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.445/1.445, allocations: 288.4 MB / 303.6 MB, free: 8.148 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.0009161/0.0009162, allocations: 194.8 kB / 372.3 MB, free: 10.11 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.179/1.179, allocations: 205.4 MB / 0.631 GB, free: 9.898 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.0006992/0.0006993, allocations: 97.11 kB / 0.7444 GB, free: 5.816 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000338/0.0003381, allocations: 19.69 kB / 0.8676 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1554, allocations: 115.3 MB / 0.9802 GB, free: 27.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.002722/0.1581, allocations: 2.657 MB / 0.9828 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001859/0.16, allocations: 1.607 MB / 0.9844 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.1602, allocations: 0 / 0.9844 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.1604, allocations: 35.72 kB / 0.9844 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004737/0.1609, allocations: 191.3 kB / 0.9846 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003937/0.1613, allocations: 155.5 kB / 0.9847 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003214/0.1616, allocations: 370.9 kB / 0.9851 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006905/0.1623, allocations: 0.5283 MB / 0.9856 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.1625, allocations: 103.6 kB / 0.9857 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002502/0.1627, allocations: 139.5 kB / 0.9858 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.1628, allocations: 15.98 kB / 0.9858 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003526/0.1631, allocations: 275.4 kB / 0.9861 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.473e-05/0.1632, allocations: 91.75 kB / 0.9862 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.655e-05/0.1633, allocations: 129.2 kB / 0.9863 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003231/0.1637, allocations: 327.2 kB / 0.9866 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1637, allocations: 0 / 0.9866 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.663e-06/0.1637, allocations: 0 / 0.9866 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.1637, allocations: 0 / 0.9866 GB, free: 20.6 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0007436/0.1644, allocations: 0.4991 MB / 0.9871 GB, free: 20.05 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.1645, allocations: 11.97 kB / 0.9871 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.666e-05/0.1646, allocations: 58.73 kB / 0.9872 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006495/0.1652, allocations: 100.5 kB / 0.9873 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.1655, allocations: 255.9 kB / 0.9875 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.1655, allocations: 16.8 kB / 0.9875 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.437e-05/0.1656, allocations: 28.55 kB / 0.9876 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004362/0.166, allocations: 380.9 kB / 0.9879 GB, free: 19.15 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.166, allocations: 0 / 0.9879 GB, free: 19.15 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.1661, allocations: 8 kB / 0.9879 GB, free: 19.14 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.504e-05/0.1662, allocations: 32.41 kB / 0.988 GB, free: 19.11 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003671/0.1665, allocations: 305.5 kB / 0.9883 GB, free: 18.81 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.1679, allocations: 1.529 MB / 0.9898 GB, free: 17.13 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/0.1682, allocations: 226.4 kB / 0.99 GB, free: 16.9 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001226/0.1684, allocations: 116.8 kB / 0.9901 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001095/0.1685, allocations: 93.09 kB / 0.9902 GB, free: 16.67 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.1685, allocations: 30.56 kB / 0.9902 GB, free: 16.63 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=18): time 2.334e-06/0.1685, allocations: 7.984 kB / 0.9902 GB, free: 16.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19): time 0.001014/0.1695, allocations: 0.793 MB / 0.991 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.1696, allocations: 63.33 kB / 0.991 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.1697, allocations: 186.7 kB / 0.9912 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.1697, allocations: 25.7 kB / 0.9912 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.79e-05/0.1698, allocations: 163.8 kB / 0.9914 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.529e-05/0.1698, allocations: 67.09 kB / 0.9915 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.342e-05/0.1699, allocations: 15.94 kB / 0.9915 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.415e-05/0.1699, allocations: 326.8 kB / 0.9918 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.1701, allocations: 115.9 kB / 0.9919 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.1702, allocations: 163 kB / 0.9921 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002841/0.1705, allocations: 295.9 kB / 0.9923 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1705, allocations: 0 / 0.9923 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005751/0.1711, allocations: 421.8 kB / 0.9927 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.1711, allocations: 4 kB / 0.9928 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1711, allocations: 4 kB / 0.9928 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003486/0.1715, allocations: 100.9 kB / 0.9929 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.1717, allocations: 51.91 kB / 0.9929 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.173, allocations: 1.734 MB / 0.9946 GB, free: 11.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.1732, allocations: 11.98 kB / 0.9946 GB, free: 11.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.1732, allocations: 11.98 kB / 0.9946 GB, free: 11.84 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.1733, allocations: 161.7 kB / 0.9948 GB, free: 11.68 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.799e-05/0.1733, allocations: 15.81 kB / 0.9948 GB, free: 11.66 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003657/0.1737, allocations: 307.3 kB / 0.9951 GB, free: 11.36 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.1737, allocations: 4 kB / 0.9951 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.1737, allocations: 0 / 0.9951 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.1737, allocations: 3.938 kB / 0.9951 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006356/0.1744, allocations: 0.7081 MB / 0.9958 GB, free: 10.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1744, allocations: 0 / 0.9958 GB, free: 10.58 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.1747, allocations: 55.95 kB / 0.9958 GB, free: 10.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.1747, allocations: 3.984 kB / 0.9958 GB, free: 10.52 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.1747, allocations: 8 kB / 0.9958 GB, free: 10.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.1747, allocations: 0 / 0.9958 GB, free: 10.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1747, allocations: 7.875 kB / 0.9958 GB, free: 10.5 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005679/0.1753, allocations: 0.5101 MB / 0.9963 GB, free: 9.973 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.1754, allocations: 116.9 kB / 0.9965 GB, free: 9.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.945e-05/0.1755, allocations: 4 kB / 0.9965 GB, free: 9.836 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.1757, allocations: 19.92 kB / 0.9965 GB, free: 9.816 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.063e-05/0.1757, allocations: 7.984 kB / 0.9965 GB, free: 9.809 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.1758, allocations: 8 kB / 0.9965 GB, free: 9.801 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.968e-05/0.1759, allocations: 148 kB / 0.9966 GB, free: 9.656 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1759, allocations: 0 / 0.9966 GB, free: 9.656 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003016/0.1762, allocations: 68.06 kB / 0.9967 GB, free: 9.59 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * 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 (20): * Single equations (assignments): 20 * 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.000643/0.1768, allocations: 1.064 MB / 0.9977 GB, free: 8.496 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005933/0.1774, allocations: 418.5 kB / 0.9981 GB, free: 8.074 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1775, allocations: 0 / 0.9981 GB, free: 8.074 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.1776, allocations: 128.8 kB / 0.9983 GB, free: 7.949 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000364/0.178, allocations: 36.42 kB / 0.9983 GB, free: 7.914 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002062/0.18, allocations: 1.682 MB / 0.9999 GB, free: 6.145 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001724/0.1802, allocations: 0.7636 MB / 1.001 GB, free: 5.352 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001559/0.1804, allocations: 61.91 kB / 1.001 GB, free: 5.293 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.965e-05/0.1805, allocations: 75.34 kB / 1.001 GB, free: 5.223 MB / 0.6198 GB Notification: Performance of SimCode: time 3.7e-07/0.1805, allocations: 0 / 1.001 GB, free: 5.223 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6286/0.8091, allocations: 4.664 MB / 1.005 GB, free: 0.7812 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/0.8094, allocations: 239.8 kB / 1.006 GB, free: 0.5352 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/2.973, allocations: 4 kB / 1.006 GB, free: 0.5312 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)