Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.309/1.309, allocations: 251.5 MB / 266.7 MB, free: 11.04 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.0009663/0.0009664, allocations: 172.8 kB / 325.8 MB, free: 2.695 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.412/1.412, allocations: 205 MB / 0.576 GB, free: 21.03 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.0007365/0.0007363, allocations: 85.03 kB / 0.6797 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003199/0.0003201, allocations: 8.188 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1516, allocations: 105.4 MB / 0.8962 GB, free: 68.09 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.002454/0.1541, allocations: 2.797 MB / 0.8989 GB, free: 65.27 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00174/0.1559, allocations: 1.746 MB / 0.9006 GB, free: 63.52 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.9e-05/0.1559, allocations: 4 kB / 0.9007 GB, free: 63.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0006759/0.1566, allocations: 307 kB / 0.9009 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002631/0.1569, allocations: 191.3 kB / 0.9011 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.1572, allocations: 167.7 kB / 0.9013 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002537/0.1575, allocations: 462.8 kB / 0.9017 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002927/0.1578, allocations: 248.5 kB / 0.902 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.1579, allocations: 107.6 kB / 0.9021 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.1581, allocations: 143.5 kB / 0.9022 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.1581, allocations: 19.92 kB / 0.9022 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002757/0.1584, allocations: 287.4 kB / 0.9025 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.932e-05/0.1585, allocations: 99.69 kB / 0.9026 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.471e-05/0.1586, allocations: 103.5 kB / 0.9027 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002953/0.1589, allocations: 422.6 kB / 0.9031 GB, free: 61 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1589, allocations: 0 / 0.9031 GB, free: 61 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.002e-06/0.1589, allocations: 0 / 0.9031 GB, free: 61 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.1589, allocations: 4 kB / 0.9031 GB, free: 61 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0005541/0.1594, allocations: 0.4913 MB / 0.9036 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.687e-05/0.1595, allocations: 12.03 kB / 0.9036 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.109e-05/0.1595, allocations: 62.66 kB / 0.9036 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005936/0.1601, allocations: 92.55 kB / 0.9037 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.1603, allocations: 259.8 kB / 0.904 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.1603, allocations: 20.81 kB / 0.904 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.995e-05/0.1604, allocations: 28.55 kB / 0.904 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003782/0.1608, allocations: 376.9 kB / 0.9044 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.1608, allocations: 0 / 0.9044 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.1609, allocations: 8 kB / 0.9044 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.576e-05/0.1609, allocations: 28.42 kB / 0.9044 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003393/0.1613, allocations: 309.5 kB / 0.9047 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.1624, allocations: 1.529 MB / 0.9062 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003118/0.1628, allocations: 230.3 kB / 0.9064 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.1629, allocations: 124.8 kB / 0.9066 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.175e-05/0.163, allocations: 89.09 kB / 0.9066 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.439e-05/0.163, allocations: 38.5 kB / 0.9067 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=18): time 1.232e-06/0.163, allocations: 0 / 0.9067 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of matching and sorting (n=19): time 0.0008456/0.1639, allocations: 0.7824 MB / 0.9074 GB, free: 56.19 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.885e-05/0.1639, allocations: 63.41 kB / 0.9075 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.164, allocations: 183.2 kB / 0.9077 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.164, allocations: 33.7 kB / 0.9077 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.72e-05/0.1641, allocations: 163.8 kB / 0.9079 GB, free: 55.72 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.1641, allocations: 70.95 kB / 0.9079 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.271e-05/0.1641, allocations: 29.7 kB / 0.908 GB, free: 55.61 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.765e-05/0.1642, allocations: 330.8 kB / 0.9083 GB, free: 55.28 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.1643, allocations: 111.9 kB / 0.9084 GB, free: 55.17 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.1645, allocations: 175 kB / 0.9085 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002727/0.1647, allocations: 296.6 kB / 0.9088 GB, free: 54.67 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.1647, allocations: 0 / 0.9088 GB, free: 54.67 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000555/0.1653, allocations: 413.8 kB / 0.9092 GB, free: 54.26 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.488e-06/0.1653, allocations: 8 kB / 0.9092 GB, free: 54.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.1653, allocations: 192 / 0.9092 GB, free: 54.25 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000321/0.1657, allocations: 104.8 kB / 0.9093 GB, free: 54.14 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001996/0.1659, allocations: 55.84 kB / 0.9094 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/0.1671, allocations: 1.742 MB / 0.9111 GB, free: 52.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.1673, allocations: 16.05 kB / 0.9111 GB, free: 52.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.1673, allocations: 12 kB / 0.9111 GB, free: 52.18 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.207e-05/0.1674, allocations: 161.7 kB / 0.9113 GB, free: 52.02 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.836e-05/0.1674, allocations: 15.81 kB / 0.9113 GB, free: 52 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003504/0.1678, allocations: 293.6 kB / 0.9116 GB, free: 51.71 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.1678, allocations: 8 kB / 0.9116 GB, free: 51.71 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.41e-07/0.1678, allocations: 0 / 0.9116 GB, free: 51.71 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1678, allocations: 0 / 0.9116 GB, free: 51.71 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005953/0.1684, allocations: 0.7029 MB / 0.9123 GB, free: 50.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.1684, allocations: 15.86 kB / 0.9123 GB, free: 50.93 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000251/0.1687, allocations: 47.97 kB / 0.9123 GB, free: 50.88 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1687, allocations: 7.984 kB / 0.9123 GB, free: 50.87 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.1687, allocations: 4 kB / 0.9123 GB, free: 50.87 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1687, allocations: 8.062 kB / 0.9123 GB, free: 50.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1687, allocations: 3.938 kB / 0.9123 GB, free: 50.86 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000412/0.1691, allocations: 0.5124 MB / 0.9128 GB, free: 50.32 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 6.904e-05/0.1692, allocations: 116.9 kB / 0.913 GB, free: 50.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.1692, allocations: 0 / 0.913 GB, free: 50.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.1694, allocations: 19.98 kB / 0.913 GB, free: 50.17 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.969e-05/0.1694, allocations: 11.98 kB / 0.913 GB, free: 50.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.1695, allocations: 12.06 kB / 0.913 GB, free: 50.14 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.027e-05/0.1695, allocations: 148 kB / 0.9131 GB, free: 50 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1696, allocations: 0 / 0.9131 GB, free: 50 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002702/0.1698, allocations: 72 kB / 0.9132 GB, free: 49.93 MB / 0.6042 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 (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.000565/0.1704, allocations: 1.059 MB / 0.9142 GB, free: 48.84 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004809/0.1709, allocations: 426.8 kB / 0.9146 GB, free: 48.41 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1709, allocations: 4.125 kB / 0.9146 GB, free: 48.4 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000119/0.171, allocations: 126.2 kB / 0.9148 GB, free: 48.28 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.1713, allocations: 35.3 kB / 0.9148 GB, free: 48.25 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.1739, allocations: 2.969 MB / 0.9177 GB, free: 45.15 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001476/0.174, allocations: 0.7675 MB / 0.9185 GB, free: 44.36 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001442/0.1742, allocations: 53.91 kB / 0.9185 GB, free: 44.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.479e-05/0.1743, allocations: 67.41 kB / 0.9186 GB, free: 44.24 MB / 0.6042 GB Notification: Performance of SimCode: time 2.21e-07/0.1743, allocations: 4 kB / 0.9186 GB, free: 44.23 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1155/0.2898, allocations: 4.678 MB / 0.9231 GB, free: 39.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001526/0.29, allocations: 265.9 kB / 0.9234 GB, free: 39.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/2.415, allocations: 0 / 0.9234 GB, free: 39.5 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)