Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0011/0.0011, allocations: 196.2 kB / 16.26 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.126/1.126, allocations: 205.1 MB / 222.1 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.522/1.522, allocations: 292.3 MB / 0.5486 GB, free: 13.57 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 71.11 kB / 0.6711 GB, free: 26.43 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1595, allocations: 114.6 MB / 0.783 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003847/0.1634, allocations: 3.112 MB / 0.786 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002025/0.1654, allocations: 1.707 MB / 0.7877 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.506e-05/0.1655, allocations: 4 kB / 0.7877 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0007885/0.1663, allocations: 314.9 kB / 0.788 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003385/0.1667, allocations: 207.2 kB / 0.7882 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003215/0.167, allocations: 166.9 kB / 0.7884 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002874/0.1673, allocations: 311 kB / 0.7886 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003569/0.1677, allocations: 272.9 kB / 0.7889 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.1678, allocations: 147.5 kB / 0.7891 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.1681, allocations: 167.4 kB / 0.7892 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/0.1681, allocations: 20 kB / 0.7892 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002819/0.1684, allocations: 243.5 kB / 0.7895 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.737e-05/0.1685, allocations: 99.78 kB / 0.7896 GB, free: 7 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.964e-05/0.1686, allocations: 127.3 kB / 0.7897 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003837/0.169, allocations: 434.6 kB / 0.7901 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.169, allocations: 4 kB / 0.7901 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.012e-06/0.169, allocations: 0 / 0.7901 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.169, allocations: 0 / 0.7901 GB, free: 6.445 MB / 0.6075 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.0007373/0.1697, allocations: 0.5497 MB / 0.7906 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.764e-05/0.1698, allocations: 12.03 kB / 0.7906 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.135e-05/0.1698, allocations: 54.73 kB / 0.7907 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006497/0.1705, allocations: 96.53 kB / 0.7908 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002293/0.1707, allocations: 248 kB / 0.791 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.1708, allocations: 12.81 kB / 0.791 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.749e-05/0.1708, allocations: 36.45 kB / 0.7911 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004851/0.1713, allocations: 377 kB / 0.7914 GB, free: 4.961 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.1714, allocations: 3.938 kB / 0.7914 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.1714, allocations: 11.94 kB / 0.7914 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.801e-05/0.1715, allocations: 28.42 kB / 0.7915 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004067/0.1719, allocations: 305.5 kB / 0.7918 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.1733, allocations: 1.529 MB / 0.7933 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000372/0.1737, allocations: 234.4 kB / 0.7935 GB, free: 2.699 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.1738, allocations: 112.8 kB / 0.7936 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001134/0.174, allocations: 93.09 kB / 0.7937 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.174, allocations: 30.56 kB / 0.7937 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.182e-06/0.174, allocations: 0 / 0.7937 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19): time 0.001025/0.175, allocations: 0.7944 MB / 0.7945 GB, free: 1.59 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.589e-05/0.1751, allocations: 51.41 kB / 0.7945 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.1752, allocations: 191.1 kB / 0.7947 GB, free: 1.332 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.1753, allocations: 33.7 kB / 0.7947 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.093e-05/0.1753, allocations: 159.8 kB / 0.7949 GB, free: 1.133 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.492e-05/0.1754, allocations: 67.09 kB / 0.795 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.325e-05/0.1755, allocations: 57.61 kB / 0.795 GB, free: 1.004 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.472e-05/0.1756, allocations: 330.8 kB / 0.7953 GB, free: 0.6719 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.1757, allocations: 111.9 kB / 0.7954 GB, free: 0.5625 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.1759, allocations: 175.7 kB / 0.7956 GB, free: 380 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003263/0.1762, allocations: 301.4 kB / 0.7959 GB, free: 60 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1762, allocations: 0 / 0.7959 GB, free: 60 kB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006576/0.1769, allocations: 413.9 kB / 0.7963 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.1769, allocations: 10.5 kB / 0.7963 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1769, allocations: 0 / 0.7963 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003601/0.1773, allocations: 108.9 kB / 0.7964 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.1775, allocations: 43.97 kB / 0.7964 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/0.1791, allocations: 1.875 MB / 0.7983 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.1794, allocations: 19.95 kB / 0.7983 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.1794, allocations: 19.92 kB / 0.7983 GB, free: 13.42 MB / 0.6231 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 0.0001223/0.1795, allocations: 159.9 kB / 0.7985 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.291e-05/0.1796, allocations: 15.81 kB / 0.7985 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004151/0.18, allocations: 302.1 kB / 0.7988 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.18, allocations: 4 kB / 0.7988 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.18, allocations: 0 / 0.7988 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.18, allocations: 7.922 kB / 0.7988 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007535/0.1808, allocations: 0.699 MB / 0.7995 GB, free: 12.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1808, allocations: 4 kB / 0.7995 GB, free: 12.17 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002789/0.1811, allocations: 55.95 kB / 0.7995 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.1811, allocations: 11.94 kB / 0.7995 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.1811, allocations: 4.125 kB / 0.7995 GB, free: 12.1 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1811, allocations: 8 kB / 0.7995 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1811, allocations: 0 / 0.7995 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005138/0.1817, allocations: 0.5047 MB / 0.8 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.185e-05/0.1818, allocations: 128.8 kB / 0.8002 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.1818, allocations: 4 kB / 0.8002 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.182, allocations: 23.91 kB / 0.8002 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.903e-05/0.182, allocations: 11.98 kB / 0.8002 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.182, allocations: 4 kB / 0.8002 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001074/0.1821, allocations: 144.1 kB / 0.8003 GB, free: 11.24 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.383e-06/0.1821, allocations: 0 / 0.8003 GB, free: 11.24 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003081/0.1825, allocations: 71.94 kB / 0.8004 GB, free: 11.17 MB / 0.6231 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.0007409/0.1832, allocations: 1.057 MB / 0.8014 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006289/0.1838, allocations: 450.6 kB / 0.8019 GB, free: 9.625 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1839, allocations: 0 / 0.8019 GB, free: 9.625 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.184, allocations: 123.8 kB / 0.802 GB, free: 9.504 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003343/0.1843, allocations: 34.47 kB / 0.802 GB, free: 9.473 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003274/0.1876, allocations: 2.974 MB / 0.8049 GB, free: 6.367 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.188, allocations: 0.7792 MB / 0.8057 GB, free: 5.559 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001587/0.1881, allocations: 57.89 kB / 0.8057 GB, free: 5.504 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.1882, allocations: 67.41 kB / 0.8058 GB, free: 5.438 MB / 0.6231 GB Notification: Performance of SimCode: time 2.31e-07/0.1882, allocations: 0 / 0.8058 GB, free: 5.438 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.195/2.383, allocations: 4.93 MB / 0.8106 GB, free: 0.7188 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000246/2.383, allocations: 247.3 kB / 0.8109 GB, free: 468 kB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.411/4.794, allocations: 6.875 kB / 0.8109 GB, free: 468 kB / 0.6231 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)